From: Mark Wooding Date: Sat, 5 Sep 2020 14:33:46 +0000 (+0100) Subject: mdwtools.tex: Fix spacing of footnote markers in the document title. X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/mdwtools/commitdiff_plain/f06ea12564f3789094c40f959ffd6f5243d98e07 mdwtools.tex: Fix spacing of footnote markers in the document title. The default document classes, and, separately, the `doc' package, arrange for `\maketitle' to set footnote markers without taking up horizontal space. Apparently, if you have author names with affiliations in footnotes, then the footnote marker shifts the names visually off-centre. We don't have this problem here, so turn that off, and remove the compensatory `\space' following the marker. --- diff --git a/mdwtools.tex b/mdwtools.tex index bf5ac76..e192d13 100644 --- a/mdwtools.tex +++ b/mdwtools.tex @@ -36,7 +36,7 @@ % % \end{meta-comment} % -% \CheckSum{672} +% \CheckSum{679} %% \CharacterTable %% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z %% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z @@ -989,7 +989,7 @@ \protect\footnote{% The \protect#2{##1} #3 is currently at version % \mdwfileinfo{##1}{version}, dated \mdwfileinfo{##1}{date}.% - }\space% + }% }% % \end{macrocode} % @@ -1074,13 +1074,29 @@ % following hacking will do this. % % \begin{macrocode} - \edef\next{\endgroup\noexpand\title{\mdw@title}}% + \edef\next{\endgroup\noexpand\title{\noexpand\mdw@titlehack\mdw@title}}% \next% } % \end{macrocode} % % \end{macro} % +% \begin{macro}{\mdw@titlehack} +% +% Wait! Did you notice that |\mdw@titlehack|? What's that about? +% +% It turns out that the default document classes hack the footnote insertion +% commands to make footnote symbols take up no horizontal space in the title. +% Apparently this makes author names look as if they're centred properly when +% there are affiliation footnotes. Anyway, \package{doc} perpetuates this +% silliness, but it makes a mess of the version markers I insert, so I must +% deploy countermeasures. +% +% \begin{macrocode} +\def\mdw@titlehack{\def\@makefnmark{$\m@th^{\@thefnmark}$}} +% \end{macrocode} +% +% \end{macro} % % \subsection{Starting the main document} %