GeneralSuperscript citation help

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
pazmush
Posts: 23
Joined: Thu Jan 01, 2009 11:39 pm

Superscript citation help

Post by pazmush »

I am using the package \usepackage[superscript]{cite} and I am happy with this but within the document I want to have a sentence blah blah blah reference [1,2] blah blah blah, how do I go about it?

Thanks

Recommended reading 2024:

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

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

User avatar
gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

Superscript citation help

Post by gmedina »

Hi,

I infer that you want this particular behaviour for some selected citation(s) and all the others will be superscripted (if all citations are meant to be in-line citations, then simply don't use the superscript package option). If this is so, one possible solution is to use the optional argument of the \cite command; this will typeset the citation in in-line mode even if the superscript option is used. This, however, will add a comma at the end of the list, so a local redefinition of the \citemid command will be necessary and some space correction. The following example illustrates this idea:

Code: Select all

\documentclass{article}
\usepackage[superscript]{cite}

\begin{document}

blah, blah~{\renewcommand\citemid{}\cite[\hspace*{0.8pt}]{one,two}} blah, blah

\begin{thebibliography}{9}
  \bibitem{one} Bib. item one.
  \bibitem{two} Bib. item two.
\end{thebibliography}

\end{document}
1,1,2,3,5,8,13,21,34,55,89,144,233,...
pazmush
Posts: 23
Joined: Thu Jan 01, 2009 11:39 pm

Re: Superscript citation help

Post by pazmush »

I can't get this to work, it says there are too many } or something
pazmush
Posts: 23
Joined: Thu Jan 01, 2009 11:39 pm

Re: Superscript citation help

Post by pazmush »

I think if I just use \citen it woeks ok

Thanks
User avatar
gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

Superscript citation help

Post by gmedina »

My example code compiles with no errors. Just saying this:
pazmush wrote:I can't get this to work, it says there are too many } or something
is useless.
1,1,2,3,5,8,13,21,34,55,89,144,233,...
Post Reply