[tex4ht-commits] [SCM] tex4ht updated: r1103 - trunk/lit
Michal Hoftich
INVALID.NOREPLY at gnu.org.ua
Tue Mar 29 17:46:43 CEST 2022
Author: michal_h21
Date: 2022-03-29 15:46:43 +0000 (Tue, 29 Mar 2022)
New Revision: 1103
Modified:
trunk/lit/ChangeLog
trunk/lit/mktex4ht-cnf.tex
trunk/lit/tex4ht-4ht.tex
Log:
fixed support for multiple subfiles
Modified: trunk/lit/ChangeLog
===================================================================
--- trunk/lit/ChangeLog 2022-03-29 11:09:10 UTC (rev 1102)
+++ trunk/lit/ChangeLog 2022-03-29 15:46:43 UTC (rev 1103)
@@ -1,5 +1,9 @@
2022-03-29 Michal Hoftich <michal.h21 at gmail.com>
+ * tex4ht-4ht.tex (subfiles.4ht): fixed support for multiple included
+ files in the Subfiles package.
+ https://tex.stackexchange.com/a/353117/2891
+
* tex4ht-html4.tex (html4.4ht): handle \# character in \title.
https://tex.stackexchange.com/a/638821/2891
Modified: trunk/lit/mktex4ht-cnf.tex
===================================================================
--- trunk/lit/mktex4ht-cnf.tex 2022-03-29 11:09:10 UTC (rev 1102)
+++ trunk/lit/mktex4ht-cnf.tex 2022-03-29 15:46:43 UTC (rev 1103)
@@ -369,5 +369,6 @@
\AddFile{9}{menukeys}
\AddFile{9}{animate}
\AddFile{9}{sectionbreak}
+\AddFile{9}{subfiles}
\AddFile{9}{fontawesome5}
% \AddFile{9}{mktex4ht}
Modified: trunk/lit/tex4ht-4ht.tex
===================================================================
--- trunk/lit/tex4ht-4ht.tex 2022-03-29 11:09:10 UTC (rev 1102)
+++ trunk/lit/tex4ht-4ht.tex 2022-03-29 15:46:43 UTC (rev 1103)
@@ -4746,6 +4746,43 @@
\Hinput{sectionbreak}
>>> \AddFile{9}{sectionbreak}
+
+\<subfiles.4ht\><<<
+% subfiles.4ht (|version), generated from |jobname.tex
+% Copyright 2022 TeX Users Group
+|<TeX4ht license text|>
+|<subfiles enddocument|>
+\Hinput{subfiles}
+\endinput
+>>> \AddFile{9}{subfiles}
+
+We use the original version of \Verb|\subfiles at renewEndDocument|, the only
+change is that we added the \Verb|\choose:begin| redefinition. It is necessary
+to prevent processing of the document after \Verb|\end{document}| in the
+included subfile.
+
+\<subfiles enddocument\><<<
+\def\:tempa#1{%
+ \ifcsname subfiles at end\endcsname
+ \else
+ \subfiles at saveEndTo\subfiles at end
+ \fi
+ \let\choose:begin\@secondoftwo
+ \expandafter\def\csname end \endcsname##1{%
+ \romannumeral
+ \subfiles at StrIfEqTF{##1}{document}{%
+ \z@
+ \subfiles at restoreEndFrom\subfiles at end
+ #1%
+ }{%
+ \expandafter\expandafter\expandafter\z@\subfiles at end{##1}%
+ }%
+ }%
+}
+
+\HLet\subfiles at renewEndDocument\:tempa
+>>>
+
\Section{url.sty}
%%%%%%%%%%%%%%%%%%
More information about the tex4ht-commits
mailing list.