texlive[69318] Master/texmf-dist: proflycee (6jan24)

commits+karl at tug.org commits+karl at tug.org
Sat Jan 6 22:33:53 CET 2024


Revision: 69318
          https://tug.org/svn/texlive?view=revision&revision=69318
Author:   karl
Date:     2024-01-06 22:33:53 +0100 (Sat, 06 Jan 2024)
Log Message:
-----------
proflycee (6jan24)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/latex/proflycee/ProfLycee-doc.pdf
    trunk/Master/texmf-dist/doc/latex/proflycee/ProfLycee-doc.tex
    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-complexes.tex
    trunk/Master/texmf-dist/tex/latex/proflycee/proflycee-tools-graphiques.tex

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

Modified: trunk/Master/texmf-dist/doc/latex/proflycee/ProfLycee-doc.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/proflycee/ProfLycee-doc.tex	2024-01-06 21:33:43 UTC (rev 69317)
+++ trunk/Master/texmf-dist/doc/latex/proflycee/ProfLycee-doc.tex	2024-01-06 21:33:53 UTC (rev 69318)
@@ -5,8 +5,8 @@
 % arara: lualatex: {shell: yes, synctex: no, interaction: batchmode} if found('log', '(undefined references|Please rerun|Rerun to get)')
 
 \documentclass[a4paper,french,11pt]{article}
-\def\PLversion{3.01b}
-\def\PLdate{2 janvier 2024}
+\def\PLversion{3.01c}
+\def\PLdate{4 janvier 2024}
 \usepackage{amsfonts}
 \usepackage{ProfLycee}
 \useproflyclib{piton,minted,pythontex,ecritures}

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-01-06 21:33:43 UTC (rev 69317)
+++ trunk/Master/texmf-dist/tex/latex/proflycee/ProfLycee.sty	2024-01-06 21:33:53 UTC (rev 69318)
@@ -3,7 +3,8 @@
 % or later, see http://www.latex-project.org/lppl.txtf
 
 \NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{ProfLycee}[2024/01/02 3.01b Aide pour l'utilisation de LaTeX en lycee]
+\ProvidesPackage{ProfLycee}[2024/01/04 3.01c Aide pour l'utilisation de LaTeX en lycee]
+% 3.01c	Ajout des splines en mode génération (sans forcément tracer)
 % 3.01b	Ajout de la division euclidienne + correction du bugs mineurs
 % 3.01a	Ajout des courbes ECC/FCC + paramètres par interpolation
 % 3.00g	Amélioration de la marge Gauche dans le PseudoCode

Modified: trunk/Master/texmf-dist/tex/latex/proflycee/proflycee-tools-complexes.tex
===================================================================
--- trunk/Master/texmf-dist/tex/latex/proflycee/proflycee-tools-complexes.tex	2024-01-06 21:33:43 UTC (rev 69317)
+++ trunk/Master/texmf-dist/tex/latex/proflycee/proflycee-tools-complexes.tex	2024-01-06 21:33:53 UTC (rev 69318)
@@ -1,5 +1,5 @@
 % proflycee-tools-complexes.tex
-% Copyright 2023  Cédric Pierquet
+% Copyright 2023  Cédric Pierquet (expérimental)
 % Released under the LaTeX Project Public License v1.3c or later, see http://www.latex-project.org/lppl.txt
 
 \NewDocumentCommand\PartieReelle{ D<>{} m O{\PartReRes} }{%
@@ -59,14 +59,27 @@
 	\PartieReelle{#3}[\tmpreB]%
 	\PartieImaginaire{#2}[\tmpimA]%
 	\PartieImaginaire{#3}[\tmpimB]%
-	\xdef\tmpreCalc{(\tmpreA)+(\tmpreB)}%
+	%\xdef\tmpreCalc{(\tmpreA)+(\tmpreB)}%
 	\xdef\xinttmpreCalc{\xinteval{(\tmpreA)+(\tmpreB)}}%
-	\xdef\tmpimCalc{(\tmpimA)+(\tmpimB)}%
+	%\xdef\tmpimCalc{(\tmpimA)+(\tmpimB)}%
 	\xdef\xinttmpimCalc{\xinteval{(\tmpimA)+(\tmpimB)}}%
 	%\xinttmpreCalc\text{ et }\xinttmpimCalc.
 	\AffComplexe[#1]%
 }
 
+\NewDocumentCommand\DifferenceComplexes{ O{} m m }{%
+	\PartieReelle{#2}[\tmpreA]%
+	\PartieReelle{#3}[\tmpreB]%
+	\PartieImaginaire{#2}[\tmpimA]%
+	\PartieImaginaire{#3}[\tmpimB]%
+	%\xdef\tmpreCalc{(\tmpreA)-(\tmpreB)}%
+	\xdef\xinttmpreCalc{\xinteval{(\tmpreA)-(\tmpreB)}}%
+	%\xdef\tmpimCalc{(\tmpimA)-(\tmpimB)}%
+	\xdef\xinttmpimCalc{\xinteval{(\tmpimA)-(\tmpimB)}}%
+	%\xinttmpreCalc\text{ et }\xinttmpimCalc.
+	\AffComplexe[#1]%
+}
+
 \NewDocumentCommand\ProduitComplexes{ O{} m m }{%
 	\PartieReelle{#2}[\tmpreA]%
 	\PartieReelle{#3}[\tmpreB]%

Modified: trunk/Master/texmf-dist/tex/latex/proflycee/proflycee-tools-graphiques.tex
===================================================================
--- trunk/Master/texmf-dist/tex/latex/proflycee/proflycee-tools-graphiques.tex	2024-01-06 21:33:43 UTC (rev 69317)
+++ trunk/Master/texmf-dist/tex/latex/proflycee/proflycee-tools-graphiques.tex	2024-01-06 21:33:53 UTC (rev 69318)
@@ -86,6 +86,54 @@
 	}%
 }
 
+%générer les splines
+\defKV[genspline]{%
+	NumDebut=\def\tmpsplinenumdeb{#1},%
+	NumFin=\def\tmpsplinenumfin{#1}
+}
+
+\setKVdefault[genspline]{%
+	NumDebut=1,%
+	NumFin=dernier
+}
+
+\NewDocumentCommand\GenereSplineTikz{ D<>{} m O{\CourbeSplineTikz} }{%
+	%1=liste
+	%2=num point début
+	%3=num point fin
+	\useKVdefault[genspline]%
+	\setKV[genspline]{#1}%
+	\setsepchar[.]{§./}%
+	\readlist*\SPLlistepoints{#2}%
+	%les données
+	\xintifboolexpr{\tmpsplinenumdeb < 1}{\def\tmpsplinenumdeb{1}}{}%
+	\IfStrEq{\tmpsplinenumfin}{dernier}{\def\tmpsplinenumfin{\SPLlistepointslen}}{}%
+	\xintifboolexpr{\tmpsplinenumfin > \SPLlistepointslen}{\def\tmpsplinenumfin{\SPLlistepointslen}}{}%
+	\extractcoeff{\SPLcoeffs}{\tmpsplinenumdeb}%
+	%nb de calculs
+	\def\SPLnbsplines{\inteval{\tmpsplinenumfin-1}}%
+	%extraction des coordonnées
+	\itemtomacro\SPLlistepoints[\tmpsplinenumdeb,1]\xa%
+	\itemtomacro\SPLlistepoints[\tmpsplinenumdeb,2]\ya%
+	\itemtomacro\SPLlistepoints[\tmpsplinenumdeb,3]\fprimea%
+	\itemtomacro\SPLlistepoints[\tmpsplinenumdeb,1]\xb%
+	\itemtomacro\SPLlistepoints[\tmpsplinenumdeb,2]\yb%
+	\itemtomacro\SPLlistepoints[\tmpsplinenumdeb,3]\fprimeb%
+	\xdef#3{(\xa,\ya) ..controls +({atan \fprimea}:{(\xb-\xa)/\COEFFA}) and +({-180 + atan \fprimeb}:{(\xb-\xa)/\COEFFA}).. (\xb,\yb)}%
+	\foreach \i in {\tmpsplinenumdeb,...,\SPLnbsplines}{%
+		%extraction des coeffs de compensation
+		\extractcoeff{\SPLcoeffs}{\i}%
+		\def\j{\inteval{\i+1}}%
+		\itemtomacro\SPLlistepoints[\i,1]\xa%
+		\itemtomacro\SPLlistepoints[\i,2]\ya%
+		\itemtomacro\SPLlistepoints[\i,3]\fprimea%
+		\itemtomacro\SPLlistepoints[\j,1]\xb%
+		\itemtomacro\SPLlistepoints[\j,2]\yb%
+		\itemtomacro\SPLlistepoints[\j,3]\fprimeb%
+		\xdef#3{#3 ..controls +({atan \fprimea}:{(\xb-\xa)/\COEFFA}) and +({-180 + atan \fprimeb}:{(\xb-\xa)/\COEFFB}).. (\xb,\yb)}%
+	}%
+}
+
 %splines en tikz avec ..controls
 \defKV[spline]{%
 	Epaisseur=\def\SPLepaisseur{#1},%



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