From 3007ff92626472f6c75551185b56a316f6995804 Mon Sep 17 00:00:00 2001 From: Jeff LANCE Date: Thu, 2 Mar 2017 21:58:47 +0100 Subject: [PATCH] Move some code from commun to here. clean code. --- shortcuts/shortcuts.sty | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) 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