I am trying to use achemso packages donwloaded directly from CTAN. Although I have installed the packages to the location MiXTex2.9/tex/latex, I have an error message saying that 'File `chemgreek.sty' not found'. I have texmaker as a tex editor and tried to add the .sty file manually to the macros as suggested before Error with Chemgreek, but that did not work either. What would you think that my problem is?
[Tex/LaTex] chemgreek.sty error with achemso
achemsopackages
Related Solutions
You should not have any formatting in the BibTeX file, or at least only that which is essential (normally in titles). Here, you have
year={\textbf{2008}}
which should be
year={2008}
The odd error you get is from natbib
, which expects to be able to make the year available as a number: formatting breaks that.
XThesis
As user gernot recommended, I looked for the package using Google. - The result is a GitHub project with the title Undergrad thesis at Reed College (link). - I downloaded the project as you can see in the screenshot.
- Then you have a ZIP file that you just need to unzip.
- Since the file
XThesis.sty
is in the same folder as the main file, laTeX automatically will find it.
XTocinc
- Searching for
XTocinc.sty
lead me to website where my browser had some doubt about my personal security (link). - But there is also a GitHub result which looks less hostile :) (link).
Content of XTocinc.sty
:
% -------------------------------------------------------------------
% Include Table of Contents in the Table of Contents
% Change spacing
% Modified by Alex, October 1994
% Bug Fix: TOC Page number when TOC spans over one page (November, 1999)
\newlength{\tclineskip}
\setlength{\tclineskip}{\baselineskip}
\def\@addcontentsline#1#2#3{\if@filesw \begingroup
\let\label\@gobble \let\index\@gobble \let\glossary\@gobble
\def\protect##1{\string\string\string##1\string\space
\space}\@temptokena{\thepage}%
\edef\@tempa{\immediate\write
\@auxout{\string\@writefile{#1}{\protect
\contentsline{#2}{#3}{\the\@temptokena}}}}\@tempa
\if@nobreak \ifvmode\nobreak\fi\fi\endgroup\fi}
\def\tableofcontents{\@restonecolfalse\if@twocolumn\@restonecoltrue\onecolumn
\fi\chapter*{Table of Contents\@mkboth{CONTENTS}{CONTENTS}}
\newlength{\@defbaselineskip}
\setlength{\@defbaselineskip}{\baselineskip}
\setlength{\baselineskip}{\tclineskip}
%\addcontentsline{toc}{chapter}{Table of Contents}
\@starttoc{toc}
\setlength{\baselineskip}{\@defbaselineskip}
\if@restonecol\twocolumn\fi
\relax}
% -------------------------------------------------------------------
- Download the file and place it in the same folder as the rest.
Finally...
Now you can start your document...
Best Answer
So, you need to tell your MikTeX where to find chemgreek.sty. You'll want to make your own local texmf directory, put chemgreek.sty in it, then tell MikTeX where that directory is. Follow the instructions from this post:
Create a local texmf tree in MiKTeX
with the links listed there as a guide.