Generaltruncate list of authors in achemso

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
marcusa
Posts: 8
Joined: Wed Aug 08, 2012 6:27 pm

truncate list of authors in achemso

Post by marcusa »

Hi everybody

im working currently on a manuscript for journal that requires the use of the achemso package. Furthermore they require that the list of authors in the bibliography entry should be truncated after a max of 9 authors. Meaning that after the nineth author "et al." will be put in the bibliographic entry.
I looked a bit around and found that this can be done via etalmode=truncate as well as the maxauthors=9 options.

however when i add these to my header (see below) i get the message

Code: Select all

! LaTeX Error: Unknown option `etalmode=truncate' for package `achemso'.
here my header:

Code: Select all

\documentclass[journal=jacsat,manuscript=article]{achemso}

\usepackage[etalmode=truncate, maxauthors=9]{achemso}
\setkeys{acs}{usetitle=true} %to show title of publciation in reference
\setkeys{acs}{keywords = true} %to show keywords

\linespread{1.5} %double line space
\usepackage{natbib}

\usepackage{hyperref}
\usepackage{color}

\hypersetup{colorlinks=false,pdfborder={0 0 0}} %to avoid coloured markers around hyperref links
\usepackage{fixltx2e}

.....
any suggestion what i need to do? i verified tha5t i have the latest version of the achemso style package but that did not change anything

Recommended reading 2024:

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

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

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

truncate list of authors in achemso

Post by Johannes_B »

Please always check if an example is working. If not, a helper will have to invest time to make it work which is time added to the time testing.

For now, try this:

Code: Select all

\listfiles
\documentclass{achemso}
\usepackage[T1]{fontenc}
\title{}\author{}\email{}\affiliation{}
\usepackage[
%maxauthors=3,etalmode=truncate
]{achemso}
\setkeys{acs}{maxauthors=2}
\setkeys{acs}{etalmode=truncate}
\begin{document}
Cite\cite{aksin}
\bibliography{biblatex-examples}
\end{document}
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
marcusa
Posts: 8
Joined: Wed Aug 08, 2012 6:27 pm

Re: truncate list of authors in achemso

Post by marcusa »

thank you for the quick reply!
Why does one have to use the \setkeys{acs} option and can not open the package option as usual by putting it into square brackets. \usepackage[etalmode=truncate, maxauthors=9]{achemso}
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

truncate list of authors in achemso

Post by Johannes_B »

No idea, i asked the author. Let's see what happens. And as i wrote those lines, he already responded, please see the transcript. Thanks to our moderator Joseph Wright.

Addendum: The class achemso provides the full feature set of the package. Setting the options via setkeys is the intended way. So you can minimize further.

Code: Select all

\documentclass{achemso}
\usepackage[T1]{fontenc}
\title{}\author{}\email{}\affiliation{}
\setkeys{acs}{maxauthors=2, etalmode=truncate}
\begin{document}
Cite\cite{aksin}
\bibliography{biblatex-examples}
\end{document}
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
Post Reply