# Errors using chemstyle in LaTeX [closed]

I am a total novice with no TeX or programming experience, trying to learn how to use LaTeX in general, but specifically attempting to use the 'chemstyle' package, so as to allow for automated numbering of my chemical compounds when drawn in ChemDraw and saved as '.eps' files containing temporary labels of 'TMP'.

I am currently using MikTeX and TexStudio (also have TeXworks) and have attempted both manually installing the chemstyle package from CTAN and directly from the MikTeX repository with no apparent difference between the two.

I have been using the tutorial here and typing the lines below in my preamble:

\usepackage[crop=off,runs=2]{auto-pst-pdf}
\usepackage{chemstyle}


I can't remember where I got it from but the inclusion of "crop=off" eliminates an intial error of:

pdfcrop: The Perl interpreter could not be found.
Process exited with error(s)


I have also attempted to enable shell escape in the command line, I think successfully, as I've read in a few places that it's necessary with this package.

Unfortunately whether I use my own file or the example ones given in the tutorial, the file never compiles successfully and I get a lot of error messages concerning 'caption3.sty' such as:

Command \caption@ifinlist already defined. \@expandtwoargs\caption@@ifinlist}


as well as a warning about 'typearea.sty'.

Below is a basic version of my document:

\documentclass[oneside,14pt,parskip=full]{scrbook}

\usepackage{graphicx}
\usepackage[left=2in,right=1.3in,top=1.3in,bottom=1.3in]{geometry}

\usepackage[crop=off,runs=2]{auto-pst-pdf}
\usepackage{chemstyle}

\usepackage{libertine}

\usepackage{fancyhdr}

\fancypagestyle{main}{ %
\fancyhf{}
\fancyfoot[C]{}
\fancyfoot[R]{\thepage}

\newcommand{\markedsection}[2]{\section[#2]{#2%
\sectionmark{#1}}
\sectionmark{#1}}
\newcommand{\markedchapter}[2]{\chapter[#2]{#2%
\chaptermark{#1}}
\chaptermark{#1}}

\fancypagestyle{plain}{%
\fancyhf{}
\fancyfoot[R]{\thepage}
\renewcommand{\footrulewidth}{0pt}}

\usepackage[nottoc]{tocbibind}

\newcommand*{\TitleFont}{\scshape
\fontsize{35}{20}
\selectfont}

\title{\TitleFont Thesis}
\author{A Name}
\date{\today}
\publishers{Dept.\\Uni.}

\begin{document}

\frontmatter

\pagestyle{plain}
\maketitle
\tableofcontents
\listoffigures
\listoftables

\chapter{Acknowledgements}

Some thanks.

\chapter{Abstract}

An abstract.

\chapter{Glossary}

This is the glossary...

\mainmatter
\pagestyle{main}

\markedchapter{Intro}{Introduction}
\label{ch:intro}

Here is the introduction.

\markedsection{Sec1}{First Section}
\label{sc:sc1}

\subsection{First Subsection}
\label{subsc:subsc1}

\subsubsection{First Subsubsection}
\label{subsub:subsub1}

\backmatter

\chapter{Appendices}

\end{document}


Thank you in advance for any help you can give and apologies if I've left out any necessary information.

Edit: The output message following an attempt to compile is as below.

Process started: "C:\Program Files\MiKTeX 2.9\miktex\bin\pdflatex.exe" -synctex=1 -interaction=nonstopmode "chemstyle".tex

This is dvips(k) 5.992 Copyright 2012 Radical Eye Software (www.radicaleye.com) ' TeX output 2013.11.12:1417' -> chemstyle-autopp.ps <C:/Program Files/MiKTeX 2.9/dvips/base/tex.pro> <C:/Program Files/MiKTeX 2.9/dvips/misc/alt-rule.pro> <C:/Program Files/MiKTeX 2.9/dvips/psfrag/psfrag.pro> <C:/Program Files/MiKTeX 2.9/fonts/enc/dvips/libertine/lbtn_c7kyj5.enc> <C:/Program Files/MiKTeX 2.9/fonts/enc/dvips/libertine/lbtn_s5bq4i.enc> <C:/Program Files/MiKTeX 2.9/fonts/enc/dvips/libertine/lbtn_c6xmqr.enc> <C:/Program Files/MiKTeX 2.9/fonts/enc/dvips/libertine/lbtn_xogrpz.enc> <C:/Program Files/MiKTeX 2.9/fonts/enc/dvips/libertine/lbtn_p657rp.enc> <C:/Program Files/MiKTeX 2.9/dvips/base/texps.pro> <C:/Program Files/MiKTeX 2.9/dvips/base/special.pro> <C:/Program Files/MiKTeX 2.9/dvips/base/color.pro>.

<C:/Program Files/MiKTeX 2.9/fonts/type1/public/libertine/LinBiolinumT.pfb> <C:/Program Files/MiKTeX 2.9/fonts/type1/public/libertine/LinBiolinumTB.pfb> <C:/Program Files/MiKTeX 2.9/fonts/type1/public/libertine/LinLibertineTI.pfb> <C:/Program Files/MiKTeX 2.9/fonts/type1/public/libertine/LinLibertineT.pfb> <C:/Program Files/MiKTeX 2.9/fonts/type1/public/amsfonts/cm/cmr12.pfb>[1] [1] [2] [3] [4] [5] [6] [7] [1] [2]

Process exited with error(s)


## closed as off-topic by egreg, Peter Jansson, Werner, Claudio Fiandrino, Martin SchröderDec 21 '13 at 18:31

• This question does not fall within the scope of TeX, LaTeX or related typesetting systems as defined in the help center.
If this question can be reworded to fit the rules in the help center, please edit the question.

• MikTeX does not provide a perl interpreter, so you have to install one, activestate.com/activeperl ought to be enough. Had you chosen to use TeX Live to begin with, then pdfcrop would work out of the box as a Perl interpreter is included in TeX Live on Windows. – daleif Nov 11 '13 at 16:04
• Since you're using geometry you can simply ignore the typearea warning. I am unable to reproduce the caption errors with your MWE, though... – clemens Nov 11 '13 at 16:57
• Thanks daleif, that eliminates the Perl error without including 'crop=off'. – ChemStu Nov 12 '13 at 14:31
• Thanks cgnieder for the tip about 'geometry', I suspect the issue relates to an incorrect setting somewhere as the tutorial files also give the same errors - I'm updating my entry to include the message I get in case that's of any use to unpicking the problem. – ChemStu Nov 12 '13 at 14:34
• This question appears to be off-topic because it is about a problem due to an outdated package (caption). – egreg Dec 21 '13 at 17:52