Generalachemso: TOC is empty

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
fedorz
Posts: 2
Joined: Fri Nov 09, 2012 4:30 pm

achemso: TOC is empty

Post by fedorz »

Hi. This short piece of code uses achemso and runs fine, except the Contents section is blank. The TOC file is also empty, even if run twice. Does anyone see what is wrong here?

thanks in advance

The code:

Code: Select all

\documentclass[journal=jacsat,manuscript=suppinfo,a4paper]{achemso}
\usepackage[version=3]{mhchem}
\usepackage{xltxtra}
\setmainfont[Mapping=tex-text]{Adobe Garamond Pro}
\newcommand*\mycommand[1]{\texttt{\emph{#1}}}
\newcommand{\superscript}[1]{\ensuremath{^{\textrm{#1}}}}
\newcommand{\subscript}[1]{\ensuremath{_{\textrm{#1}}}}
\renewcommand{\thepage}{S\arabic{page}}
\author{Author1}
\author{Author2}
\email{nnn@aaa.com}
\affiliation[Laboratory]
{Some University}
\title[paper SI]
  {\ \\ The Title} 
\abbreviations{IR,NMR,UV}
\begin{document}
\tableofcontents
\section{Introduction}
Intro
\section{Results and discussion}
Results
\section{References}
References
\section{Experimental}
Experimental
\end{document}
Last edited by cgnieder on Fri Nov 09, 2012 4:41 pm, edited 1 time in total.

Recommended reading 2024:

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

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

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

Re: achemso: TOC is empty

Post by josephwright »

JACS does not use section numbers, or indeed tables of contents, and so these are not supported by the achemso class here.
Joseph Wright
fedorz
Posts: 2
Joined: Fri Nov 09, 2012 4:30 pm

Re: achemso: TOC is empty

Post by fedorz »

OK, this makes sense, thanks Joseph. Now, I am writing Supporting Information which normally *does* need TOC. Can you think of some workaround?
mslwx
Posts: 2
Joined: Wed Nov 21, 2012 2:19 pm

Re: achemso: TOC is empty

Post by mslwx »

I'm also having the same problem. I'm writing a paper to be submitted to Langmuir, and they also require a table of content for the supporting information. It would be good to have a solution to this.
mslwx
Posts: 2
Joined: Wed Nov 21, 2012 2:19 pm

achemso: TOC is empty

Post by mslwx »

I just found a solution (I think). All I did was add
\SectionNumbersOn
in the preamble, or more specifically right after
\documentclass[journal=jacsat,manuscript=suppinfo,a4paper]{achemso}
in the MWE that fedorz provided. Hope that works for you too, fedorz!
Post Reply