Document Classesachemso - Environment tocentry undefined ???

Information and discussion about specific document classes and how to create your own document classes.
Post Reply
amaxiom
Posts: 4
Joined: Thu Jul 30, 2009 12:46 am

achemso - Environment tocentry undefined ???

Post by amaxiom »

Hi All,

I recently installed achemso to work with MikTeX, and am having trouble getting the demo to compile. I followed the installation instructions, and it all seemed to work fine. I have checked the version, and the sty and cls version match - but still no success.

Basically the \phone, \fax, \keywords and the tocentry environment are all coming up as undefined. The first three are optional fields, but the tocentry is a problem. Are there any suggestions out there of ways I can fix this?

Regards,
Amanda

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

josephwright
Site Moderator
Posts: 814
Joined: Tue Jul 01, 2008 2:19 pm

Re: achemso - Environment tocentry undefined ???

Post by josephwright »

Can you post the log, and include \listfiles in the preamble. This sounds like an incorrect version is being picked up somewhere.
Joseph Wright
amaxiom
Posts: 4
Joined: Thu Jul 30, 2009 12:46 am

Re: achemso - Environment tocentry undefined ???

Post by amaxiom »

Hi Joseph,

Here is the log.
Attachments
achemso-demo.log
(22.57 KiB) Downloaded 306 times
josephwright
Site Moderator
Posts: 814
Joined: Tue Jul 01, 2008 2:19 pm

Re: achemso - Environment tocentry undefined ???

Post by josephwright »

Your log shows two things:
1) You are using TeXLive, not MiKTeX!
2) The version of achemso is 3.1. The latest release is 3.2e, and I only added tocentry in 3.2, so it is not surprising things are not working!
Joseph Wright
amaxiom
Posts: 4
Joined: Thu Jul 30, 2009 12:46 am

Re: achemso - Environment tocentry undefined ???

Post by amaxiom »

Hi Joseph,

Oh, ok sorry for the confusion. I did not do the TeX installation on this machine.

I downloaded the achemso from CTAN as one package, and the .sty and .cls files both say it is version 3.2. I was only going off what the files say.

Where can I get the real version 3.2 from?

Best Wishes,
Amanda
josephwright
Site Moderator
Posts: 814
Joined: Tue Jul 01, 2008 2:19 pm

achemso - Environment tocentry undefined ???

Post by josephwright »

It's not the version in those files that I'm worrying about, but the one in your log. It says:
Document Class: achemso 2008/12/18 v3.1 Submissions to ACS journals
loaded from:
C:\TeXLive\tex\latex\achemso\achemso.cls
What you need to do is make sure TeX finds the updated file you have downloaded and not the older one installed as part of your TeX system.
As you are using TeX Live, you should be able to create a local TeX tree inside your profile folder. Depending on your Windows version, you want a folder:

Code: Select all

C:\Documents and Settings\<username>\localtexmf
or

Code: Select all

C:\Users\<username>\localtexmf
where <username> is your user name on the PC. Inside that folder, you need to create the correct structure for TeX to find files. If you download the file achemso.tds.zip from CTAN and unzip it inside localtexmf, this will happen automatically. Finally, TeX needs to be able to find the files. This is done by using a command called texhash. At the Command Prompt (Start Menu -> Programs -> Accessories) type texhash <Enter> and let it work. This will find the new files, and the next time you latex your file all should be well.
Joseph Wright
amaxiom
Posts: 4
Joined: Thu Jul 30, 2009 12:46 am

Re: achemso - Environment tocentry undefined ???

Post by amaxiom »

Hi Joseph,

Great advice - it works perfectly now.

Thanks again!

Amanda
Post Reply