## LaTeX forum ⇒ BibTeX, biblatex and biber ⇒ Problem using achemso style

Information and discussion about BiBTeX - the bibliography tool for LaTeX documents.
yotama9
Posts: 61
Joined: Thu Sep 24, 2009 2:59 pm

### Problem using achemso style

Hi guys.

I'm trying to use the achemso style for my bibtex citation. When I cite a source, I see in the text, and in my bibliography list the all the authors names and publication year instead of simply a number:

In the text:
bla bla bla bla [Bronsted(1928)] bla bla bla bla

in the bibliography:
[Bronsted(1928)] Bronsted, J. N. Chemical Reviews 1928, 5, 231–338.

While what I need is:

In the text:
bla bla bla bla [1] bla bla bla bla

in the bibliography:
[1] Bronsted, J. N. Chemical Reviews 1928, 5, 231–338.

Also, is there a way for automatically abbreviating the journal names?

Thanks.

josephwright
Site Moderator
Posts: 814
Joined: Tue Jul 01, 2008 2:19 pm
Please post an example of what you are doing: as you will see in the demo file this does work properly. On the journal abbreviations you'll have to do this at the database level (JabRef can automatically convert full names to abbreviations, for example). I did experiment with some code to do this automatically, but there are various issues and I decided against it.
Joseph Wright

yotama9
Posts: 61
Joined: Thu Sep 24, 2009 2:59 pm
I just realized that the references need to be inside the TeX file and not in a bibliography file. Is there any way around this?

josephwright
Site Moderator
Posts: 814
Joined: Tue Jul 01, 2008 2:19 pm
achemso works with standard BibTeX databases. Please post an example of what you are doing: it is very hard to offer advice without some clues.
Joseph Wright

yotama9
Posts: 61
Joined: Thu Sep 24, 2009 2:59 pm
OK I've attached a simple example. The attached pdf file has two bibliography. One generated by the bib file and the other with the embedded system. Here is the .tex and .bib files:

\documentclass{report}

Here is my .tex file:
\begin{document}
Hello \cite{a} \cite{b}

\bibliographystyle{achemso}
\bibliography{a}
\begin{thebibliography}{9}

\bibitem{b}
Leslie Lamport,
\emph{\LaTeX: A Document Preparation System}.
2nd Edition,
1994.

\end{thebibliography}
\end{document}

and here is my a.bib file:
@article{a,
author = {Bohm, Andrew and Balbo, Paul B.},
doi = {10.1042/BJ20082019},
issn = {0264-6021},
journal = {Biochemical Journal},
keywords = {Folder - Bio},
mendeley-tags = {Folder - Bio},
number = {2},
pages = {229--238},
title = {{Proton transfer in the mechanism of polyadenylate polymerase}},
url = {http://www.biochemj.org/bj/420/bj4200229.htm},
volume = {420},
year = {2009}
}

notice that \cite{a} uses for citation in the bib file and generate [author (year)] and \cite{b} usess for citation in the tex file and generate [1]

I want the latter citation style to happen when I use a .bib file. Is that possible?
Attachments
a.pdf
The resulting pdf

josephwright
Site Moderator
Posts: 814
Joined: Tue Jul 01, 2008 2:19 pm
If you load the achemso bibliography style directly (rather than using the achemso package or class to do so) then you have to load natibib. The achemso BibTeX style requires natbib, and that is why you are getting odd results.
\documentclass{article}
\usepackage{natbib}
\begin{document}
Hello \cite{a}
\bibliographystyle{achemso}
\bibliography{a}
\end{document}


Note that I recommend using the achemso package to do all of the necessary loading.
Joseph Wright