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

  • Context: LaTeX 
  • Thread starter Thread starter philip041
  • Start date Start date
  • Tags Tags
    Force Latex
Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
5 replies · 9K views
philip041
Messages
104
Reaction score
0
I have a sentence reading:

\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
 
Physics news on Phys.org
Put a space between \cite{someone20} and the comma after it.
 
cristo said:
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 ,
 
philip041 said:
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.
 
Does putting an intervening {} work? That's the usual method for these sorts of things.
 
yes that, ({}) worked, cheers