On 19/04/2011 4:14 AM, [email protected] wrote:
Thanks, Julien. I had tried the sort&compress of natbib but it did not
work (I really need unsort, not sort, because references should be
numbered according to the order in which they appear in the manuscript).
However, I discovered that naturemag works fine if I put in the preamble:
\usepackage{cite}
\renewcommand{\citeleft}{(} %to get round parentheses
\renewcommand{\citeright}{)}
Having to use a style like naturemag /and/ a package like \cite is a bit
confusing, but life could get boring otherwise, couldn't it?
EK
On 4/18/2011 6:21 PM, Julien Rioux wrote:
On 18/04/2011 6:06 PM, Ehud Kaplan wrote:
How do I get the PNAS reference style (numeric, references numbered in
the order they appear in the text, compressed so 1,2,3,4 --> 1-4, etc?
I have tried various .bst styles but none worked correctly.
Thanks,
EK
For the compressed list, use natbib and put "sort&compress" (minus the
quotes) in the custom option class of your document settings.
For styles you really just have to experiment a bit or google for
natbib styles.
I'm glad you solved your problem. However just for clarification, the
"sort" in "sort&compress" refers to something like 1,5,3,2 becoming
1,2,3,5 within a single \cite command. The compress refer to 1,2,3,5
becoming 1-3,5. The references still appear in the order they are cited.
These keywords do not change that.
Cheers,
Julien