Is there a way to implement a switch-like macro in LaTeX or do I have to nest ifs?
Something that would look like:
\ifcase#1
\case a{}
\or\case b{}
\or\case c{}
\fi
If not, could you please point me to a solution. Preferably, something that could run on vanilla-LaTeX?
\csname mycase@a\endcsnameetc. and then just call\csname mycase@#1\endcsname. – Stephan Lehmke Jun 25 '14 at 13:40