# How do you force a citation to appear before a comma in LaTeX?

• LaTeX

\usepackage[superscript]{cite}

Someone said something super important\cite{someone20}, and it was super interesting.

1) Someone, science journal, 2020.

Except it actually comes out with the ^1 AFTER the comma. I want it to appear superscript to the name not a comma. How?

Cheers

cristo
Staff Emeritus
Put a space between \cite{someone20} and the comma after it.

Put a space between \cite{someone20} and the comma after it.

but when i did this there is now a space netween the citation and the comma. I want it to read

thing^ref,

not

thing^ref ,

cristo
Staff Emeritus
but when i did this there is now a space netween the citation and the comma. I want it to read

thing^ref,

not

thing^ref ,

It's presumably not designed to work like that (because the comma should be after the word, and not after the superscript citation). Try forcing the comma back with some \! between the \cite and the comma.

CRGreathouse