How come (pdf
)latex
from MacTeX 2015 fails to compile a file that (pdf
)latex
from Ubuntu’s TeX Live 2015 manages to compile? I thought TeX Live 2015 is included in MacTeX 2015 and it should behave the same on Mac or on Linux.
What I have done is the following:
git clone https://github.com/Stefanqn/Bewerbung
cd Bewerbung/Vorlage/
pdflatex cv.tex
The errors that only appear on Mac begin as follows:
[...]
! LaTeX Error: Option clash for package hyperref.
See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...
l.8 \RequirePackage
{bookmark}
?
[...]
! Undefined control sequence.
<argument> ...ilyname {\nachname } \moderncvcolor
{blue}
l.64 }
?
! LaTeX Error: Missing \begin{document}.
See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...
l.64 }
?
[...]
I know that this is not a minimal example. However, I am unable to pin down the issue because I do not understand the error messages.
I have posted a similar question at Latex-Bewerbungsvorlage › Wie kann ich das Beispiel kompilieren?, a Google group about that particular LaTeX template. However, this question goes well beyond the scope of that group since it is about an inconsistency between MacTeX and TeX Live.
Needless to say that both the MacTeX and the TeX Live distribution I have tested this on are all up-to-date (tlmgr update --self --all
).
\listfiles
to the preamble and compare the list of file versions at the end of each log.~/Library/texmf
directory I had completely forgotten about.~/Library/texmf
directory.