General ⇒ Citation Number
Citation Number
For example,
You can look at the book Brief History of Time~\cite{hawking}.
This may appear after compilation with bibliography (say, it's the 6th reference in the bibliography list) as
You can look at the book Brief History of Time[6].
But I want to write like the following.
You can look at Ref. 6.
But if use \cite here as
You can look at Ref.~\cite{hawking},
I get
You can look at Ref. [6]
But I don't want [ ] in addition, I want the reference number only, i.e. 6 to appear in our example.
Hope I could make it clear. Thanks.
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
Re: Citation Number

- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Citation Number
Code: Select all
\makeatletter
\def\@cite#1#2{{#1\if@tempswa , #2\fi}}
\makeatother
Thorsten
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Re: Citation Number
I found \citenum works as well. Didn't know that before.