I'm compiling a journal in which each paper is a \section*
, using \include
to put the whole thing together. Reference-wise each paper has the following format:
``Lorem''.\footnote{Bostock \cite{bostock2} p.~87.}
``Ipsum''.\footnote{Ibid.~p.~133.}
\begin{thebibliography}{99}
\bibitem{bostock2} Bostock, D. (2009) \emph{Philosophy of Mathematics}. Oxford: Wiley-Blackwell.
\end{thebibliography}
This works reasonably, but I've realised it's buggy if two papers use the same label (which, since papers are typeset separately, is very possible). So if Paper 1 only cites bostock2
but Paper 2 cites bostock1
and bostock2
in that order, the footnotes that ought to read [1] in Paper 1 will read [2].
I appreciate that this is a very messy way to be doing things anyway, but is there a minimally-disruptive way (viz. one that doesn't involve making non-specialists spend even more time rearranging someone else's bibliography than they do already) to fix this?
MWE:
\documentclass{article}
\begin{document}
\section*{Paper 1}
Ipsum \cite{ipsum}, % I want this to produce the text '[1]', since it is number 1 in this paper's bibliography.
Dolor \cite{dolor}
\begin{thebibliography}{9}
\bibitem{ipsum} Ipsum
\bibitem{dolor} Dolor
\end{thebibliography}
\section*{Paper 2}
Lorem \cite{lorem}, Ipsum \cite{ipsum}
\begin{thebibliography}{9}
\bibitem{lorem} Lorem
\bibitem{ipsum} Ipsum
\end{thebibliography}
\end{document}
Best Answer
You can apply
ChrisH
's prefix solution as a software fix by modifying the macros to add the prefix automatically. To do this, add in the preamble:And then the only other change needed is to add
\nextpaper
at the beginning of each paper. As noted in the code below, you could apply this to all\section*
commands, but you would need to take care that the counter is not incremented in places where it shouldn't be (like right before the references are typeset, in this case).As desired, the output becomes:
Full Code
Alternative
Just another thought...
ChrisH
also commented, "I assume joining PDFs isn't an option, as articles may share a page?" This is actually a strategy employed by some journals, where papers are designed with wider margins and no header/pagenumber. These "camera-ready" papers can be added to the journal doc withpdfpages
and have the header/pagenumber generated within the bigger package and overlaid on the papers (via a mechanism similar to the answer here).For example, the
IEEEtran.cls
class is designed with this approach in mind. Excerpts from the documentation note:and