Document Classesachemso class issue

Information and discussion about specific document classes and how to create your own document classes.
Post Reply
combariza
Posts: 5
Joined: Tue Apr 14, 2009 12:33 pm

achemso class issue

Post by combariza »

Hello,

I'm trying to write an ACS paper (JPCB) using the achemso style, but I've
been having some problems.

Here is an output of the

Code: Select all

$> latex achemso-demo.tex
command:

Code: Select all

This is pdfTeXk, Version 3.141592-1.40.3 (Web2C 7.5.6)
 %&-line parsing enabled.
entering extended mode
(./achemso-demo.tex
LaTeX2e <2005/12/01>
Babel <v3.8h> and hyphenation patterns for english, usenglishmax,
dumylang, noh
yphenation, loaded.
(/usr/share/texmf-texlive/tex/latex/achemso/achemso.cls
(/usr/share/texmf-texlive/tex/latex/base/article.cls
Document Class: article 2005/09/16 v1.4f Standard LaTeX document class
(/usr/share/texmf-texlive/tex/latex/base/size12.clo))
Document Class: achemso 2009/02/03 v3.1a Submissions to ACS journals
(/usr/share/texmf/tex/latex/notes2bib/notes2bib.sty
(/usr/share/texmf/tex/latex/xkeyval/xkeyval.sty
(/usr/share/texmf-texlive/tex/latex/xkeyval/xkeyval.tex
(/usr/share/texmf-texlive/tex/latex/xkeyval/keyval.tex))))
(/usr/share/texmf-texlive/tex/latex/geometry/geometry.sty
(/usr/share/texmf-texlive/tex/xelatex/xetexconfig/geometry.cfg))
(/usr/share/texmf-texlive/tex/latex/base/fontenc.sty
(/usr/share/texmf-texlive/tex/latex/base/t1enc.def))
(/usr/share/texmf-texlive/tex/latex/psnfss/helvet.sty)
(/usr/share/texmf-texlive/tex/latex/psnfss/mathptmx.sty)
(/usr/share/texmf-texlive/tex/latex/psnfss/courier.sty)
(/usr/share/texmf-texlive/tex/latex/setspace/setspace.sty
Package: `setspace' 6.7 <2000/12/01>
) (/usr/share/texmf-texlive/tex/latex/graphics/graphicx.sty
(/usr/share/texmf-texlive/tex/latex/graphics/graphics.sty
(/usr/share/texmf-texlive/tex/latex/graphics/trig.sty)
(/etc/texmf/tex/latex/config/graphics.cfg)
(/usr/share/texmf-texlive/tex/latex/graphics/dvips.def)))
(/usr/share/texmf/tex/latex/ltxmisc/truncate.sty)
(/usr/share/texmf-texlive/tex/latex/float/float.sty)
(/usr/share/texmf-texlive/tex/latex/tools/varioref.sty)
(/usr/share/texmf-texlive/tex/latex/ltxmisc/url.sty)
(/usr/share/texmf-texlive/tex/latex/caption/caption.sty
(/usr/share/texmf-texlive/tex/latex/caption/caption3.sty))
(/usr/share/texmf-texlive/tex/latex/achemso/achemso.sty
(/usr/share/texmf-texlive/tex/latex/cite/cite.sty))
! Undefined control sequence.
l.470   \acs@writebib
                     
? 
it stops after giving me the ! Undefined control sequence. message,
which refers to the line 470 in the achemso.cls file:

Code: Select all

\if@filesw
  \acs@writebib
\fi
Any idea why this odd latex behavior?

Checking the latex community forums wasn't helpful, this error has never
been reported before.

Thanks in advance for your help,

Recommended reading 2024:

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

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

User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

achemso class issue

Post by localghost »

Could be a matter of outdated packages or classes. Insert the \listfiles command as very first line into the demo code and start again. Search the log file for the section between *File List* and ***********. Post this file list here.


Best regards sand welcome to the board
Thorsten¹
josephwright
Site Moderator
Posts: 814
Joined: Tue Jul 01, 2008 2:19 pm

Re: achemso class issue

Post by josephwright »

For the record, the OP contacted me directly. As localghost suspected, it is a version clash: achemso.cls v3.1a versus achemso.sty v2.0. I'm told that the problem goes away when this is sorted out!
Joseph Wright
combariza
Posts: 5
Joined: Tue Apr 14, 2009 12:33 pm

achemso class issue

Post by combariza »

I've taken a shortcut writing directly to Joseph Wright, who easily found the problem with achemso. So, I'm posting here the fix to the problem:

*****************************************************
Hello Aldo,

I'm going to need a bit more to go on here. Can you try the demo file
with \listfiles in the preamble, press Enter to go past all of the
errors then send me the complete log file? I think there is a version
clash somewhere, but I don't know which versions of which files you have
from the information you've sent.

Regards,

Joseph
********************************************************
Aldo Fabrizzio wrote:
> > Hi Joseph,
> > Attached is the log file generated after going through the errors, which
> > never ended, though.
> > Also, I'm sending the achemso-demo.tex file, just in case.
> > Thanks for your quick reply!
> > Best,
> > Aldo
*********************************************************************
*File List*
achemso.cls 2009/02/03 v3.1a Submissions to ACS journals
article.cls 2005/09/16 v1.4f Standard LaTeX document class
size12.clo 2005/09/16 v1.4f Standard LaTeX file (size option)
notes2bib.sty 2008/10/31 v1.6a Integrating notes into the bibliography
xkeyval.sty 2008/08/13 v2.6a package option processing (HA)
xkeyval.tex 2006/11/18 v2.5f key=value parser (HA)
geometry.sty 2002/07/08 v3.2 Page Geometry
geometry.cfg
fontenc.sty
t1enc.def 2005/09/27 v1.99g Standard LaTeX file
helvet.sty 2005/04/12 PSNFSS-v9.2a (WaS)
mathptmx.sty 2005/04/12 PSNFSS-v9.2a Times w/ Math, improved (SPQR, WaS)
courier.sty 2005/04/12 PSNFSS-v9.2a (WaS)
setspace.sty 2000/12/01 6.7 Contributed and Supported LaTeX2e package
graphicx.sty 1999/02/16 v1.0f Enhanced LaTeX Graphics (DPC,SPQR)
graphics.sty 2006/02/20 v1.0o Standard LaTeX Graphics (DPC,SPQR)
trig.sty 1999/03/16 v1.09 sin cos tan (DPC)
graphics.cfg 2007/01/18 v1.5 graphics configuration of teTeX/TeXLive
dvips.def 1999/02/16 v3.0i Driver-dependant file (DPC,SPQR)
truncate.sty 2001/08/20 ver 3.6
float.sty 2001/11/08 v1.3d Float enhancements (AL)
varioref.sty 2006/05/13 v1.4p package for extended references (FMi)
url.sty 2005/06/27 ver 3.2 Verb mode for urls, etc.
caption.sty 2007/01/07 v3.0k Customising captions (AR)
caption3.sty 2007/01/07 v3.0k caption3 kernel (AR)
achemso.sty 2007/01/17 v2.0 Enhancements for ACS publications
mciteplus.sty 2008/09/30 v1.1 enhanced mcite
jacsat.cfg 2009/02/03 v3.1a achemso configuration: J. Am. Chem. Soc.
natbib.sty 2007/02/05 8.0 (PWD)
natmove.sty 2008/08/22 v1.0 Automatic citation moving with natbib
t1ptm.fd 2001/06/04 font definitions for T1/ptm.
ragged2e.sty 2003/03/25 v2.04 ragged2e Package (MS)
everysel.sty 1999/06/08 v1.03 EverySelectfont Package (MS)
t1phv.fd 2001/06/04 scalable font definitions for T1/phv.
ot1ztmcm.fd 2000/01/03 Fontinst v1.801 font definitions for OT1/ztmcm.
omlztmcm.fd 2000/01/03 Fontinst v1.801 font definitions for OML/ztmcm.
omsztmcm.fd 2000/01/03 Fontinst v1.801 font definitions for OMS/ztmcm.
omxztmcm.fd 2000/01/03 Fontinst v1.801 font definitions for OMX/ztmcm.
ot1ptm.fd 2001/06/04 font definitions for OT1/ptm.
t1pcr.fd 2001/06/04 font definitions for T1/pcr.
***********


*****************************************************

Hello Aldo,

I now see where the problem is. The current achemso bundle is made up
of several files. You are loading the current achemso.cls but an older
version of achemso.sty, and the two are not compatible. I'm not sure how
this has happened: I've seen similar things before but not quite this
error. Normally the file versions in TeXLive should be the same.

I'd suggest you install a local copy of achemso in your personal texmf
tree (~/texmf, I assume). Run texhash and all should, I hope, work. The
attached zip contains the latest version of achemso ready to unzip into
your texmf directory.

By the way, your edited copy of the demo file gives some errors, but
does compile in the end!

Joseph
--

***********************************************

Joseph,

Thanks a lot for your help.

I changed the old achemso.sty file in:
/usr/share/texmf-texlive/tex/latex/achemso/achemso.sty
with the one provided in the bundle, then I did a reconfiguration (texhash) and it worked fine.

achemso.sty 2007/01/17 v2.0 Enhancements for ACS publications

achemso.sty 2009/02/03 v3.1a Support for ACS journals

I think the version mismatch has to do with lyx, which I recently update to 1.6.1 and it was supposed to include the achemso class and style files by default. I'll check it, though.

Best regards,

Aldo
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Re: achemso class issue

Post by localghost »

Thanks the two of you for the clarification.
Post Reply