Changes

Jump to navigation Jump to search
20 bytes removed ,  13:25, 9 August 2020
m
Text replacement - "</cmd>" to "}}"
letters: <tt>@</tt>, <tt>!</tt> and <tt>?</tt>.
Before and after the use or definition of such protected commands in your input files, the catcode of these
characters has to be changed. This is done by {{cmd|unprotect</cmd> }} and {{cmd|protect</cmd>}}:
<texcode>
</texcode>
The newly defined command <tt>\!test</tt> can of course only be called upon when we are in the {{cmd|unprotect</cmd>}}ed state, otherwise TeX reads the command <tt>\!</tt>, followed by the word <tt>test</tt> (and probably complains loudly about not being in math mode). These protection/unprotection commands can be nested. When the nesting becomes deeper than one level, the system reports the current protection level. It is a good habit to always start your macro files with {{cmd|unprotect</cmd> }} and end them with {{cmd|protect</cmd>}}.

Navigation menu