Is there a way to make a conditional where the test is the definition of a counter with a specific name, i.e. "if there exists a counter named foo, then do [bar], otherwise do [baz]"? If so, how do I do that?
Asked
Active
Viewed 45 times
0
\@ifundefined{c@foo}{No foo counter}{There's a foo counter}– egreg Mar 23 '14 at 17:19\@ifundefined{c@mycounter}{something}{something else}– David Carlisle Mar 23 '14 at 17:20