Hello, I combined some stuff from different friends’ preamble but it seems there’s some conflicts where one friend’s commands are used by a package the other friend uses, I’ve had my preamble denied twice for already taken commands which I’ve fixed, is there a quicker way to go through and find all the ones I need to change? Thank you.
#Finding already taken commands for preamble.
1 messages · Page 1 of 1 (latest)
You can test your preamble outside of texit say in overleaf or a local latex editor
Ohh right thank you
not a direct answer, but don't copy code without understanding what it does
They left lol
For potential future viewers: you can check if a control sequence is defined in two ways:
Using the \verb|\meaning| primitive, like so:
\verb|\meaning\frac| is defined: \texttt{\meaning\frac}
\verb|\meaning\XXX| is not defined: \texttt{\meaning\XXX}
Or alternatively using \verb|\ifcsname|:
\verb|\frac| \ifcsname frac\endcsname is defined\else is not defined\fi
\verb|\XXX| \ifcsname XXX\endcsname is defined\else is not defined\fi
Essentially if \meaning\COMMAND-NAME prints something other than undefined, the macro is defined
And as suggested above, you can test your preamble locally or on an online LaTeX editor like Overleaf, and look at the errors it gives
😭
we can hope that it may be in the future
It’s a good idea so it won’t