add animation support for hl

This commit is contained in:
Mylloon 2025-03-11 15:09:41 +01:00
parent 1cebc13b2d
commit 7a5527d445
Signed by: Anri
GPG key ID: A82D63DFF8D1317F
2 changed files with 6 additions and 6 deletions

View file

@ -32,11 +32,11 @@ Options disponibles :
Commandes disponibles :
| Commande | Utilité |
| :-----------------------------------: | :--------------------------------------------------------------------------------- |
| `\ul{texte}` | Souligne du texte |
| `\hl{texte}` ou `\hl[couleur]{texte}` | Met en surbrillance du texte |
| `\code[minted-opts]{lang}{filepath}` | Ajoute un fichier via minted `\inputminted` et l'ajoute en pièce jointe du fichier |
| Commande | Utilité |
| :---------------------------------------: | :---------------------------------------------------------------------------------------- |
| `\ul{texte}` | Souligne du texte |
| `\hl<>{texte}` ou `\hl<>[couleur]{texte}` | Met en surbrillance du texte, `<>` permet de choisir sur quelles diapos appliquer l'effet |
| `\code[minted-opts]{lang}{filepath}` | Ajoute un fichier via minted `\inputminted` et l'ajoute en pièce jointe du fichier |
## [Exemples](./examples)

View file

@ -139,7 +139,7 @@
\newcommand{\ul}[1]{\underline{\smash{#1}}}
% Met en surbrillance du texte
\newcommand{\hl}[2][yellow]{\fboxsep0pt{\pgfsetfillopacity{0.5}\colorbox{#1}{\pgfsetfillopacity{1}\strut#2}}}
\newcommand<>{\hl}[2][yellow]{\alt#3{\mbox{\fboxsep0pt\pgfsetfillopacity{0.5}\colorbox{#1}{\pgfsetfillopacity{1}\strut#2}}}{#2}}
% Avertissement par rapport à l'appendix
\renewcommand\appendixname{Appendix}