0

I want to get superscript-positioned citations in my text in front of the ".?!" at the end of a sentence. So far it appears always behind the end of the sentence: blabla. [1,2] Can someone tell my how to fix that?

Also is there a way to have in the output bibliography the [1] numbers without superscript and the last name of the author first?

Here's my example:

\documentclass[10pt]{article}
\usepackage[paperheight=29.7cm,paperwidth=21cm,margin=25mm,heightrounded]{geometry}
\usepackage{graphicx,siunitx,pdflscape}
\usepackage{amsmath,amssymb,graphicx,wasysym,paralist,textcomp}
\usepackage[english]{babel}
\usepackage[babel]{csquotes}
\usepackage[nottoc,numbib]{tocbibind}
\usepackage{setspace}
\usepackage{etoolbox}
\usepackage[labelfont=bf]{caption}
\usepackage[superscript,biblabel]{cite}
\usepackage{url,hyperref}

\renewcommand{\UrlFont}{\small\tt}
\makeatletter \renewcommand{\@citess}[1]{\textsuperscript{\,[#1]}} \makeatother

\begin{document}

\newpage
\section{One}
 Within the troughs \cite{spencer2013} and blabla \cite{porco2006,spencer2013}.

\newpage 
\bibliographystyle{unsrt}
\bibliography{mybib}

\end{document}

Here is a picture of my output: enter image description here

3
  • 4
    Possible duplicate of Multiple references in LaTeX – Coby Viner Jun 12 '18 at 17:38
  • 1
    Your MWE does not result in the output you describe. I get “blablabla. [?,?]”, so although the citation is moved behind the full stop, both references are put together with a comma. At least, combining two citations in one \cite macro is working in your MWE. – Jasper Habicht Jun 12 '18 at 18:27
  • Ok now I got the same output as you but how can I move them in front of the punctuation mark? – niygoo Jun 12 '18 at 18:48
3

You can suppress the movement of punctuation marks with the nomove option:

\documentclass[10pt]{article}
\usepackage[paperheight=29.7cm,paperwidth=21cm,tmargin=25mm,bmargin=25mm,lmargin=25mm,rmargin=25mm,heightrounded]{geometry}
\usepackage{graphicx,siunitx,pdflscape}
\usepackage{amsmath,amssymb,graphicx,wasysym,paralist,textcomp}
\usepackage[english]{babel}
\usepackage[babel]{csquotes}
\usepackage[nottoc,numbib]{tocbibind}
\usepackage{setspace}
\usepackage{etoolbox}
\usepackage[labelfont=bf]{caption}
\usepackage[superscript,biblabel,nomove]{cite}
\usepackage{url,hyperref}

\renewcommand{\UrlFont}{\small\tt}
\makeatletter \renewcommand{\@citess}[1]{\textsuperscript{\,[#1]}} \makeatother

\begin{document}

\newpage
\section{One}
 Within the troughs \cite{spencer2013} and blabla \cite{porco2006,spencer2013}.

\newpage 
\bibliographystyle{unsrt}
\bibliography{mybib}

\end{document}

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.