Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I'm working on a paper with a large list of authors, hence I've switched to numeric author indices as illustrated at http://www.latex-community.org/viewtopic.php?f=5&t=1517&view=next . Now I want to make sure that multiple affiliations for a single author are properly set off by commas, which should most obviously be handled by \usepackage[multiple]{footmisc}. Unfortunately, as shown below, this seems (?) to fail in the \author context (i.e., although other footnotes in the test document look OK, the ones in the author list are squished together)? (I was originally using \thanks for the affiliations but tried switching in this example to \footnote -- I don't have any footnotes in the paper so I don't care about using a separate counter ...)

(In my real example I've also got affiliations shared by multiple authors as in Using \author and \thanks ; I generate the appropriate \footnotemark references using some R code ...)

\documentclass{article}
\usepackage{scrtime}
\usepackage[multiple]{footmisc}
\makeatletter
\renewcommand*\@fnsymbol[1]{\the#1}  %% change footnotes to numeric superscripts
\makeatother
\author{Joe Schmo\footnote{first address}\footnote{second address} 
   \and Fred Blow \footnote{third address}\footnote{fourth address}}
\title{Test}
\date{\today @ \thistime}
\textheight=8cm
\begin{document}
\maketitle
Also try some footnotes: this\footnote{yes} and that\footnote{no}\footnote{maybe}
\end{document}

And the (disappointing) results (cropped with pdfcrop: a bit fuzzy, but I think it's clear even from this that the footnotes within the text are properly delimited while ones from within \author{} are not ...):

[first question I've posted on tex.stackexchange.com : feel free to suggest improvements to the question / critical information I left out ...]

enter image description here

share|improve this question
    
You may want to check out this answer: tex.stackexchange.com/a/62091/5001 –  Mico Oct 6 '12 at 4:16
    
@Mico , I will take a look -- thanks -- but my first reaction is that it doesn't seem to apply, since at least the main subject of the question is about incompatibility with the hyperref package, which I'm not using here ... edit: doesn't seem to help in this case (I think the problem may be with something \author{} does ??) –  Ben Bolker Oct 6 '12 at 4:20
1  
A tip for your MWE: Add \textheight=8cm (or some other size) to your preamble to make everything more compact. –  doncherry Oct 6 '12 at 4:44

1 Answer 1

up vote 2 down vote accepted

This is because \maketitle redefines \@makefnmark:

\def\@makefnmark{\rlap{\@textsuperscript{\normalfont\@thefnmark}}}

You can undo this using etoolbox's \patchcmd:

\patchcmd\maketitle{%
  \def\@makefnmark{\rlap{\@textsuperscript{\normalfont\@thefnmark}}}}{}{}{}

So my complete solution would be as follows (also using fnpct instead of footmisc for once because I like it and second because it allows using \thanks, too):

\documentclass{article}
\usepackage{scrtime}
% fnpct instead of footmisc:
\usepackage[dont-mess-around]{fnpct}

% patch \maketitle:
\usepackage{etoolbox}
\makeatletter
% undo counter resetting in case there are more footnotes:
\patchcmd\maketitle{\setcounter{footnote}{0}}{}{}{}
% undo \@fnsymbol, add adapting of \thanks:
\patchcmd\maketitle{%
  \renewcommand\thefootnote{\@fnsymbol\c@footnote}}{\AdaptNote\thanks\multthanks}{}{}
% undo redefinition of \@makefnmark:
\patchcmd\maketitle{%
  \def\@makefnmark{\rlap{\@textsuperscript{\normalfont\@thefnmark}}}}{}{}{}
\makeatother

% both \footnote and \thanks work:
\author{Joe Schmo\footnote{first address}\footnote{second address} 
  \and Fred Blow\thanks{third address}\thanks{fourth address}}
\title{Test}
\date{\today\ @ \thistime}
\textheight=8cm

\begin{document}
\maketitle
Also try some footnotes: this\footnote{yes} and that\footnote{no}\footnote{maybe}

\end{document}

enter image description here

share|improve this answer
    
hmm. having some trouble getting this to work, possibly/probably because my texlive installation is out of date (I'm on Ubuntu 10.04) ... will keep struggling ... –  Ben Bolker Oct 9 '12 at 18:03

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.