diff options
Diffstat (limited to 'macros/latex/contrib/profcollege/latex/PfCDessinerRatio.tex')
-rw-r--r-- | macros/latex/contrib/profcollege/latex/PfCDessinerRatio.tex | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/macros/latex/contrib/profcollege/latex/PfCDessinerRatio.tex b/macros/latex/contrib/profcollege/latex/PfCDessinerRatio.tex index 29207b0373..27922bdd03 100644 --- a/macros/latex/contrib/profcollege/latex/PfCDessinerRatio.tex +++ b/macros/latex/contrib/profcollege/latex/PfCDessinerRatio.tex @@ -1,7 +1,7 @@ %%% % Lien : ratio %%% -\setKVdefault[ClesRatio]{FigureCours=false,Figure=false,Longueur=5cm,TexteTotal=quantit\'e,TextePart=part,Tableau=false,GrandeurA=Grandeur A,GrandeurB=Part(s),Largeur=1cm,Stretch=1,Nom=false,CouleurUn=gris,CouleurDeux=0.5gris+0.5blanc,CouleurTrois=white,CouleurTab=gray!15} +\setKVdefault[ClesRatio]{FigureCours=false,Figure=false,Longueur=5cm,TexteTotal=quantit\'e,TextePart=part,Tableau=false,GrandeurA=Grandeur A,GrandeurB=Part(s),Largeur=1cm,Stretch=1,Nom=false,CouleurUn=gris,CouleurDeux=0.5gris+0.5blanc,CouleurTrois=white,CouleurTab=gray!15,ModeleCouleur=5} \newcommand\MPTest[9][]{% % #2 : Longueur de la barre unit\'e @@ -12,7 +12,8 @@ % #7 \`a #9: Couleurs de remplissage \ifluatex \mplibforcehmode - \begin{mplibcode} + \begin{mplibcode} + defaultcolormodel := \useKV[ClesRatio]{ModeleCouleur}; vardef RatioTrois(expr long)(text t)=%longueur de la barre / quantit\'e \`a partager / textepart :) / t le ratio pair A,B,C,D; A=u*(1,1); @@ -172,7 +173,8 @@ % #7 \`a #9: Couleurs de remplissage \ifluatex \mplibforcehmode - \begin{mplibcode} + \begin{mplibcode} + defaultcolormodel := \useKV[ClesRatio]{ModeleCouleur}; vardef RatioTrois(expr long)(text t)=%longueur de la barre / quantit\'e \`a partager / textepart :) / t le ratio pair A,B,C,D; A=u*(1,1); |