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}