Generalcite with brackets, not superscript

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
CoolnessItself
Posts: 47
Joined: Wed Nov 11, 2009 9:30 pm

cite with brackets, not superscript

Post by CoolnessItself »

I have a bibliography style which adds a superscript number to reference a citation by default. I'm abiding by that, but I'd like to also say something like "In [2,5], this happens" in a few places. Is there a way to force a bracket notation with \cite?

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

josephwright
Site Moderator
Posts: 814
Joined: Tue Jul 01, 2008 2:19 pm

Re: cite with brackets, not superscript

Post by josephwright »

Which LaTeX package are you using for superscript citations? cite, natbib, biblatex, ...?
Joseph Wright
CoolnessItself
Posts: 47
Joined: Wed Nov 11, 2009 9:30 pm

Re: cite with brackets, not superscript

Post by CoolnessItself »

Not sure. I just specify a bibliographystyle and bibliography{file}. I don't have any other usepackages or anything. How do I find out?
josephwright
Site Moderator
Posts: 814
Joined: Tue Jul 01, 2008 2:19 pm

Re: cite with brackets, not superscript

Post by josephwright »

The bibliography style cannot make the citations superscript, so you must have something else going on. Please post a full working example.
Joseph Wright
CoolnessItself
Posts: 47
Joined: Wed Nov 11, 2009 9:30 pm

Re: cite with brackets, not superscript

Post by CoolnessItself »

\documentclass{aiaa-tc} %maybe this?
\begin{document}

Wowzers!!!\cite{Erdos01}

\begin{thebibliography}{9}

\bibitem{Erdos01} P. Erd\H os, \emph{A selection of problems and
results in combinatorics}, Recent trends in combinatorics (Matrahaza,
1995), Cambridge Univ. Press, Cambridge, 2001, pp. 1--6.

\end{thebibliography}
\end{document}
User avatar
gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

cite with brackets, not superscript

Post by gmedina »

CoolnessItself wrote:\documentclass{aiaa-tc} %maybe this?...
Yes. If you replace the aiaa-tc document class with article, for example, the superscripts disappear. You should try contacting the author of that class.
1,1,2,3,5,8,13,21,34,55,89,144,233,...
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

cite with brackets, not superscript

Post by localghost »

The reason for this kind of formatting is that the class uses the overcite package (see README) from the cite bundle. This package is a wrapper for the cite package and calls it with a certain option.

Code: Select all

\usepackage[superscript]{cite}

Thorsten
Post Reply