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

  • LaTeX
  • Thread starter philip041
  • Start date
  • #1
107
0

Main Question or Discussion Point

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
cristo
Staff Emeritus
Science Advisor
8,107
72
Put a space between \cite{someone20} and the comma after it.
 
  • #3
107
0
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
cristo
Staff Emeritus
Science Advisor
8,107
72
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
CRGreathouse
Science Advisor
Homework Helper
2,820
0
Does putting an intervening {} work? That's the usual method for these sorts of things.
 
  • #6
107
0
yes that, ({}) worked, cheers
 

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

  • Last Post
Replies
9
Views
2K
Replies
3
Views
3K
  • Last Post
Replies
4
Views
2K
Replies
1
Views
3K
Replies
11
Views
2K
Replies
3
Views
2K
Replies
5
Views
2K
Replies
2
Views
52K
Top