TransWikia.com

Is it possible to remove the comma that appears before an in-text citation note?

TeX - LaTeX Asked by Sikander on May 28, 2021

I am using natbib and the apacite style. I want to cite Descartes’ Meditations, and one standard way of doing it involves an in-text citation of the form ‘(CSM 25)’. I managed to use the alias system to get ‘(CSM, 25)’, but I don’t know how to remove the comma. Is there a way to remove the comma to get ‘(CSM 25)’? The following is my code for the citation followed by my code for the .bib file:

defcitealias{Meditations}{CSM}
citepalias[][25]{Meditations}


@book{Meditations,
  author = {Rene Descartes},
  year = {1985},
  title = {The Philosophical Writings of {Descartes}, Vol. 2},
  translator = {John Cottingham and Robert Stoothoff and Dugald Murdoch},
  publisher = {Cambridge University Press},
  originalyear = {1641},
  address     = {Cambridge},
}

Thank you.

One Answer

Since you use the apacite citation management package with the option natbibapa, you can issue a directive such as setcitestyle{notesep={ }} to change the separator between the (aliased) citation callout and the subsequent note.

enter image description here

documentclass{article} 
% using 'article' rahter than 'report' to keep all output on the same page

begin{filecontents}[overwrite]{mybib.bib}
@book{Meditations,
  author       = {René Descartes},
  year         = {1985},
  title        = {The Philosophical Writings of {Descartes}, {Vol.~2}},
  translator   = {John Cottingham and Robert Stoothoff and Dugald Murdoch},
  publisher    = {Cambridge University Press},
  originalyear = {1641},
  address      = {Cambridge},
}
end{filecontents}

usepackage[natbibapa]{apacite}
bibliographystyle{apacite}
defcitealias{Meditations}{CSM}
setcitestyle{notesep={ }} % default separator string is ", "

begin{document}
citepalias[25]{Meditations}
bibliography{mybib}
end{document}

Answered by Mico on May 28, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP