[tex4ht-commits] [SCM] tex4ht updated: r1237 - trunk/lit

Michal Hoftich INVALID.NOREPLY at gnu.org.ua
Tue Nov 15 16:09:44 CET 2022


Author: michal_h21
Date: 2022-11-15 15:09:44 +0000 (Tue, 15 Nov 2022)
New Revision: 1237

Modified:
   trunk/lit/ChangeLog
   trunk/lit/tex4ht-4ht.tex
Log:
better handling of authblk maketitle

Modified: trunk/lit/ChangeLog
===================================================================
--- trunk/lit/ChangeLog	2022-11-15 12:28:12 UTC (rev 1236)
+++ trunk/lit/ChangeLog	2022-11-15 15:09:44 UTC (rev 1237)
@@ -1,5 +1,9 @@
 2022-11-15  Michal Hoftich  <michal.h21 at gmail.com>
 
+	* tex4ht-4ht.tex (authblk.4ht): better handling of the authblk
+	version of \maketitle
+	https://tex.stackexchange.com/a/665125/2891
+
 	* tex4ht-fonts-stix.tex: added support for the STIX fonts.
 
 2022-11-04  Michal Hoftich  <michal.h21 at gmail.com>

Modified: trunk/lit/tex4ht-4ht.tex
===================================================================
--- trunk/lit/tex4ht-4ht.tex	2022-11-15 12:28:12 UTC (rev 1236)
+++ trunk/lit/tex4ht-4ht.tex	2022-11-15 15:09:44 UTC (rev 1237)
@@ -3729,20 +3729,42 @@
 %%%%%%%%%%%%%%%%%%
 \Section{authblk}
 
-This is a basic fix for authblk package. 
-\Link[https://tex.stackexchange.com/a/309246/2891]{}{}More context.\EndLink
 \<authblk.4ht\><<<
 % authblk.4ht (|version), generated from |jobname.tex
 % Copyright 2017 TeX Users Group
 |<TeX4ht license text|>
-\def\maketitle{\bgroup%
- \AB at maketitle%
-\egroup}
-
+|<authblk maketitle|>
 \Hinput{authblk}
 \endinput
 >>> \AddFile{8}{authblk}
 
+This is a basic fix for authblk package. 
+\Link[https://tex.stackexchange.com/a/309246/2891]{}{}Original issue.\EndLink
+
+This is modified  version of TeX4ht maketitle, with support for arguments in
+ at author, and it uses AB at maketitle, as o:maketitle: caused infinite loop.
+
+\<authblk maketitle\><<<
+\let\o:maketitle:|=\maketitle
+\def\maketitle{\bgroup 
+   |<adjust minipageNum for setcounter footnote 0|>%
+   \ifx \EndPicture\:UnDef  
+      \def\sec:typ{title}%
+      \Configure{HtmlPar}{}{}{}{}%
+      \Configure{newpage}{}%
+      \ConfigureEnv{center}{\empty}{}{\empty}{\empty}
+      \renewenvironment{tabular}[2][]{\begin{center}}{\end{center}}
+      \ConfigureEnv{tabular}{\empty}{}{}{}%
+      |<title for TITLE|>%
+      \pend:def\@title{\a:ttl}\append:def\@title{\b:ttl}%
+      \pend:def\@date{\a:date}\append:def\@date{\b:date}%
+      \pend:defI\@author{\a:author}\append:def\@author{\b:author}%
+      |</and for maketitle|>%
+   \fi 
+   \pic:gobble\a:mktl  \AB at maketitle \pic:gobble\b:mktl
+   \egroup \let\maketitle|=\empty}
+>>>
+
 %%%%%%%%%%%%%%%%%%
 \Section{geometry}
 



More information about the tex4ht-commits mailing list.