summaryrefslogtreecommitdiff
path: root/support/TeX4ht/source/tex4ht-4ht.tex
diff options
context:
space:
mode:
Diffstat (limited to 'support/TeX4ht/source/tex4ht-4ht.tex')
-rw-r--r--support/TeX4ht/source/tex4ht-4ht.tex36
1 files changed, 29 insertions, 7 deletions
diff --git a/support/TeX4ht/source/tex4ht-4ht.tex b/support/TeX4ht/source/tex4ht-4ht.tex
index 29bfdaf2db..b78484d8a0 100644
--- a/support/TeX4ht/source/tex4ht-4ht.tex
+++ b/support/TeX4ht/source/tex4ht-4ht.tex
@@ -1,4 +1,4 @@
-% $Id: tex4ht-4ht.tex 1235 2022-11-04 15:46:19Z michal_h21 $
+% $Id: tex4ht-4ht.tex 1237 2022-11-15 15:09:44Z michal_h21 $
% tex tex4ht-4ht or ht tex tex4ht-4ht
%
% Copyright 2009-2022 TeX Users Group
@@ -3729,20 +3729,42 @@ because Hyperref exits before this macro is defined.
%%%%%%%%%%%%%%%%%%
\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@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
+@author, and it uses AB@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@maketitle \pic:gobble\b:mktl
+ \egroup \let\maketitle|=\empty}
+>>>
+
%%%%%%%%%%%%%%%%%%
\Section{geometry}