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

Mico
  • 506,678

1 Answers1

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}