diff options
Diffstat (limited to 'support')
-rw-r--r-- | support/TeX4ht/source/ChangeLog | 13 | ||||
-rw-r--r-- | support/TeX4ht/source/tex4ht-4ht.tex | 41 |
2 files changed, 41 insertions, 13 deletions
diff --git a/support/TeX4ht/source/ChangeLog b/support/TeX4ht/source/ChangeLog index bf51d9bae7..1c44cdae8c 100644 --- a/support/TeX4ht/source/ChangeLog +++ b/support/TeX4ht/source/ChangeLog @@ -1,3 +1,16 @@ +2023-04-10 Michal Hoftich <michal.h21@gmail.com> + + * tex4ht-4ht.tex (longtable.4ht): fixed another \caption issue. + https://tex.stackexchange.com/q/682383/2891 + + * tex4ht-4ht.tex ( + aa.4ht, acm_proc_article-sp.4ht, article.4ht, book.4ht, + JHEP.4ht, report.4ht, revtex4.4ht, scrbook.4ht, scrbook.4ht, + scrreprt.4ht, scrreprt.4ht + ): call \@endpart after contents of \part were printed. + https://tex.stackexchange.com/a/682376/2891 + + 2023-04-08 Michal Hoftich <michal.h21@gmail.com> * tex4ht-html4.tex (html4.4ht): show next paragraph after footnote diff --git a/support/TeX4ht/source/tex4ht-4ht.tex b/support/TeX4ht/source/tex4ht-4ht.tex index f1aa1c341d..ad61bdcdf2 100644 --- a/support/TeX4ht/source/tex4ht-4ht.tex +++ b/support/TeX4ht/source/tex4ht-4ht.tex @@ -1,4 +1,4 @@ -% $Id: tex4ht-4ht.tex 1318 2023-04-06 09:30:00Z michal_h21 $ +% $Id: tex4ht-4ht.tex 1322 2023-04-10 13:54:40Z michal_h21 $ % tex tex4ht-4ht or ht tex tex4ht-4ht % % Copyright 2009-2023 TeX Users Group @@ -10553,7 +10553,8 @@ normal code for caption will not work. \NewConfigure{longtablecaption}{4} \def\:tempc#1#2#3{% \a:longtablecaption #1{\cap:ref{#2}}\if\relax\detokenize{#1}\relax\else\b:longtablecaption\fi\c:longtablecaption#3\d:longtablecaption - \endgraf\vskip\baselineskip} + \endgraf%\vskip\baselineskip <- this caused error in https://tex.stackexchange.com/q/682383/2891 + } \HLet\LT@makecaption\:tempc >>> @@ -15614,7 +15615,7 @@ CAN'T, e.g., : \else \addcontentsline{toc}{part}{#1}% \fi - \csname @endpart\endcsname} + } >>> The \''\@endpart' is not defined for \`'article' class. @@ -15629,7 +15630,9 @@ The above is LaTeX's def without the output of titles. \let\no@part|=\@part \def\@part[#1]#2{% {\let\addcontentsline|=\:gobbleIII\no@part[#1]{}}% - \HtmlEnv \Toc:Title{#1}\:part{#2}} + \HtmlEnv \Toc:Title{#1}\:part{#2}% + \csname @endpart\endcsname% + } >>> \<html late parts\><<< @@ -17030,7 +17033,7 @@ titleref command. \else \addcontentsline{toc}{part}{#1}% \fi - \csname @endpart\endcsname} + } \let\:tempb\part \Def:Section\part{\thepart}{#1} \let\:part\part @@ -17038,14 +17041,18 @@ titleref command. \let\no@part\@part \def\@part[#1]#2{% {\let\addcontentsline\:gobbleIII\no@part[#1]{}}% - \HtmlEnv \Toc:Title{#1}\:part{#2}} + \HtmlEnv \Toc:Title{#1}\:part{#2}% + \csname @endpart\endcsname% + } \Def:Section\likepart{}{#1} \let\:likepart\likepart \let\likepart\:UnDef \let\no@spart\@spart \def\@spart#1{% {\let\addcontentsline\:gobbleIII\no@spart{}}% - \HtmlEnv \:likepart{#1}} + \HtmlEnv \:likepart{#1}% + \csname @endpart\endcsname% + } \let\no@section\section \Def:Section\section{\ifnum \c:secnumdepth>\c@secnumdepth \else @@ -18484,7 +18491,7 @@ TeX4ht now loads before class files. We reuse the code used in Koma classes \else \addcontentsline{toc}{part}{#1}% \fi - \csname @endpart\endcsname} + } \let\:tempb\part \Def:Section\part{\thepart}{#1} \let\:part\part @@ -18492,14 +18499,18 @@ TeX4ht now loads before class files. We reuse the code used in Koma classes \let\no@part\@part \def\@part[#1]#2{% {\let\addcontentsline\:gobbleIII\no@part[#1]{}}% - \HtmlEnv \Toc:Title{#1}\:part{#2}} + \HtmlEnv \Toc:Title{#1}\:part{#2}% + \csname @endpart\endcsname% + } \Def:Section\likepart{}{#1} \let\:likepart\likepart \let\likepart\:UnDef \let\no@spart\@spart \def\@spart#1{% {\let\addcontentsline\:gobbleIII\no@spart{}}% - \HtmlEnv \:likepart{#1}} + \HtmlEnv \:likepart{#1}% + \csname @endpart\endcsname% + } \fi \ifx \section\:UnDef\else @@ -18669,7 +18680,7 @@ TeX4ht now loads before class files. We reuse the code used in Koma classes \else \addcontentsline{toc}{part}{#1}% \fi - \csname @endpart\endcsname} + } \let\:tempb\part \Def:Section\part{\thepart}{#1} \let\:part\part @@ -18677,14 +18688,18 @@ TeX4ht now loads before class files. We reuse the code used in Koma classes \let\no@part\@part \def\@part[#1]#2{% {\let\addcontentsline\:gobbleIII\no@part[#1]{}}% - \HtmlEnv \Toc:Title{#1}\:part{#2}} + \HtmlEnv \Toc:Title{#1}\:part{#2}% + \csname @endpart\endcsname% + } \Def:Section\likepart{}{#1} \let\:likepart\likepart \let\likepart\:UnDef \let\no@spart\@spart \def\@spart#1{% {\let\addcontentsline\:gobbleIII\no@spart{}}% - \HtmlEnv \:likepart{#1}} + \HtmlEnv \:likepart{#1}% + \csname @endpart\endcsname% + } \fi \ifx \section\:UnDef\else |