1

I'm using the cite package with the superscript argument (i.e. ref1). However, in some points in the document I'd like to temporarily switch the cite style to on-line (i.e. ref [1]).

Is this possible?

Edit: If I have this document

\documentclass[a4paper,oneside,11pt]{report}
\usepackage[superscript,nospace,nobreak]{cite} %Citations in superscript

\begin{document}
%Citation in superscript
See reference \cite{exampleItem} 
%Citation on same line?
See reference on-same-line \cite{exampleItem}

\begin{thebibliography}{9}
 \bibitem{exampleItem}
  John Doe,
  A Book
  Publisher
  Edition,
  1994.
 \end{thebibliography}

\end{document}

Right now both lines will output See reference1, whereas I would like to be able to change the citation style to See reference [1] for the second line. Then revert to the superscript style for the rest of the document.

2
  • 3
    Welcome to TeX-sx! Please add a minimal working example (MWE) showing your code: the correct answer will depend on what packages (if any) you are loading. – Joseph Wright Apr 15 '15 at 11:11
  • Hi, I have updated the question as advised, thanks. – kanye_east Apr 16 '15 at 10:11
1

Although this is slightly hacky, it works. In case you want a cleaner solution, have a look at package natbib: http://merkel.zoneo.net/Latex/natbib.php.

\documentclass[a4paper,oneside,11pt]{report}
\usepackage[superscript,nospace,nobreak]{cite} %Citations in superscript

% Redefine the string before the optional note to be blank
\renewcommand\citemid{}

\begin{document}
%Citation in superscript
See reference \cite{exampleItem} 

%Citation on same line
See reference on-same-line \cite[]{exampleItem}

\begin{thebibliography}{9}
 \bibitem{exampleItem}
  John Doe,
  A Book
  Publisher
  Edition,
  1994.
 \end{thebibliography}

\end{document}

Output:

enter image description here

0

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.