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}

\citemacro is working in your MWE. – Jasper Habicht Jun 12 '18 at 18:27