#Finding already taken commands for preamble.

1 messages · Page 1 of 1 (latest)

sick agate
#

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.

tropic frigate
#

You can test your preamble outside of texit say in overleaf or a local latex editor

sick agate
#

Ohh right thank you

frosty trout
#

not a direct answer, but don't copy code without understanding what it does

tropic frigate
#

They left lol

knotty needle
#

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
silent coveBOT
knotty needle
#

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

frosty trout
#

discord is bad because Q&As cannot be search indexed

#

your effort is wasted

knotty needle
#

😭

tribal dust
#

we can hope that it may be in the future

tropic frigate
#

It’s a good idea so it won’t