From fd2f9ef68518c5ae05d71a76af7835f3022200e6 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Tue, 10 Jan 2023 21:34:55 +0000 Subject: css for sections and page dimensions, tex4ht r1283 git-svn-id: svn://tug.org/texlive/trunk@65513 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/tex/generic/tex4ht/html5.4ht | 53 ++++++++++++++++++++++++-- 1 file changed, 49 insertions(+), 4 deletions(-) (limited to 'Master/texmf-dist/tex/generic/tex4ht/html5.4ht') diff --git a/Master/texmf-dist/tex/generic/tex4ht/html5.4ht b/Master/texmf-dist/tex/generic/tex4ht/html5.4ht index f29e77b0d91..2e25a58bcb2 100644 --- a/Master/texmf-dist/tex/generic/tex4ht/html5.4ht +++ b/Master/texmf-dist/tex/generic/tex4ht/html5.4ht @@ -1,5 +1,5 @@ -% html5.4ht (2022-08-11-14:16), generated from tex4ht-html5.tex -% Copyright 2016-2022 TeX Users Group +% html5.4ht (2023-01-10-13:34), generated from tex4ht-html5.tex +% Copyright 2016-2023 TeX Users Group % % This work may be distributed and/or modified under the % conditions of the LaTeX Project Public License, either @@ -16,7 +16,7 @@ % % If you modify this program, changing the % version identification would be appreciated. -\immediate\write-1{version 2022-08-11-14:16} +\immediate\write-1{version 2023-01-10-13:34} \exit:ifnot{amsart,% amsbook,% @@ -68,6 +68,35 @@ tex4ht} \else \Log:Note{To print a timestamp, use the command line option timestamp} \fi +\: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 \def\Declare:Language#1#2{% \expandafter\gdef\csname rfclang#1\endcsname{#2}% } @@ -369,6 +398,8 @@ tex4ht} + + %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \ConfigureHinput{amsart} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% @@ -416,7 +447,6 @@ tex4ht} \endinput\empty\empty\empty\empty\empty\empty %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% - %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \ConfigureHinput{amsbook} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% @@ -730,6 +760,16 @@ tex4ht} + + + + + + + + + + @@ -1136,6 +1176,11 @@ tex4ht} + + + + + -- cgit v1.2.3