According to the natbib manual you can either set options via package option of by giving them to \setcitestyle, how ever they do not give the same result
Try the MWE below with either
\usepackage{natbib}
\setcitestyle{
super,
numbers,
square,
}
or
\usepackage[super,numbers,square]{natbib}
the later gives me what I want (equiv to \textsuperscript{[1]}) but in the situation we are trying to solve, we cannot give options directly to natbib (I know I can just load natbib manually earlier, but that is not the point here, both solutions ought to give the same results).
Any idea why?
\listfiles
\documentclass[a4paper]{article}
\usepackage{filecontents}
\begin{filecontents*}{xxx.bib}
\@article{xxx,
title={My Title},
author={An Author},
year={2017},
pages={92--93},
publisher={My Publisher}
}
\end{filecontents*}
% shouldn't the below be equivalent to
%\usepackage[super,numbers,square]{natbib}
\usepackage{natbib}
\setcitestyle{
super,
numbers,
square,
}
\bibliographystyle{plainnat}
\begin{document}
test\cite{xxx}
\bibliography{xxx}
\end{document}
\setcitestyledoes not like spaces, sigh – daleif Jun 13 '17 at 11:29numbers, justsquare: will you post that as an answer? – Joseph Wright Jun 13 '17 at 11:31achemsopackage and the student wanted a very specific style. As I explain in my answer there seems to be a discrepancy in the implementation innatbib– daleif Jun 13 '17 at 11:38