Debian Codegraph @

texmf-dist/doc/latex/ximera/src/clearEnv.dtx

raw
1 % \subsubsection{clearEnv}
2 % \DescribeMacro{clearEnv}{envName}
3 % This macro allows you to delete an environment by redefining it as null. This also deletes any corresponding internal counter - such as those generated by "\newtheorem" command.
4 % #1 is envName is the name of the environment you want to clear. This will (re)define the
5 % begin and end environments, as well as the internal counter from \newtheoremenv to \relax.
6 % \begin{macrocode}
7 %<*classXimera>
8 \newcommand{\clearEnv}[1]{
9 %% Syntax: \clearEnv{envName}
10 % #1 is envName is the name of the environment you want to clear. This will (re)define the
11 % begin and end environments, as well as the internal counter from \newtheoremenv to \relax.
12 \expandafter\let\csname #1\endcsname\relax
13 \expandafter\let\csname end#1\endcsname\relax
14 \expandafter\let\csname c@#1\endcsname\relax
15 }
16 %</classXimera>
17 % \end{macrocode}
18