texlive[72311] Master/texmf-dist: proflycee (17sep24)

commits+karl at tug.org commits+karl at tug.org
Tue Sep 17 21:55:26 CEST 2024


Revision: 72311
          https://tug.org/svn/texlive?view=revision&revision=72311
Author:   karl
Date:     2024-09-17 21:55:25 +0200 (Tue, 17 Sep 2024)
Log Message:
-----------
proflycee (17sep24)

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/doc/latex/proflycee/ProfLycee-exemples-pyluatex.pdf
    trunk/Master/texmf-dist/tex/latex/proflycee/ProfLycee.sty
    trunk/Master/texmf-dist/tex/latex/proflycee/proflycee-tools-piton.tex
    trunk/Master/texmf-dist/tex/latex/proflycee/proflycee-tools-probas.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/doc/latex/proflycee/ProfLycee-exemples-pyluatex.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/tex/latex/proflycee/ProfLycee.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/proflycee/ProfLycee.sty	2024-09-17 19:55:16 UTC (rev 72310)
+++ trunk/Master/texmf-dist/tex/latex/proflycee/ProfLycee.sty	2024-09-17 19:55:25 UTC (rev 72311)
@@ -3,7 +3,9 @@
 % or later, see http://www.latex-project.org/lppl.txtf
 
 \NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{ProfLycee}[2024/09/01 3.04e Aide pour l'utilisation de LaTeX en lycee]
+\ProvidesPackage{ProfLycee}[2024/09/16 3.04g Aide pour l'utilisation de LaTeX en lycee]
+% 3.04g	Ajout de clés pour les arbres de probas
+% 3.04f	Ajout de clés pour la coloration des nombres et Piton
 % 3.04e	Commandes prix/angle/pourcent en lien avec siunitx
 % 3.04d	PitonInputFile et styles
 % 3.04c	Max et min pour des fonctions

Modified: trunk/Master/texmf-dist/tex/latex/proflycee/proflycee-tools-piton.tex
===================================================================
--- trunk/Master/texmf-dist/tex/latex/proflycee/proflycee-tools-piton.tex	2024-09-17 19:55:16 UTC (rev 72310)
+++ trunk/Master/texmf-dist/tex/latex/proflycee/proflycee-tools-piton.tex	2024-09-17 19:55:25 UTC (rev 72311)
@@ -2,6 +2,7 @@
 % Copyright 2023-2024  Cédric Pierquet
 % Released under the LaTeX Project Public License v1.3c or later, see http://www.latex-project.org/lppl.txt
 
+%3.04f	Ajout de clés pour la coloration des nombres et Piton
 %3.04d	PitonInputFile et styles, pour compatibilité pfm
 %3.03c	Thonny via piton + modification clé gobble ?
 %3.01f	PseudoCode via piton (?)
@@ -42,7 +43,7 @@
 	BarreTitre=true,%
 	Titre={{\scriptsize\faCode}~~Code Python},%
 	EspacementV=0.5\baselineskip,%
-	CouleurNombres=orange
+	CouleurNombres={orange!75!black}
 }
 
 %==Style Moderne
@@ -160,7 +161,7 @@
 	\useKVdefault[envpiton]%
 	\setKV[envpiton]{#1}% on paramètres les nouvelles clés et on les simplifie
 	%------les styles piton
-	\SetPitonStyle{ Number = \color{\CODPITcolnb} }
+	\SetPitonStyle[Python]{ Number = \color{\CODPITcolnb} }
 	\ifboolKV[envpiton]{Lignes}%si lignes=true
 		{\PitonOptions{left-margin=0.75em,line-numbers={skip-empty-lines=false,label-empty-lines=true,#3}}}%left-margin=auto,
 		{}%
@@ -227,7 +228,7 @@
 	\useKVdefault[envpiton]%
 	\setKV[envpiton]{#1}% on paramètres les nouvelles clés et on les simplifie
 	%------les styles piton
-	\SetPitonStyle{ Number = \color{\CODPITcolnb} }
+	\SetPitonStyle[Python]{ Number = \color{\CODPITcolnb} }
 	\ifboolKV[envpiton]{Lignes}%si lignes=true
 		{\PitonOptions{left-margin=0.75em,line-numbers,line-numbers={skip-empty-lines=false,label-empty-lines=true,#3}}}%left-margin=auto,
 		{}%
@@ -477,12 +478,14 @@
 
 \defKV[consolepyluatex]{%
 	Largeur=\def\ConsPyluaLarg{#1},
-	Alignement=\def\ConsPyluaAlign{#1}
+	Alignement=\def\ConsPyluaAlign{#1},%
+	CouleurNombres=\def\CODPITcolnb{#1}
 }
 \setKVdefault[consolepyluatex]{%
 	Logo=true,%
 	Largeur=\linewidth,%
-	Alignement=flush left
+	Alignement=flush left,%
+	CouleurNombres={orange!75!black}
 }
 
 \NewDocumentEnvironment{ConsolePiton}{ O{} D<>{} m }%
@@ -492,6 +495,7 @@
 {
 	\restoreKV[consolepyluatex]% revenir au valeurs par défaut
 	\setKV[consolepyluatex]{#2}% lit les arguments optionnels
+	\SetPitonStyle[Python]{ Number = \color{\CODPITcolnb} }
 	\PitonOptions{width={\ConsPyluaLarg-5mm},break-lines,end-of-broken-line={\,},continuation-symbol={\;},#1}
 	%\PitonOptions{width={\ConsPyluaLarg-5mm},#1}
 	\PyLTVerbatimEnv
@@ -524,7 +528,8 @@
 	NomFichier=\def\thonnypitonfilename{#1},%
 	NomConsole=\def\thonnypitonshellname{#1},%
 	IntroConsole=\def\thonnypitonintroconsole{#1},%
-	Gobble=\def\thonnypitongobble{#1}
+	Gobble=\def\thonnypitongobble{#1},%
+	CouleurNombres=\def\CODPITcolnb{#1}
 }
 
 \setKVdefault[pitonthonny]{%
@@ -531,7 +536,8 @@
 	NomFichier=script.py,%
 	NomConsole=console,%
 	IntroConsole={Python 3.11.6 /usr/bin/python},%
-	Gobble={}
+	Gobble={},%
+	CouleurNombres={orange!75!black}
 }
 
 \NewPitonEnvironment{PitonThonnyEditor}{ D<>{} O{} m }%
@@ -539,6 +545,7 @@
 	\restoreKV[pitonthonny]%
 	\setKV[pitonthonny]{#1}%
 	\settowidth{\LargeurNumbersThonny}{\footnotesize\texttt{00}}%
+	\SetPitonStyle[Python]{Number=\color{\CODPITcolnb}}
 	\PitonOptions{left-margin=\LargeurNumbersThonny+1mm,line-numbers={skip-empty-lines=false,label-empty-lines=true},break-lines,indent-broken-lines,continuation-symbol={}}%
 	%--gestion du gobble
 	\IfStrEqCase{\thonnypitongobble}{%
@@ -564,6 +571,7 @@
 	{\restoreKV[pitonthonny]%
 	\setKV[pitonthonny]{#1}%
 	\settowidth{\LargeurNumbersThonny}{\footnotesize\texttt{00}}%
+	\SetPitonStyle[Python]{Number=\color{\CODPITcolnb}}
 	\PitonOptions{left-margin=\LargeurNumbersThonny+1mm,line-numbers,line-numbers={skip-empty-lines=false,label-empty-lines=true},break-lines,indent-broken-lines,continuation-symbol={}}%
 	\tcbset{tcbthonnypiton/.style={title=\vphantom{pf}\thonnypitonfilename\:\textcolor{gray}{×}},before skip=0.33\baselineskip,after skip=0.33\baselineskip}%
 	\tcolorbox[sharp corners=all,enhanced,size=small,width=#2,colframe=gray,colback=lightgray!5,tcbthonnypiton,fonttitle=\scriptsize\sffamily,coltitle=black,
@@ -579,6 +587,7 @@
 	\PyLTVerbatimEnv%
 	\tcbset{tcbthonnypitonconsole/.style={title=\vphantom{pf}\thonnypitonshellname\:\textcolor{gray}{×}},before skip=0.33\baselineskip,after skip=0.33\baselineskip}%
 	\noindent%
+	\SetPitonStyle[Python]{Number=\color{\CODPITcolnb}}
 	%--gestion du gobble
 	\IfStrEqCase{\thonnypitongobble}{%
 		{auto}{\PitonOptions{auto-gobble}}%

Modified: trunk/Master/texmf-dist/tex/latex/proflycee/proflycee-tools-probas.tex
===================================================================
--- trunk/Master/texmf-dist/tex/latex/proflycee/proflycee-tools-probas.tex	2024-09-17 19:55:16 UTC (rev 72310)
+++ trunk/Master/texmf-dist/tex/latex/proflycee/proflycee-tools-probas.tex	2024-09-17 19:55:25 UTC (rev 72311)
@@ -245,7 +245,10 @@
 	StyleTrait=\def\PLAPtypetrait{#1},%
 	EpaisseurTrait=\def\PLAPeptrait{#1},%
 	PositionProbas=\def\PLAPposprob{#1},%
-	CouleurFond=\def\PLAPcolback{#1}
+	CouleurFond=\def\PLAPcolback{#1},%
+	CouleurTraits=\def\PLAPcolarc{#1},%
+	CouleurProbas=\def\PLAPcolprobas{#1},%
+	CouleurNoeuds=\def\PLAPcolnoeuds{#1}
 }
 
 \setKVdefault[PLTIKZARBRE]{%
@@ -260,7 +263,10 @@
 	StyleTrait={},%
 	EpaisseurTrait=semithick,%
 	PositionProbas={},%
-	CouleurFond=white
+	CouleurFond=white,%
+	CouleurTraits=black,%
+	CouleurProbas=black,%
+	CouleurNoeuds=black
 }
 
 \NewDocumentCommand\IntPlaceProbasArbre{ m m m m m }{%
@@ -285,14 +291,14 @@
 	\readlist*\PLARBREDONNES{#2}%
 	\begin{tikzpicture}[x=\PLAPunite,y=\PLAPunite]
 		%styles
-		\tikzstyle{noeud} = [font=\PLAPfont]
-		\tikzstyle{probas}= [font=\PLAPfontproba]
+		\tikzstyle{noeud} = [font=\PLAPfont,text=\PLAPcolnoeuds]
+		\tikzstyle{probas}= [font=\PLAPfontproba,text=\PLAPcolprobas]
 		\ifboolKV[PLTIKZARBRE]{InclineProbas}
 			{\tikzstyle{PLetiquette}=[pos=0.525,sloped,inner sep=2pt,outer sep=2pt,rectangle]}
 			{\tikzstyle{PLetiquette}=[pos=0.525,inner sep=2pt,outer sep=2pt,rectangle]}
 		\ifboolKV[PLTIKZARBRE]{Fleche}
-			{\tikzstyle{PLfleche}=[->,>=latex,\PLAPtypetrait,\PLAPeptrait]}
-			{\tikzstyle{PLfleche}=[\PLAPtypetrait,\PLAPeptrait]}
+			{\tikzstyle{PLfleche}=[->,>=latex,\PLAPtypetrait,\PLAPeptrait,\PLAPcolarc]}
+			{\tikzstyle{PLfleche}=[\PLAPtypetrait,\PLAPeptrait,\PLAPcolarc]}
 		%arbre2x2
 		\IfEq{\PLAPtype}{2x2}
 		{%
@@ -576,14 +582,14 @@
 	\readlist*\PLARBREDONNES{#2}
 	\begin{tikzpicture}[x=\PLAPunite,y=\PLAPunite]
 		%styles
-		\tikzstyle{noeud} = [font=\PLAPfont]
-		\tikzstyle{probas}= [font=\PLAPfontproba]
+		\tikzstyle{noeud} = [font=\PLAPfont,text=\PLAPcolnoeuds]
+		\tikzstyle{probas}= [font=\PLAPfontproba,text=\PLAPcolprobas]
 		\ifboolKV[PLTIKZARBRE]{InclineProbas}
 			{\tikzstyle{PLetiquette}=[pos=0.525,sloped,inner sep=2pt,outer sep=2pt,rectangle]}
 			{\tikzstyle{PLetiquette}=[pos=0.525,inner sep=2pt,outer sep=2pt,rectangle]}
 		\ifboolKV[PLTIKZARBRE]{Fleche}
-			{\tikzstyle{PLfleche}=[->,>=latex,\PLAPtypetrait,\PLAPeptrait]}
-			{\tikzstyle{PLfleche}=[\PLAPtypetrait,\PLAPeptrait]}
+			{\tikzstyle{PLfleche}=[->,>=latex,\PLAPtypetrait,\PLAPeptrait,\PLAPcolarc]}
+			{\tikzstyle{PLfleche}=[\PLAPtypetrait,\PLAPeptrait,\PLAPcolarc]}
 		%arbre2x2
 		\IfEq{\PLAPtype}{2x2}
 		{%



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