Change name of macro.
This commit is contained in:
parent
b6901418ba
commit
5a4414e4dc
@ -39,15 +39,15 @@
|
|||||||
% texte gras
|
% texte gras
|
||||||
\newcommand{\tb}[1]{\textbf{#1}}
|
\newcommand{\tb}[1]{\textbf{#1}}
|
||||||
|
|
||||||
% \createColor{couleur}
|
% \newColorCommand{couleur}
|
||||||
% Create a macro which can be accessed with the name \couleur.
|
% Create a macro which can be accessed with the name \couleur.
|
||||||
% This macro make the following text to be colored in couleur.
|
% This macro make the following text to be colored in couleur.
|
||||||
\newcommand\createColor[1]{%
|
\newcommand\newColorCommand[1]{%
|
||||||
\expandafter\newcommand\csname #1\endcsname{\color{#1}}}
|
\expandafter\newcommand\csname #1\endcsname{\color{#1}}}
|
||||||
|
|
||||||
% Put text in some colors.
|
% Create new color commands
|
||||||
\createColor{red}
|
\newColorCommand{red}
|
||||||
\createColor{white}
|
\newColorCommand{white}
|
||||||
|
|
||||||
% Another shortcut for white text.
|
% Another shortcut for white text.
|
||||||
\NewDocumentCommand \ghost { } {%
|
\NewDocumentCommand \ghost { } {%
|
||||||
|
Loading…
x
Reference in New Issue
Block a user