I want to cite a refrence in a primary source that is already a citation from a secondary source. As far as I know, I have to refer to both the citing author and the original author of the quote.
The quote is as follows:
"[…] a change made to the internal structure of software to make it easier to understand and cheaper to modify without changing its observable behavior."
I read it in Kerievsky, Refactoring to Patterns, 2005. It was originally written by Fowler in Refactoring: Improving the Design of Existing Code, 1999.
Citing in text, I would write something like this:
Refactoring is "…" [Fowler 1999 cited by Kerievsky 2005].
Here is a minimal working example, which just places both references in brackets:
\documentclass{memoir}
\usepackage{natbib}
\begin{document}
According to Martin Fowler, refactoring is ``a change made to the internal
structure of software to make it easier to understand and cheaper to modify
without changing its observable behavior''~\cite{Fow:1999,Ker:2005}.
\bibliographystyle{unsrt}
\bibliography{references}
\end{document}
Using BibTeX, this is not so straight forward anymore. I use numbers for citations and print the bibliography in the appendix. What would be a best practice solution for citing citations with BibTeX?
Best Answer
For the sake of argument, I'll assume that there are entries with keys
Ker:2005
andFow:1999
in your.bib
file which point to the pieces by Kerievsky and Fowler, respectively. Assuming you use thenatbib
citation management package, you could proceed as follows.Load the
natbib
package with the optionssquare
(to produce square brackets around the parenthetical citations) andnumbers
(to produce numeric-style citations).Use a combination of
\citep
and\citealp
to create the desired citation:If this syntax looks like it's going to be a bit hard to remember, you might want to define a macro named
\citeprimsec
in the preamble:and employ it in the body of the document as
The name of the macro will hopefully make it more or less obvious that the first argument should be the key of the primary reference and that its second argument should be the key of the secondary reference.
Addendum: I just noticed that your comment that you do not use
natbib
. Well, addingnatbib
to the list of packages you load in the preamble shouldn't be a big deal. Just be sure to load it with the optionssquare
andnumbers
. You needn't modify any of your existing\cite
commands.