diff --git a/shortcuts/shortcuts.sty b/shortcuts/shortcuts.sty index 89171ba..988f635 100644 --- a/shortcuts/shortcuts.sty +++ b/shortcuts/shortcuts.sty @@ -39,6 +39,22 @@ % texte gras \newcommand{\tb}[1]{\textbf{#1}} +% \createColor{couleur} +% Create a macro which can be accessed with the name \couleur. +% This macro make the following text to be colored in couleur. +\newcommand\createColor[1]{% +\expandafter\newcommand\csname #1\endcsname{\color{#1}}} + +% Put text in white for ghosting text in some docs. +\NewDocumentCommand \ghost { } {% + \color{white} +} + +% Put text in red. +\NewDocumentCommand \red { } {% + \color{red} +} + %-- Texte % c'est-à-dire \NewDocumentCommand \cad { } { @@ -139,4 +155,7 @@ } } + + + \makeatother