I have this line in a file which I use at the same time for my phd thesis and for a paper.
\setlist*[enumerate,1]{label=\it{\arabic*)}}
For the paper which is
\documentclass[letterpaper, 10 pt, conference]{ieeeconf} % Comment this line out
it does not give me any error.
But for the thesis which is something like:
\documentclass[english,11pt, a4paper, twoside, openright]{memoir}
It gives me the error:
! Class memoir Error: Font command \it is not supported.
See the memoir class documentation for explanation.
I understand that the class memoir does not allow the use of old commands like \it
but how can I have the file still existing and tell it:
if a memoir is calling you then do not take this line into account
else take it into account
Something like that.
Thanks for the precious help.
\itshape
instead of\it
:label=\itshape\arabic*)
\gdef\it#1{#1}
for the true fork, when memoir is loaded.\it
never took an argument so\it{\arabic*}
looks wrong anyway, the argument form is\textit{\arabic*}
and that is defined in the latex format so will work here.