Hey so I'm new to LaTeX and I'm having trouble changing the in-text references from [1][2][3][4] to [1]-[4].
Currently, I just add the citations like this\cite{1}\cite{2}\cite{3}\cite{4}, which produces [1][2][3][4]. What should I change so that it produces [1]-[4]? Thanks!
On a side note, is there a way to make the citations superscript instead of in regular font?
BibTeX, biblatex and biber ⇒ In-text citation: Change [1][2][3][4] to [1]-[4]
NEW: TikZ book now 40% off at Amazon.com for a short time.

In-text citation: Change [1][2][3][4] to [1]-[4]
The "cite" package will do what you want, although you will need to slightly alter how you input multiple citations.
will output [1-4]
Code: Select all
\cite{1,2,3,4}
In-text citation: Change [1][2][3][4] to [1]-[4]
Cool thanks. I found that I actually had to download the package from here before I could use it: ftp://indian.cse.msu.edu/pub/mirrors/CT ... e/cite.sty
And using "\usepackage[superscript]{cite}" solved the superscript problem.
And using "\usepackage[superscript]{cite}" solved the superscript problem.
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
In-text citation: Change [1][2][3][4] to [1]-[4]
Now that the problem is solved, please mark the topic accordingly as described in Section 3 of the Board Rules.
Best regards and welcome to the board
Thorsten
Best regards and welcome to the board
Thorsten
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10