texlive[72161] Master/texmf-dist: proflycee (1sep24)

commits+karl at tug.org commits+karl at tug.org
Sun Sep 1 22:46:52 CEST 2024


Revision: 72161
          https://tug.org/svn/texlive?view=revision&revision=72161
Author:   karl
Date:     2024-09-01 22:46:52 +0200 (Sun, 01 Sep 2024)
Log Message:
-----------
proflycee (1sep24)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/latex/proflycee/ProfLycee-doc.pdf
    trunk/Master/texmf-dist/doc/latex/proflycee/ProfLycee-docctan.zip
    trunk/Master/texmf-dist/tex/latex/proflycee/ProfLycee.sty
    trunk/Master/texmf-dist/tex/latex/proflycee/proflycee-tools-ecritures.tex

Modified: trunk/Master/texmf-dist/doc/latex/proflycee/ProfLycee-doc.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/proflycee/ProfLycee-docctan.zip
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/tex/latex/proflycee/ProfLycee.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/proflycee/ProfLycee.sty	2024-09-01 20:46:43 UTC (rev 72160)
+++ trunk/Master/texmf-dist/tex/latex/proflycee/ProfLycee.sty	2024-09-01 20:46:52 UTC (rev 72161)
@@ -3,7 +3,8 @@
 % or later, see http://www.latex-project.org/lppl.txtf
 
 \NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{ProfLycee}[2024/07/13 3.04d Aide pour l'utilisation de LaTeX en lycee]
+\ProvidesPackage{ProfLycee}[2024/09/01 3.04e Aide pour l'utilisation de LaTeX en lycee]
+% 3.04e	Commandes prix/angle/pourcent en lien avec siunitx
 % 3.04d	PitonInputFile et styles
 % 3.04c	Max et min pour des fonctions
 % 3.04b	Travail sur la loi binomiale + Ajout de clés pour les environnements graphiques

Modified: trunk/Master/texmf-dist/tex/latex/proflycee/proflycee-tools-ecritures.tex
===================================================================
--- trunk/Master/texmf-dist/tex/latex/proflycee/proflycee-tools-ecritures.tex	2024-09-01 20:46:43 UTC (rev 72160)
+++ trunk/Master/texmf-dist/tex/latex/proflycee/proflycee-tools-ecritures.tex	2024-09-01 20:46:52 UTC (rev 72161)
@@ -10,6 +10,39 @@
 \RequirePackage{mleftright} %pour une meilleure gestion des espacements avec \left \right :-)
 %\RequirePackage{mathrsfs}%pour \mathscr (à voir...)
 
+%===UNITÉS
+
+\NewDocumentCommand\pflprix{ o m }{%
+	\IfValueTF{#1}%
+		{%
+			\num[round-mode=places,round-precision=#1]{#2}\,\text{€}%
+		}%
+		{%
+			\num{#2}\,\text{€}%
+		}%
+}
+
+\NewDocumentCommand\pflangle{ o m }{%
+	\IfValueTF{#1}%
+		{%
+			\num[round-mode=places,round-precision=#1]{#2}\text{\textdegree}%
+		}%
+		{%
+			\num{#2}\text{\textdegree}%
+		}%
+}
+
+\NewDocumentCommand\pflpcent{ o m }{%
+	\IfValueTF{#1}%
+	{%
+		\num[round-mode=places,round-precision=#1]{#2}\,\%%
+	}%
+	{%
+		\num{#2}\,\%%
+	}%
+}
+
+
 %===ENSEMBLES CLASSIQUES
 \ifthenelse{\isundefined{\N}}%
 	{%



More information about the tex-live-commits mailing list.