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.
%</mdwtools>
% \end{meta-comment}
%
%</mdwtools>
% \end{meta-comment}
%
%% \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
%% \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
\protect\footnote{%
The \protect#2{##1} #3 is currently at version %
\mdwfileinfo{##1}{version}, dated \mdwfileinfo{##1}{date}.%
\protect\footnote{%
The \protect#2{##1} #3 is currently at version %
\mdwfileinfo{##1}{version}, dated \mdwfileinfo{##1}{date}.%
% following hacking will do this.
%
% \begin{macrocode}
% 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}
%
\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}
%
%
% \subsection{Starting the main document}
%