diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/proflycee/ProfLycee-Light.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/proflycee/ProfLycee-Light.sty | 21 |
1 files changed, 19 insertions, 2 deletions
diff --git a/Master/texmf-dist/tex/latex/proflycee/ProfLycee-Light.sty b/Master/texmf-dist/tex/latex/proflycee/ProfLycee-Light.sty index eb98631aed5..35d42aec310 100644 --- a/Master/texmf-dist/tex/latex/proflycee/ProfLycee-Light.sty +++ b/Master/texmf-dist/tex/latex/proflycee/ProfLycee-Light.sty @@ -1,9 +1,10 @@ % Author.............: C. Pierquet -% licence............: Released under the LaTeX Project Public License v1.3c or later, see http://www.latex-project.org/lppl.txtf +% licence............: Released under the LaTeX Project Public License v1.3c or later, see http://www.latex-project.org/lppl.txt % licence cliparts...: CC0 from openclipart \NeedsTeXFormat{LaTeX2e} -\ProvidesPackage{ProfLycee-Light}[2024/10/24 1.00b Aide pour l'utilisation de LaTeX en lycee] +\ProvidesPackage{ProfLycee-Light}[2025/02/10 1.00c Aide pour l'utilisation de LaTeX en lycee] +%1.00c Ajout d'aliases en \pfl.... %1.00b Changement du préfixage de certaines commandes + \logo calculatrice interdite %1.00a Refonte du fonctionnement @@ -14,10 +15,12 @@ \newif\if@xcolor \@xcolorfalse \newif\if@build \@buildfalse \newif\if@loadamssymb \@loadamssymbtrue +\newif\if@warningsoff \@warningsofffalse \newif\if@loadtikzbabel \@loadtikzbabeltrue \DeclareOption{xcolor}{\@xcolortrue}% \DeclareOption{build}{\@buildtrue}% \DeclareOption{nonamssymb}{\@loadamssymbfalse}% +\DeclareOption{warningsoff}{\@warningsofftrue}% \DeclareOption{nontikzbabel}{\@loadtikzbabelfalse}% \DeclareOption*{} \ProcessOptions\relax @@ -26,6 +29,9 @@ \if@loadamssymb \RequirePackage{amssymb} \fi +\if@warningsoff + \PassOptionsToPackage{warnings-off={mathtools-colon,mathtools-overbracket}}{unicode-math} +\fi \if@xcolor \RequirePackage[table,svgnames]{xcolor}%Gestion des couleurs \fi @@ -107,6 +113,17 @@ \pflnumsqrt[#3]{#4}% }% {}% + \IfEq{#2}{annee}% + {% + \IfBooleanTF{#1}% + {% + \IfEq{#3}{}{\num[digit-group-size=5]{\xintfloateval{#4}}}{\num[digit-group-size=5]{\xintfloateval{round(#4,#3)}}}% + }% + {% + \num[digit-group-size=5]{\xintiieval{#4}}% + }% + }% + {}% } \DeclareDocumentCommand\pflnumsqrt{ O{} m }{% argument mandataire {calcul ou fraction} |