4

I am currently porting a large document to use biblatex-apa. Everything is finally getting into place, but I've now realized that to get correct APA citations I should use \parencite instead of \cite.

I really don't want to replace the citations throughout the entire document, especially when every other day they will change the reference manager backend.

Is there an easy way to simply reinterpret \cite with \parencite everywhere in the document?

  • 3
    You could \let\cite\parencite, but I'm not too fond of that. Why don't you just search and replace \cite and \parencite in your editor? That should be a thing of 30 secs tops in most modern editors. And it can easily be undone by the opposite replacement. – moewe Sep 29 '16 at 12:29
  • \let\cite\parencite is great. Honestly, the reason is this is a version controlled document that will be parsed and reinterpreted by multiple backends (i.e. both biber and bibtex) on a regular basis. There is a big desire in this case to have a single cite command. The document is quite big. – glopes Sep 29 '16 at 12:33
  • Mhhh, OK, maybe then the \autocite thing is more relevant than I thought. – moewe Sep 29 '16 at 12:42
  • 2
    Just curious, what does the backend have to do with the choice of \cite or \parencite? – Torbjørn T. Sep 29 '16 at 12:42
  • @TorbjørnT. My question exactly ;-) why should it? Unfortunately a citation with biblatex-apa does not place the required parenthesis surrounding the citation, for some reason. I have searched quite extensively and the best suggestion I got was to use \parencite. – glopes Sep 29 '16 at 12:48
5

You could

\let\cite\parencite

but I'm not too fond of that, in fact I cringe every time I have to see this. Normally \letting around commands willy-nilly might have (unforeseeable, bad) consequences, but it is quite unlikely that you break things if you use biblatex.

With biblatex there is the high-level command \autocite that you can use. Then you can easily configure biblatex to use normal \cite, brackets with \parencite or footnotes with \footcite for \autocite. (Mildly related: Universal \cite commands or defining new cite commands)

In most modern editors it will take 30 seconds tops to do a 'search and replace' for \cite vs. \parencite. That can of course easily be undone by the opposite replacement.

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.