Document Classesachemso | Using the '\citet' command

Information and discussion about specific document classes and how to create your own document classes.
Post Reply
bjorn victor
Posts: 28
Joined: Fri Apr 13, 2007 11:17 am

achemso | Using the '\citet' command

Post by bjorn victor »

Hello,
is there a way to use the \citet command in the achemso class without having to hit the enter button in the console window to skip the citations?
I thought achemso was compatible with natbib?

try this: This is the tex file.

Code: Select all

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

\usepackage{amsmath,amssymb,lineno,graphicx,textcomp,lscape,booktabs,url,caption,setspace,subfig,color,soul,threeparttable}

\usepackage[]{natbib}

\author{name}
\title{title}

\begin{document}
\maketitle

\linenumbers
%\doublespace
\begin{abstract}
Abstract...
\end{abstract}

\section{Introduction}
text \cite{Dorny:2003nk} text\\

text \citet{Brandt:1992ye} text 
\providecommand*\mcitethebibliography{\thebibliography}
\csname @ifundefined\endcsname{endmcitethebibliography}
  {\let\endmcitethebibliography\endthebibliography}{}
\begin{mcitethebibliography}{3}
\providecommand*\natexlab[1]{#1}
\providecommand*\mciteSetBstSublistMode[1]{}
\providecommand*\mciteSetBstMaxWidthForm[2]{}
\providecommand*\mciteBstWouldAddEndPuncttrue
  {\def\EndOfBibitem{\unskip.}}
\providecommand*\mciteBstWouldAddEndPunctfalse
  {\let\EndOfBibitem\relax}
\providecommand*\mciteSetBstMidEndSepPunct[3]{}
\providecommand*\mciteSetBstSublistLabelBeginEnd[3]{}
\providecommand*\EndOfBibitem{}
\mciteSetBstSublistMode{f}
\mciteSetBstMaxWidthForm{subitem}{(\alph{mcitesubitemcount})}
\mciteSetBstSublistLabelBeginEnd
  {\mcitemaxwidthsubitemform\space}
  {\relax}
  {\relax}

\bibitem[Dorny et~al.(2003)Dorny, Brandt, Zoli, and Geerts]{Dorny:2003nk}
Dorny,~P.; Brandt,~J.; Zoli,~A.; Geerts,~S. Immunodiagnostic tools for human
  and porcine cysticercosis. \emph{Acta Trop.} \textbf{2003}, \emph{87},
  79--86\relax
\mciteBstWouldAddEndPuncttrue
\mciteSetBstMidEndSepPunct{\mcitedefaultmidpunct}
{\mcitedefaultendpunct}{\mcitedefaultseppunct}\relax
\EndOfBibitem
\bibitem[Brandt et~al.(1992)Brandt, Geerts, De~Deken, Kumar, Ceulemans, Brijs,
  and Falla]{Brandt:1992ye}
Brandt,~J.; Geerts,~S.; De~Deken,~R.; Kumar,~V.; Ceulemans,~F.; Brijs,~L.;
  Falla,~N. A monoclonal antibody-based {ELISA} for the detection of
  circulating excretory-secretory antigens in \textit{Taenia saginata}
  cysticercosis. \emph{Int. J. Parasitol.} \textbf{1992}, \emph{22},
  471--477\relax
\mciteBstWouldAddEndPuncttrue
\mciteSetBstMidEndSepPunct{\mcitedefaultmidpunct}
{\mcitedefaultendpunct}{\mcitedefaultseppunct}\relax
\EndOfBibitem
\end{mcitethebibliography}

\end{document}
Hit "Typset" (or whatever button you have (I use Texshop)) and you will notice no output is produced, unless you hit "enter" in the console window (don't know how to properly describe that action...).

Is there any way to make achemso understand the \citet command?

Thanks!
bjorn

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 | Using the '\citet' command

Post by josephwright »

You have to use \cite for citations before any other citation types, and that includes \citet. \cite is the core LaTeX command for citation.
Joseph Wright
Post Reply