diff options
Diffstat (limited to 'Master/texmf-dist/tex')
-rw-r--r-- | Master/texmf-dist/tex/latex/highlightx/highlightx.sty | 51 |
1 files changed, 27 insertions, 24 deletions
diff --git a/Master/texmf-dist/tex/latex/highlightx/highlightx.sty b/Master/texmf-dist/tex/latex/highlightx/highlightx.sty index caef0c0c569..d9af8868c2e 100644 --- a/Master/texmf-dist/tex/latex/highlightx/highlightx.sty +++ b/Master/texmf-dist/tex/latex/highlightx/highlightx.sty @@ -3,9 +3,12 @@ % licence : Released under the LaTeX Project Public License v1.3c or later, see http://www.latex-project.org/lppl.txtf \NeedsTeXFormat{LaTeX2e} -\ProvidesPackage{highlightx}[2023/09/03 0.1.2 Macros pour surligner du texte, meme en mode paragraphe] +\ProvidesPackage{highlightx}[2023/11/09 0.1.5 Macros pour surligner du texte, meme en mode paragraphe] %====HISTORIQUE +% v 0.1.5 Mise à jour de la doc +% v 0.1.4 Passage \tikzstyle vers \tikzset (merci à Sam C.) +% v 0.1.3 Correction d'un bug avec le caractère ; (merci à Denis B.) % v 0.1.2 Version étoilée pour \genhighlightpar afin d'activer \NoAutoSpacing + retour du code paragraphe main levée % v 0.1.1 Suppression code paragraphe avec effet % v 0.1.0 Version initiale [fr] et [en] @@ -28,8 +31,8 @@ \colorlet{hlcolback}{yellow!35} %====COMMANDES POUR FORMULES -\tikzstyle{encadreformule}=[decorate,decoration={random steps,amplitude=0.5pt,segment length=1em}] -\tikzstyle{borderformula}=[decorate,decoration={random steps,amplitude=0.5pt,segment length=1em}] +\tikzset{encadreformule/.style={decorate,decoration={random steps,amplitude=0.5pt,segment length=1em}}} +\tikzset{borderformula/.style={decorate,decoration={random steps,amplitude=0.5pt,segment length=1em}}} \defKV[surlignformule]{% Fond=\def\surlignformulefond{#1},% @@ -145,15 +148,15 @@ } \newcommand{\highlight@DoHighlight}{ - \fill[hlparhw] ($(begin highlight)+(-\surlignparoffsetH,1.05*\tmp@hauteur@char+\surlignparoffsetV)$) rectangle ($(end highlight)+(\surlignparoffsetH,-1.05*\tmp@profondeur@char-\surlignparoffsetV)$) ; + \fill[hlparhw] ($(begin highlight)+(-\surlignparoffsetH,1.05*\tmp@hauteur@char+\surlignparoffsetV)$) rectangle ($(end highlight)+(\surlignparoffsetH,-1.05*\tmp@profondeur@char-\surlignparoffsetV)$) } \newcommand{\highlight@BeginHighlight}{ - \coordinate (begin highlight) at (0,0) ; + \coordinate (begin highlight) at (0,0) } \newcommand{\highlight@EndHighlight}{ - \coordinate (end highlight) at (0,0) ; + \coordinate (end highlight) at (0,0) } \NewDocumentCommand\SurlignerTexte{ s O{} D<>{} }{% @@ -184,15 +187,15 @@ % \def\SOUL@preamble{% \begin{tikzpicture}[overlay, remember picture] - \highlight@BeginHighlight - \highlight@EndHighlight + \highlight@BeginHighlight ; + \highlight@EndHighlight ; \end{tikzpicture}% }% % \def\SOUL@postamble{% \begin{tikzpicture}[overlay, remember picture] - \highlight@EndHighlight - \highlight@DoHighlight + \highlight@EndHighlight ; + \highlight@DoHighlight ; \end{tikzpicture}% }% % @@ -200,7 +203,7 @@ \discretionary{% \SOUL@setkern\SOUL@hyphkern \SOUL@sethyphenchar - \tikz[overlay, remember picture] \highlight@EndHighlight ;% + {\tikz[overlay, remember picture] \highlight@EndHighlight ;}% }{% }{% \SOUL@setkern\SOUL@charkern @@ -211,7 +214,7 @@ \SOUL@setkern\SOUL@hyphkern \hbox{##1}% \discretionary{% - \tikz[overlay, remember picture] \highlight@EndHighlight ;% + {\tikz[overlay, remember picture] \highlight@EndHighlight ;}% }{% }{% \SOUL@setkern\SOUL@charkern @@ -225,12 +228,12 @@ \global\highlight@current =\y1 \endpgfextra (0,0) ; \ifdim\highlight@current < \highlight@previous - \highlight@DoHighlight - \highlight@BeginHighlight + \highlight@DoHighlight ; + \highlight@BeginHighlight ; \fi \end{tikzpicture}% \the\SOUL@syllable - \tikz[overlay, remember picture] \highlight@EndHighlight ;% + {\tikz[overlay, remember picture] \highlight@EndHighlight ;}% }% \SOUL@ } @@ -263,15 +266,15 @@ % \def\SOUL@preamble{% \begin{tikzpicture}[overlay, remember picture] - \highlight@BeginHighlight - \highlight@EndHighlight + \highlight@BeginHighlight ; + \highlight@EndHighlight ; \end{tikzpicture}% }% % \def\SOUL@postamble{% \begin{tikzpicture}[overlay, remember picture] - \highlight@EndHighlight - \highlight@DoHighlight + \highlight@EndHighlight ; + \highlight@DoHighlight ; \end{tikzpicture}% }% % @@ -279,7 +282,7 @@ \discretionary{% \SOUL@setkern\SOUL@hyphkern \SOUL@sethyphenchar - \tikz[overlay, remember picture] \highlight@EndHighlight ;% + {\tikz[overlay, remember picture] \highlight@EndHighlight ;}% }{% }{% \SOUL@setkern\SOUL@charkern @@ -290,7 +293,7 @@ \SOUL@setkern\SOUL@hyphkern \hbox{##1}% \discretionary{% - \tikz[overlay, remember picture] \highlight@EndHighlight ;% + {\tikz[overlay, remember picture] \highlight@EndHighlight ;}% }{% }{% \SOUL@setkern\SOUL@charkern @@ -304,12 +307,12 @@ \global\highlight@current =\y1 \endpgfextra (0,0) ; \ifdim\highlight@current < \highlight@previous - \highlight@DoHighlight - \highlight@BeginHighlight + \highlight@DoHighlight ; + \highlight@BeginHighlight ; \fi \end{tikzpicture}% \the\SOUL@syllable - \tikz[overlay, remember picture] \highlight@EndHighlight ;% + {\tikz[overlay, remember picture] \highlight@EndHighlight ;}% }% \SOUL@ } |