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

  • LaTeX
  • Thread starter philip041
  • Start date
  • Tags
    Force Latex
  • #1
107
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
 

Answers and Replies

  • #2
Put a space between \cite{someone20} and the comma after it.
 
  • #3
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 ,
 
  • #4
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.
 
  • #5
Does putting an intervening {} work? That's the usual method for these sorts of things.
 
  • #6
yes that, ({}) worked, cheers
 

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

Replies
3
Views
644
Replies
8
Views
600
Replies
0
Views
561
Replies
7
Views
283
Replies
8
Views
614
Replies
1
Views
207
Replies
8
Views
556
Replies
3
Views
338
Replies
1
Views
649
Replies
10
Views
748
Back
Top