4

I knew citations can be embedded as footnotes in biblatex using \footcite{}. I encountered an error ! Undefined control sequence. .

! Undefined control sequence.
l.7 \footcite

I tried to solve it by adding the package biblatex, but encountered another issue ! LaTeX Error: Command \bibhang already defined..

How do I embed citations into footnotes using natbib?


This question is not duplicated with What to do to switch to biblatex? as I am seeking for a solution of embedding citations into footnotes (I use the template latex using natbib from Cambridge for my thesis) without switching to biblatex (it raises other issues.).

8
  • Short answer (because of missing MWE): \footnote{\cite{…}}. Nevertheless, I would recommend to switch over from natbib to biblatex. This means you should remove loading natbib and use biblatex and biber instead (and also remove \bibliographystyle and replace \bibliography by \addbibresource and printbibliography). If you need natbib compatibility you can use option natbib. Mar 6, 2017 at 11:22
  • 2
    Possible duplicate of What to do to switch to biblatex? Mar 6, 2017 at 11:25
  • @Schweinebacke, any reason to switch to biblatex? Mar 6, 2017 at 11:54
  • You want to use \footcite and biblatex provides \footcite. ;-) And have a look into tex.stackexchange.com/questions/25701/… Mar 6, 2017 at 11:59
  • To the best of my knowledge natbib does not have a \footcite equivalent. There is footbib, but I'm not even sure if its compatible with natbib. Other than that your best bet might be \footnote{\cite{...}} or a new command for that. Is there any special reason you have to use natbib and can't use biblatex?
    – moewe
    Mar 6, 2017 at 13:28

1 Answer 1

2

natbib does not provide commands for citations in footnotes out of the box.

You can certainly use \footnote{\cite{sigfridsson}} and you can create a command for that

\newcommand*{\footcite}[1]{\footnote{\cite{#1}}}

Though you might want to make it more sophisticated with handling for optional arguments if you intend to use it more often.

There used to be the footbib package, but according to egreg's comment on Footbib package error that is incompatible with more recent versions of LaTeX.

If you can't switch to biblatex (or jurabib) you will have to use the poor man's version I suggested above.

4
  • By way of follow-up... I recently started working on an older document that uses natbib and this custom command is very helpful! That said, how can I adjust the command for citations that include the page number for a citation, i.e. \footcite[2]{sigfridsson}? Sep 23 at 20:03
  • @gravityflyer As I said, you need a more sophisticated approach. If you only care about one optional argument, something like \NewDocumentCommand{\footcite}{om}{\footnote{\IfNoValueTF{#1}{\cite{#2}}{\cite[#1]{#2}}}} works. If you want both, you need more involved logic. (In which case I suggest you ask a new question, as it gets a bit tricky writing the required code here in the comments.)
    – moewe
    Sep 25 at 11:49
  • @moewe Thank you! Yes, will add a new question since the suggested code \NewDocumentCommand{\footcite}{om}{\footnote{\IfNoValueTF{#1}{\cite{#2}}{\cite[#1]{#2}}}} unfortunately isn't working for me. Sep 25 at 21:25
  • Update: Successfully amended the code and got it to be fully functional! For future users, updated code can be found here Sep 26 at 3:41

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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