diff options
Diffstat (limited to 'support/TeX4ht/source')
-rw-r--r-- | support/TeX4ht/source/ChangeLog | 14 | ||||
-rw-r--r-- | support/TeX4ht/source/mktex4ht-cnf.tex | 3 | ||||
-rw-r--r-- | support/TeX4ht/source/tex4ht-4ht.tex | 42 | ||||
-rw-r--r-- | support/TeX4ht/source/tex4ht-html4.tex | 21 | ||||
-rw-r--r-- | support/TeX4ht/source/tex4ht-unicode.tex | 6 |
5 files changed, 75 insertions, 11 deletions
diff --git a/support/TeX4ht/source/ChangeLog b/support/TeX4ht/source/ChangeLog index 07710254b3..7ac953460c 100644 --- a/support/TeX4ht/source/ChangeLog +++ b/support/TeX4ht/source/ChangeLog @@ -1,3 +1,17 @@ +2023-04-03 Michal Hoftich <michal.h21@gmail.com> + + * tex4ht-4ht.tex (tabto.4ht), + * tex4ht-html4.tex (html4.4ht): added support for the Tabto package. + https://github.com/michal-h21/make4ht/issues/116 + + * tex4ht-4ht.tex (titlesec-hooks.4ht): disable declaration of title + formatting. + https://tex.stackexchange.com/a/680943/2891 + + * tex4ht-html4.tex (html4.4ht): fixed paragraph handling for the + Verse package. + https://tex.stackexchange.com/a/681694/2891 + 2023-03-28 Michal Hoftich <michal.h21@gmail.com> * tex4ht-fonts-modern.tex ( diff --git a/support/TeX4ht/source/mktex4ht-cnf.tex b/support/TeX4ht/source/mktex4ht-cnf.tex index 4b0cba3f4f..7606228a29 100644 --- a/support/TeX4ht/source/mktex4ht-cnf.tex +++ b/support/TeX4ht/source/mktex4ht-cnf.tex @@ -1,4 +1,4 @@ -% $Id: mktex4ht-cnf.tex 1309 2023-03-22 13:48:40Z michal_h21 $ +% $Id: mktex4ht-cnf.tex 1317 2023-04-03 13:19:40Z michal_h21 $ % Manually-maintained file, listing *.4ht files created by tex4ht-4ht.tex. % Read by tex4ht-cond4ht. % @@ -53,6 +53,7 @@ \AddFile{9}{threeparttable} \AddFile{9}{tabularray} \AddFile{9}{mdwtab} +\AddFile{9}{tabto} \AddFile{9}{multirow} \AddFile{8}{theorem} \AddFile{8}{ntheorem} diff --git a/support/TeX4ht/source/tex4ht-4ht.tex b/support/TeX4ht/source/tex4ht-4ht.tex index f0d9816363..ef5026ffd7 100644 --- a/support/TeX4ht/source/tex4ht-4ht.tex +++ b/support/TeX4ht/source/tex4ht-4ht.tex @@ -1,4 +1,4 @@ -% $Id: tex4ht-4ht.tex 1312 2023-03-27 13:06:23Z michal_h21 $ +% $Id: tex4ht-4ht.tex 1317 2023-04-03 13:19:40Z michal_h21 $ % tex tex4ht-4ht or ht tex tex4ht-4ht % % Copyright 2009-2023 TeX Users Group @@ -930,7 +930,7 @@ is loaded, and then load the saved versions back to the original commands. \<titlesec-hooks.4ht\><<< % titlesec-hooks.4ht (|version), generated from |jobname.tex -% Copyright 2022 TeX Users Group +% Copyright 2022-2023 TeX Users Group |<TeX4ht license text|> |<titlesec-packagehooks|> \endinput @@ -954,9 +954,24 @@ is loaded, and then load the saved versions back to the original commands. \let\subparagraph\ttl:subparagraph \let\@makechapterhead\ttl:@makechapterhead \let\@makeschapterhead\ttl:@makeschapterhead + |<disable titlesec format|> } >>> +Titlesec formatting can cause various issues, +so it is best to disable it completely. + +\<disable titlesec format\><<< +\def\ttl@format@si#1#2#3#4#5#6#7{} +\def\ttl@format@ii#1[#2]#3#4#5#6{ + \@ifnextchar[{% + \ttl@format@iii{#2}% + }{% + \ttl@format@iii{#2}[]} +} +\def\ttl@format@iii#1[#2]{} +>>> + %%%%%%%%%%%%%%%%%%%%%%%%%% \Section{Scientific Word} @@ -11340,6 +11355,27 @@ for horizontal and vertical alignment, background color and rules. >>> %%%%%%%%%%%%%%%%%%% +\Section{tabto} +%%%%%%%%%%%%%%%%%%% + +\<tabto.4ht\><<< +% tabto.4ht (|version), generated from |jobname.tex +% Copyright 2023 TeX Users Group +|<TeX4ht license text|> +|<tabto redefine|> +\Hinput{tabto} +\endinput +>>>\AddFile{9}{tabto} + +\<tabto redefine\><<< +\NewConfigure{tabto}{1} +\NewConfigure{tabtos}{1} % for starred version \tabto* +% the provided dimension is stored in \Htabsize +\ProvideDocumentCommand\tabto:fourht{sm}{\def\Htabsize{\the\dimexpr#2\relax}\IfBooleanTF {#1}{\a:tabtos}{\a:tabto}} +\HLet\tabto\tabto:fourht +>>> + +%%%%%%%%%%%%%%%%%%% \Chapter{multirow} %%%%%%%%%%%%%%%%%%% @@ -16394,9 +16430,7 @@ Hfootnote counter, which isn't declared. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \<memhfixc.4ht\><<< -%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % memhfixc.4ht (|version), generated from |jobname.tex -% Copyright 2023 TeX Users Group |<TeX4ht copyright|> |<memhfixc nameref|> \Hinput{memhfixc} diff --git a/support/TeX4ht/source/tex4ht-html4.tex b/support/TeX4ht/source/tex4ht-html4.tex index 7b0733f3aa..8af8932b65 100644 --- a/support/TeX4ht/source/tex4ht-html4.tex +++ b/support/TeX4ht/source/tex4ht-html4.tex @@ -1,4 +1,4 @@ -% $Id: tex4ht-html4.tex 1309 2023-03-22 13:48:40Z michal_h21 $ +% $Id: tex4ht-html4.tex 1317 2023-04-03 13:19:40Z michal_h21 $ % Compile 4 times: latex tex4ht-html4 % Copy html4.4ht into the work directory before all but the last compilation. % @@ -2323,6 +2323,21 @@ We mainly need to handle paragraphs. >>> +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +\subsection{tabto} +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +HTML doesn't support concept of tabbing, so we will just +insert fixed-length space. I am not sure if it is better +than nothing. + +\<configure html4 tabto\><<< +\Configure{tabto}{\HCode{<span class="tabto" style="width:\Htabsize;"> </span>}} +\Configure{tabtos}{\HCode{<span class="tabto" style="width:\Htabsize;"> </span>}} + +\Css{.tabto{display: inline-block;}} +>>> + %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% @@ -16497,10 +16512,10 @@ Blue = 1-minimum(1,Yellow *(1-Black)+Black) \Configure{verseline} {\ifvmode \IgnorePar\fi \EndP \end:verseln - \HCode{<div class="verseline">}\def\end:verseln{\HCode{</div>}}} + \HCode{<div class="verseline">}\def\end:verseln{\HCode{</div>}}\par\ShowPar} {\ifvmode \IgnorePar\fi \EndP \end:verseln \HCode{<div class="skip-verseline">}% - \def\end:verseln{\HCode{</div>}}} + \def\end:verseln{\HCode{</div>}}\par\ShowPar} \Configure{flagverse} {\HCode{<span class="flagverse">}\bgroup \setlength{\vleftskip}{0em}} diff --git a/support/TeX4ht/source/tex4ht-unicode.tex b/support/TeX4ht/source/tex4ht-unicode.tex index cda543e9ab..c5cc398020 100644 --- a/support/TeX4ht/source/tex4ht-unicode.tex +++ b/support/TeX4ht/source/tex4ht-unicode.tex @@ -1,7 +1,7 @@ -% $Id: tex4ht-unicode.tex 1311 2023-03-27 07:25:44Z michal_h21 $ +% $Id: tex4ht-unicode.tex 1314 2023-04-02 15:01:40Z karl $ % latex tex4ht-unicode or xhlatex tex4ht-unicode "html,3,sections+" % -% Copyright 2009-2022 TeX Users Group +% Copyright 2009-2023 TeX Users Group % Copyright 1998-2009 Eitan M. Gurari % Released under LPPL 1.3c+. % See tex4ht-cpright.tex for license text. @@ -227,7 +227,7 @@ of \verb'\mathop', \verb'\mathrel',...., for the next parameter. \<unicode\><<< % unicode.4ht (|version), generated from |jobname.tex -% Copyright 2009-2022 TeX Users Group +% Copyright 2009-2023 TeX Users Group % Copyright |CopyYear.1998. Eitan M. Gurari |<TeX4ht copywrite|> >>> |