GeneralCitation format

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
genechip
Posts: 2
Joined: Mon Sep 01, 2008 1:00 am

Citation format

Post by genechip »

Hi all,

I am going to submit a paper to American Journal of Human Genetics. I understand the AJHG recently change the format. I've tried the latest ajhg.bst provided by Amy L. Williams from MIT.

I follow the instructions from http://www-lecb.ncifcrf.gov/~toms/latex.html

\documentclass[12pt,manuscript]{aastex}
\usepackage{rotating}
\usepackage{graphicx}
\usepackage{nature}
\usepackage{citesupernumber}
\usepackage{citecollapse}

\bibliography{ref}
%ref is the reference database
\bibliographystyle{ajhg}

I use JabRef to manage my references. In the latex, I use \cite{Bibtexkey} to cite references.

Then the pdf file has the following format, for example:

1) "Many tests have been developed for identifying ..... (1; 2; 3; 4)".
I hope to make it "1-4" in superscript instead of 1;2;3;4 and no
parentheses. It seems citecollapse and citesupernumber are not
effective here.

2) "The patient from the (5) study is indicated......" I hope to have
"Schwarzmeier et al." (author's information) appear in the text
instead of (5) there.

I very appreciate if you have any suggestion.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

Stefan Kottwitz
Site Admin
Posts: 10345
Joined: Mon Mar 10, 2008 9:44 pm

Citation format

Post by Stefan Kottwitz »

Hi genechip,

welcome to the board!
genechip wrote: I hope to make it "1-4" in superscript instead of 1;2;3;4 and no parentheses. It seems citecollapse and citesupernumber are not effective here.
You could use natbib-features instead:

Code: Select all

\documentclass[12pt,manuscript,compress]{aastex}
\setcitestyle{super,open={},close={}}
Stefan
LaTeX.org admin
genechip
Posts: 2
Joined: Mon Sep 01, 2008 1:00 am

Re: Citation format

Post by genechip »

I tried

\documentclass[12pt,manuscript,compress]{aastex}
\usepackage{rotating}
\usepackage{graphicx}
\usepackage{natbib}
\usepackage{nature}
\usepackage{citesupernumber}
\usepackage{citecollapse}


\setcitestyle{super,open={},close={}}

Situation is not changed and \setcitestyle{super,open={},close={}} makes error like Undefined control sequence.
User avatar
Stefan Kottwitz
Site Admin
Posts: 10345
Joined: Mon Mar 10, 2008 9:44 pm

Citation format

Post by Stefan Kottwitz »

aastex already loads natbib. nature, citesupernumber and citecollapse are not needed.
The following example is compilable on my system and produces the desired result:

Code: Select all

\documentclass[12pt,manuscript,compress]{aastex}
\setcitestyle{super,open={},close={}}
\begin{document}
See \cite{texbytopic,texbook,latexbook}.
\bibliographystyle{ajhg}
\bibliography{myrefs}
\end{document}
Try this with your own references, if errors are produced tell them to us.

Stefan
LaTeX.org admin
Post Reply