From c70700a2d9512e7052e745a3ef0d0ca3ec5b5180 Mon Sep 17 00:00:00 2001 From: Mylloon Date: Thu, 22 Aug 2024 23:20:44 +0200 Subject: [PATCH] add hl --- README.md | 7 ++++--- projektor.sty | 3 +++ 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 9196dc6..f7dc6e3 100644 --- a/README.md +++ b/README.md @@ -32,9 +32,10 @@ Options disponibles : Commandes disponibles : -| Commande | Utilité | -| :----------: | :---------------- | -| `\ul{texte}` | Souligne du texte | +| Commande | Utilité | +| :----------: | :--------------------------- | +| `\ul{texte}` | Souligne du texte | +| `\hl{texte}` | Met en surbrillance du texte | ## [Exemples](./examples) diff --git a/projektor.sty b/projektor.sty index c5a9694..0610773 100644 --- a/projektor.sty +++ b/projektor.sty @@ -129,5 +129,8 @@ % Souligne mieux les mots \newcommand{\ul}[1]{\underline{\smash{#1}}} +% Met en surbrillance du texte +\newcommand{\hl}[2][yellow]{\hspace{-2pt}\fboxsep2pt\colorbox{#1}{#2}\hspace{-2pt}} + % Avertissement par rapport à l'appendix \renewcommand\appendixname{Appendix}