Consider this minimal working example:
\documentclass{beamer}
\usepackage{csvsimple,filecontents}
\begin{document}
\begin{filecontents*}{data.csv}
id,type
1,a
2,b
\end{filecontents*}
\begin{frame}
\csvreader{data.csv}{1=\id,2=\type}{
\ifcsvstrcmp{\type}{a}{
%do something
}{
%do something else
}
}
\end{frame}
\end{document}
The above code does not compile unless the \ifcsvstrcmp{}{}{}{}
is commented out.
Here's the error message:
pdflatex> ! Undefined control sequence.
pdflatex> \csv@@body -> \ifcsvstrcmp
pdflatex> --------------------------------------{\type }{a}{}{}
pdflatex> l.14 }
Appreciating any hints on what I might be doing wrong here...
Thx!
3.14159265-2.6-1.40.19
, though I more strongly suspect it may be a package date that is the issue.tlmgr update --all
. So, cause was presumably an outdatedcsvsimple
package. Feel free to copy your comment into an answer, and I'll accept it. Thanks a bunch!