0

How can I make a small modification to the style of citation numbering (i.e., for the \cite command) in a LaTeX document while at the same time using a bibliography management system that supports manual entry of bibliography entries? (To my knowledge, BibTeX and BibLaTeX do not support this, as it runs counter to their philosophy of automated bibliography creation. If they do support this, I would accept that as an alternative answer to my question.) Specifically, I want the citation numbers to be superscript: the default looks like

[2]

and I would like

[2]

instead.

My question is distinct from the question of changing the style of the \bibitem labels; this is easy to do by redefining \@biblabel, and I would hope that there is a similarly easy solution for changing citation numbers.

(I'm translating a document and trying to replicate the original style as closely as possible. It's easier to just copy the old bibliography entries than to identify a bibliography style that matches them, if one exists at all.)

  • 2
    Can you add an example and show what you want to modify? – user36296 Jun 2 '18 at 14:53
  • 1
    You could try to load the cite package with the superscript option: \usepackage[superscript]{cite}. It should work with manual bibliographies as well. – moewe Jun 2 '18 at 15:54
  • @moewe, this is close to what I need, but I would also like to retain the brackets around the citation number. – user134824 Jun 2 '18 at 17:33
1

Depending on whether you want the brackets in the superscript or outside you can use

\makeatletter
\def\@cite#1#2{[\hbox{\@textsuperscript{\normalfont #1}}]}
\makeatother

or

\makeatletter
\def\@cite#1#2{\hbox{\@textsuperscript{\normalfont [#1]}}}
\makeatother

The former places the brackets around the superscript to yield

[1]

while the latter places the brackets in the superscript to yield

[2]


Alternatively you can load natbib with the options square and super

\usepackage[square,super]{natbib}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.