I’m using opcit
package to generate footnote style citation. Sometimes I have two bibliography entries with the same author, and if I cite them both in a text, the subsequent \cite
command will reproduce just an “op.cit” reference, without any discrimination between the two sources. Is there a way around this? Also, is there any more elegant way to automatically generate footnote-style citations?
\documentclass{article}
\usepackage[a4paper]{geometry}
\usepackage{hyperref}
\usepackage{mathtools}
\usepackage[american]{babel}
\usepackage{natbib}
\usepackage[hyperref]{opcit}
\begin{document}
Blah Blah.\footnote{\cite{test}, and \cite{random}} Blah Blah.\cite{test}
\nobibliography{testbib}{}
\end{document}
The bibliography has the following entries:
@article{random,
Author = {Test Test},
Date-Added = {2015-07-26 11:01:54 +0000},
Date-Modified = {2015-07-26 11:13:15 +0000},
Journal = {Random Year},
Title = {Random Paper},
Year = {2004}}
@article{test,
Author = {Test Test},
Date-Added = {2015-07-26 11:00:45 +0000},
Date-Modified = {2015-07-26 11:02:25 +0000},
Journal = {Test Journal},
Title = {TestTitle},
Year = {2002}}
The output "Test, op.cit." does not distinguish between Test (2002) and Test (2004).
Best Answer
Here is a solution with
biblatex
(andfnpct
to add a comma between consecutivefootcite
commands). I had to redefine a citation macro in order to obtainloc. cit.
rather than the defaultibid
: