The MWE below yields:
Missing number, treated as zero. <to be read again> enit@cv@currfiledepth \item testing.
for the itemize list. The enumerate list is fine.
If I remove the \usepackage[realmainfile]{currfile}, or \setlist{leftmargin=*}, things work fine, but I have those there for reasons as per the linked questions.
References:
- The reason for the
\setlist{leftmargin=*}is given in enumitem itemize environment shifts text into margin, or overlaps other text - See Corrupted TeXLive2012 installation? (Option clash for currfile) for
the currfile packageissue -- even though I am not using thestandalonepackage, I like to have a consistent preamble.
Code:
\documentclass{article}
%% https://tex.stackexchange.com/questions/68684/corrupted-texlive2012-installation-option-clash-for-currfile
\usepackage[realmainfile]{currfile}
\usepackage{enumitem}
%% https://tex.stackexchange.com/questions/21669/enumitem-itemize-environment-shifts-text-into-margin-or-overlaps-other-text
\setlist{leftmargin=*}
\begin{document}
\begin{itemize}% This does not work!!
\item testing.
\end{itemize}
\begin{enumerate}% This works fine.
\item testing.
\end{enumerate}
\end{document}
currfile, but I still sometimes miss these kinds of "questions" here. – Martin Scharrer Oct 28 '12 at 08:59currfilev0.6 but not with v0.7. However the error message seems to come fromenumitem. I wonder if it usescurrfilein any way... – Martin Scharrer Oct 28 '12 at 09:06enumitemloads some new font at\begin{itemize}which changes thecurrfiledepthcounter when the file is entered and left again. However,enumitemalready locally changed the meaning of\valuewhich is used bycurrfilein an numeric test.\valueis supposed to return a numeric value but in this case no longer does, which triggers the error message. After checking theenumitemmanual I noticed that the author is aware about the fact that changing\valueis "tricky". I can change the code ofcurrfileto avoid this, but actuallyenumitemshould leave\valuealone. – Martin Scharrer Oct 28 '12 at 09:32currfilev0.7a 2012/10/28 to CTAN which avoids this error by not using\value. You can find the code as well at https://bitbucket.org/martin_scharrer/currfile. I should notify theenumitemauthor too. I will close this "question" as "too localized (in time)" now. This is usually done with bug reports on this site. – Martin Scharrer Oct 28 '12 at 09:45