diff options
author | Norbert Preining <norbert@preining.info> | 2023-01-12 03:01:29 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2023-01-12 03:01:29 +0000 |
commit | 6a7900c93acc16d1bbd2f1e26286c7dd7387e6c0 (patch) | |
tree | 76196287351cba68a51934c49468bf1a7846aa76 /support/TeX4ht/source/tex4ht-html5.tex | |
parent | c1c19023b4b1d43cb874f84df5102b485853e672 (diff) |
CTAN sync 202301120301
Diffstat (limited to 'support/TeX4ht/source/tex4ht-html5.tex')
-rw-r--r-- | support/TeX4ht/source/tex4ht-html5.tex | 45 |
1 files changed, 42 insertions, 3 deletions
diff --git a/support/TeX4ht/source/tex4ht-html5.tex b/support/TeX4ht/source/tex4ht-html5.tex index 761e9968fd..d69fe6dfa1 100644 --- a/support/TeX4ht/source/tex4ht-html5.tex +++ b/support/TeX4ht/source/tex4ht-html5.tex @@ -1,8 +1,8 @@ -% $Id: tex4ht-html5.tex 1182 2022-08-11 19:21:27Z michal_h21 $ +% $Id: tex4ht-html5.tex 1284 2023-01-10 21:33:09Z karl $ % compile 3 times: latex tex4ht-moz % or xhlatex tex4ht-moz "html,3,sections+" % -% Copyright 2009-2022 TeX Users Group +% Copyright 2009-2023 TeX Users Group % Copyright 2000-2009 Eitan M. Gurari % Released under LPPL 1.3c+. % See tex4ht-cpright.tex for license text. @@ -26,7 +26,7 @@ \<html5\><<< % html5.4ht (|version), generated from |jobname.tex -% Copyright 2016-2022 TeX Users Group +% Copyright 2016-2023 TeX Users Group |<TeX4ht copywrite|> >>> @@ -69,6 +69,45 @@ \fi >>> +\section{Default CSS style} + +This style fixes some common issues regarding size of sectioning commands, +background of generated images in the dark mode, or line lenght. + + +\<configure html5 tex4ht\><<< +\:CheckOption{nostyle}\if:Option +\else +\Log:Note{We use a default CSS style. Use the `nostyle' option if you want to use custom a CSS design} +\Css{body{ + margin:1em auto; + max-width:80ch; + padding:0 .62em; +}} + +\Css{h1,h2,h3,h4,h5 { + line-height:1.2; +}} +\Css{@media print{ + body{ + max-width:none + } +}} +\Css{.partHead, likepartHead { font-size: 2em; }} +\Css{.chapterHead, likechapterHead { font-size: 1.7411em; }} +\Css{.sectionHead, likesectionHead { font-size: 1.5157em; }} +\Css{.subsectionHead, likesubsectionHead { font-size: 1.3195em; }} +\Css{.subsubsectionHead, likesubsubsectionHead { font-size: 1.1487em; }} + +\Css{ + @media (prefers-color-scheme: dark) { + img[src^="\jobname"]{filter: invert(1); } + } +} +\fi +>>> + + %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \section{Language and charset setting} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |