TransWikia.com

Adjust space between multiple citations in memo-l class

TeX - LaTeX Asked on February 20, 2021

I would like to reduce (more generally globally adjust to a specific length) the space after the comma in multiple citations, while using the memo-l class.
enter image description here
MWE:

documentclass{memo-l}
begin{document}

Existing: Cite~cite{1, 2}

Desired : Cite [textbf{A},hspace{1pt}textbf{B}]

bibliographystyle{amsalpha}
begin{thebibliography}{10}
bibitem[A]{1}
Cite1
bibitem[B]{2}
Cite2
end{thebibliography}

end{document}

One Answer

The class does nothing to the standard cite command. In the question you found that deals with a similar problem, there was natbib involved, that changes the processing of cite.

Here it is just a matter to change the “control-space” command in @citex to the spacing you'd like to get. Similarly, @cite is the macro to patch for the “composite references”.

documentclass{memo-l}
%documentclass{book}
usepackage{xpatch}

makeatletter
xpatchcmd{@citex}{ }{hspace{1pt}}{}{}
xpatchcmd{@cite}{, }{,hspace{1pt}}{}{}
makeatother

begin{document}

Existing: Cite~cite{1, 2}

Desired : Cite~[textbf{A},hspace{1pt}textbf{B}]

Existing: Cite~cite[Thm.~5]{1}

Desired : Cite~[textbf{A},hspace{1pt}Thm.~5]

bibliographystyle{amsalpha}
begin{thebibliography}{10}
bibitem[A]{1}
Cite1
bibitem[B]{2}
Cite2
end{thebibliography}

end{document}

enter image description here

The small difference you see is because boldface is used throughout in amsbook.cls due to a change in @cite and

defciteform#1{{bfseries#1}}

Correct answer by egreg on February 20, 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