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
Click For Summary
SUMMARY

The discussion focuses on formatting citations in LaTeX using the \usepackage[superscript]{cite} command. Users encountered an issue where the citation appears after a comma instead of before it. The solution involves inserting an intervening empty set of braces {} between the citation command and the comma, which successfully positions the citation correctly as desired.

PREREQUISITES
  • Familiarity with LaTeX syntax and commands
  • Understanding of citation management in LaTeX
  • Knowledge of formatting techniques in LaTeX
  • Experience with the cite package in LaTeX
NEXT STEPS
  • Research advanced LaTeX citation techniques using the biblatex package
  • Learn about custom citation styles in LaTeX
  • Explore LaTeX formatting commands for better document presentation
  • Investigate troubleshooting common LaTeX formatting issues
USEFUL FOR

LaTeX users, academic writers, and researchers who need to format citations correctly in their documents.

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
 

Similar threads

  • · Replies 11 ·
Replies
11
Views
6K
  • · Replies 3 ·
Replies
3
Views
6K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 4 ·
Replies
4
Views
4K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 1 ·
Replies
1
Views
14K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 21 ·
Replies
21
Views
3K
  • · Replies 9 ·
Replies
9
Views
2K
  • · Replies 87 ·
3
Replies
87
Views
10K