From: Felix Lee Date: Sat, 9 Sep 2023 08:19:06 +0000 (+0800) Subject: add html.cfg file to project X-Git-Url: https://www.ivnss.com/gitweb/?a=commitdiff_plain;h=5a299e7ef86c37b1b7b5607093f567dabdd17099;p=lkmpgcn add html.cfg file to project --- diff --git a/html.cfg b/html.cfg new file mode 100644 index 0000000..0d239df --- /dev/null +++ b/html.cfg @@ -0,0 +1,91 @@ +\Preamble{xhtml} + +\Configure{tableofcontents*}{chapter,section,subsection} + +\Css{html { + width: 100vw; + overflow-x: hidden; +}} + +\Css{@font-face { + font-family: Manrope; + src: url(Manrope_variable.ttf); +}} + +\Css{body { + max-width: 55rem; + box-sizing: border-box; + padding: 1rem; + margin: 0 auto; + overflow-x: hidden; + background-color: \#F4ECD8; + color: \#5B464B; + line-height: 1.5; +}} + +\Css{a { +color: \#0060DF; +}} + +\Css{p, a { +font-size: 1.2rem; +font-family: Manrope; +}} + +\Css{p + pre { +font-size: 1.1em; +}} + +\Css{div.author { + white-space: normal; +}} + +\Css{img.math { + height: 1rem; + vertical-align: top; +}} + +\Css{pre.fancyvrb, { + white-space: pre; +}} + +\Css{figure, .fancyvrb, .verbatim { + margin-inline: 0; + overflow-x: auto; +}} + +\Css{.ecrm-0500 { + font-size: 70\%; + font-style: italic; + color: gray; + width: 1.5rem; + display: inline-block; + -webkit-user-select: none; + -moz-user-select: none; + -o-user-select: none; + user-select: none; +}} + +\Css{.flushright:first-child { + position:absolute; + top: 10px; + right: 50px; +}} + +\Css{.right { + text-align: right; +}} + +\AtBeginDocument{% +\Configure{@HEAD}{\HCode{ + +
+ View on GitHub + Download PDF document +

+
+ \Hnewline}} +} + +\begin{document} +\EndPreamble