summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/proflycee
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2023-10-26 03:01:46 +0000
committerNorbert Preining <norbert@preining.info>2023-10-26 03:01:46 +0000
commit721b0492f150d59f61b504ab803c7ef1a9a67a0b (patch)
tree95c682efcdefd7abd304cc7fb6ffe1d843d818a8 /macros/latex/contrib/proflycee
parent241082cbe6f4fe8c38e91c38418ca828ac8d2f7c (diff)
CTAN sync 202310260301
Diffstat (limited to 'macros/latex/contrib/proflycee')
-rw-r--r--macros/latex/contrib/proflycee/doc/ProfLycee-doc.pdfbin1340845 -> 1343842 bytes
-rw-r--r--macros/latex/contrib/proflycee/doc/ProfLycee-doc.tex254
-rw-r--r--macros/latex/contrib/proflycee/tex/ProfLycee.sty3
-rw-r--r--macros/latex/contrib/proflycee/tex/proflycee-tools-graphiques.tex26
4 files changed, 23 insertions, 260 deletions
diff --git a/macros/latex/contrib/proflycee/doc/ProfLycee-doc.pdf b/macros/latex/contrib/proflycee/doc/ProfLycee-doc.pdf
index 5df419a5b7..eecd5f019c 100644
--- a/macros/latex/contrib/proflycee/doc/ProfLycee-doc.pdf
+++ b/macros/latex/contrib/proflycee/doc/ProfLycee-doc.pdf
Binary files differ
diff --git a/macros/latex/contrib/proflycee/doc/ProfLycee-doc.tex b/macros/latex/contrib/proflycee/doc/ProfLycee-doc.tex
index 129b5f63b6..a63b590459 100644
--- a/macros/latex/contrib/proflycee/doc/ProfLycee-doc.tex
+++ b/macros/latex/contrib/proflycee/doc/ProfLycee-doc.tex
@@ -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.00a}
-\def\PLdate{23 octobre 2023}
+\def\PLversion{3.00b}
+\def\PLdate{25 octobre 2023}
\usepackage{amsfonts}
\usepackage{ProfLycee}
\useproflyclib{piton,minted,pythontex,ecritures}
@@ -40,13 +40,8 @@
\let\pstricks\PSTricks
\let\TikZ\tikzlogo
\newcommand\TableauDocumentation{%
- \begin{tblr}{width=\linewidth,colspec={X[c]X[c]X[c]X[c]X[c]X[c]},cells={font=\sffamily}}
- {\huge \LaTeX} & & & & &\\
- & {\huge \hologo{pdfLaTeX}} & & & & \\
- & & {\huge \hologo{LuaLaTeX}} & & & \\
- & & & {\huge \TikZ} & & \\
- & & & & {\huge \TeXLive} & \\
- & & & & & {\huge \hologo{MiKTeX}} \\
+ \begin{tblr}{width=\linewidth,colspec={X[c]X[c]X[c]X[c]X[c]X[c]},cells={font=\huge\sffamily}}
+ {\LaTeX} & {\hologo{pdfLaTeX}} & {\hologo{LuaLaTeX}} & {\TikZ} & {\TeXLive} & {\hologo{MiKTeX}} \\
\end{tblr}
}
\usepackage{simplekv}
@@ -67,246 +62,7 @@
\usepackage{babel}
\usepackage{newverbs}
-\definecolor{BleuCadet}{HTML}{5E9EA0}
-\definecolor{Chair}{HTML}{FDDBB8}
-\definecolor{BleuAcier}{HTML}{4483B8}
-
-\newverbcommand{\pverb}{\color{purple}}{}
-\newverbcommand{\rverb}{\color{red}}{}
-\newverbcommand{\vverb}{\color{CouleurVertForet}}{}
-\newverbcommand{\averb}{\color{BleuCadet}}{}
-\newverbcommand{\overb}{\color{orange}}{}
-\newverbcommand{\bverb}{\color{blue}}{}
-\setlength{\parindent}{0pt}
-\definecolor{LightGray}{gray}{0.9}
-
-\newtcolorbox{PART}[1][]{%
- enhanced,top=3mm,bottom=3mm,
- bottomtitle=2mm,arc=2pt,outer arc=0pt,
- colframe=teal,colback=white,bicolor,
- colbacklower=teal!15,coltitle=black,
- fonttitle=\large\sffamily,
- title=\centering Thème,
- #1%
-}%
-
-\tcbset{vignettes/.style={%
- nobeforeafter,box align=base,boxsep=0pt,enhanced,sharp corners=all,rounded corners=southeast,%
- boxrule=0.75pt,left=7pt,right=1pt,top=0pt,bottom=0.25pt,%
- }
-}
-\tcbset{vignettelatex/.style={%
- fontupper={\vphantom{pf}\footnotesize\ttfamily},
- vignettes,%
- colframe=BleuCadet,coltitle=white,colback=BleuCadet!5,%
- overlay={\begin{tcbclipinterior}%
- \fill[fill=lightgray!50]($(interior.south west)$) rectangle node[rotate=90]{\tiny \sffamily{\textcolor{BleuCadet}{\scalebox{0.6}[0.75]{\textbf{\LaTeX}}}}} ($(interior.north west)+(5pt,0pt)$);%
- \end{tcbclipinterior}}
- }
-}
-
-\tcbset{vignettelib/.style={%
- fontupper={\vphantom{pf}\footnotesize\ttfamily},
- vignettes,%
- colframe=CouleurVertForet,coltitle=white,colback=white,%
- overlay={\begin{tcbclipinterior}%
- \fill[fill=green!25]($(interior.south west)$) rectangle node[rotate=90]{\tiny \sffamily{\textcolor{CouleurVertForet}{\scalebox{0.85}[0.75]{\textbf{LIB}}}}} ($(interior.north west)+(5pt,0pt)$);%
- \end{tcbclipinterior}}
- }
-}
-
-\tcbset{vignetteMaJ/.style={%
- fontupper={\vphantom{pf}\footnotesize\ttfamily},
- vignettes,%
- colframe=CouleurVertForet!50!black,coltitle=white,colback=CouleurVertForet!25,%
- overlay={\begin{tcbclipinterior}%
- \fill[fill=CouleurVertForet!75]($(interior.south west)$) rectangle node[rotate=90]{\tiny \sffamily{\textcolor{black}{\scalebox{0.85}[0.75]{\textbf{MàJ}}}}} ($(interior.north west)+(5pt,0pt)$);%
- \end{tcbclipinterior}}
- }
-}
-
-\tcbset{StyleCodeTex/.style={%
- listing engine=listings,%
- listing options={%
- breaklines=true,%
- breakatwhitespace=true,%
- style=tcblatex,basicstyle=\footnotesize\ttfamily,%
- tabsize=4,%
- commentstyle={\itshape\color{gray}},
- keywordstyle={\color{blue}},%
- classoffset=0,%
- keywords={dfrac,useproflyclib,includegraphics},%
- alsoletter={-},%
- keywordstyle={\color{blue}},%
- classoffset=1,%
- alsoletter={-},%
- morekeywords={ProfLycee,CodePythonLst,CodePythonLstAlt,CodePiton,PitonConsole,CodePythontex,CodePythontexAlt,ConsolePythontex,CodePythonMinted,CodePythonMintedAlt,PseudoCode,PseudoCodeAlt,TerminalWin,TerminalUnix,TerminalOSX,EnvArbreProbasTikz,EnvSudoMaths,RepIntervalles},%
- keywordstyle={\color{violet}},%
- classoffset=2,%
- alsoletter={-},%
- morekeywords={\ResolutionApprochee,\SolutionTVI,\CalculTermeRecurrence,\ToileRecurrence,\SolutionSeuil,\IntegraleApprochee,\GrilleTikz,\AxesTikz,\AxexTikz,\AxeyTikz,\FenetreTikz,\FenetreSimpleTikz,\DeclareFonctionTikz,\CourbeTikz,\OrigineTikz,\SplineTikz,\TangenteTikz,\MiniSchemaSignes,\MiniSchemaSignesTkzTab,\IntegraleApprocheeTikz,\CartoucheCapytale,\PaveTikz,\TetraedreTikz,\CercleTrigo,\AffPoint,\AffVecteur,\TrouveEqCartPlan,\TrouveEqParamDroite,\TrouveEqCartDroite,\TrouveNorme,\TrouveDistancePtPlan,\EquationReduite,\CalculsRegLin,\PointsRegLin,\NuagePointsTikz,\PointMoyenTikz,\BoiteMoustaches,\BoiteMoustachesAxe,\Histogramme,\CalcBinomP,\CalcBinomC,\BinomP,\BinomC,\CalcPoissP,\CalcPoissC,\PoissonP,\PoissonC,\CalcGeomP,\CalcGeomC,\GeomP,\GeomC,\CalcHypergeomP,\CalcHypergeomP,\HypergeomP,\HypergeomC,\CalcNormC,\NormaleC,\CalcExpoC,\ExpoC,\ArbreProbasTikz,\LoiNormaleGraphe,\LoiExpoGraphe,\NbAlea,\VarNbAlea,\TirageAleatoireEntiers,\Arrangement,\Combinaison,\ConversionDecBin,\ConversionBinHex,\ConversionVersDec,\ConversionHexBin,\ConversionBaseDix,\ConversionDepuisBaseDix,\PresentationPGCD,\EquationDiophantienne,\ConversionFraction,\SimplificationRacine,\EcritureEnsemble,\EcritureTrinome,\MesurePrincipale,\LigneTrigo,\SudoMaths,\FonctionRepartTikz,\IntervalleFF,\IntervalleFO,\IntervalleOF,\IntervalleOO,\RepereOij,\RepereOuv,\RepereOijk,\ReperePlan,\RepereEspace,\jfalg,\jfexp,\LoiNormale,\LoiBinomiale,\LoiPoisson,\LoiExpo,\LoiUnif,\Courbe,\Suite,\CoordPtPl,\CoordPtEsp,\CoordVecPl,\CoordVecEsp,\MatDeux,\Vecteur,\Esper,\Varianc,\EcType,\dx,\Integrale,\Modulo,\Arrondi,\CodePythonLstFichier,\CodePythonLstFichierAlt,\colorlet,\PtsDiscontinuite,\ListeDiviseurs,\ArbreDiviseurs,\FractaleTikz,\EtapesFloconKoch,\EtapesTapisSierpinski,\tkzIntervalle,\AffAngleRadian
- },%
- keywordstyle={\color{CouleurVertForet}},%
- classoffset=3,%
- alsoletter={-},%
- morekeywords={minimum-decimal-digits,scale,nonamssymb,build,Precision,Intervalle,Variable,NomFct,NomSol,va,vb,Stretch,Balayage,Calculatrice,Majuscule,No,UNo,NomSuite,Simple,Exact,Conclusion,Sens,ResultatBrut,Methode,NbSubDiv,AffFormule,Expr,Signe,Variables,Affp,Affs,Epaisseur,Police,ElargirOx,ElargirOy,Labelx,Labely,AffLabel,PosLabelx,PosLabely,EchelleFleche,TypeFleche,PosGrad,HautGrad,AffGrad,AffOrigine,Annee,Trigo,Dfrac,Style,Coeffs,AffPoints,TaillePoints,xl,xr,Code,Racines,Largeur,Hauteur,Cadre,Fct,Nom,PosLabel,DecalLabel,TailleLabel,AffTermes,RemplirbOpacite,CouleurRemplissage,Lignes,Gobble,Alignement,Filigrane,BarreTitre,CouleurNombres,Centre,EspacementVertical,Label,Titre,Profondeur,Angle,Fuite,Sommets,Math,Aff,Plein,Cube,Alpha,Beta,Rayon,Marge,TailleValeurs,TailleAngles,CouleurFond,Decal,MoinsPi,AffAngles,AffTraits,AffValeurs,Equationcos,Equationsin,sin,cos,AffTraitsEq,CouleurSol,OptionCoeffs,SimplifCoeffs,Facteur,OptionCoeffs,Reel,Oppose,Rgras,SimplifCoeffs,VectDirecteur,NomCoeffa,NomCoeffb,NomCoeffr,NomCoeffrd,NomXmin,NomXmax,Ox,Oy,xg,yg,AffNom,Elevation,Moyenne,AffMoyenne,Pointilles,Valeurs,Elargir,Min,Max,DebutOx,FinOx,ListeCouleurs,ElargirX,ElargirY,LabelX,LabelY,GradX,GradY,AffEffectifs,PosEffectifs,Opacite,AffBornes,GrilleV,PoliceAxes,PoliceEffectifs,EpaisseurTraits,Unite,EspaceNiveau,EspaceFeuille,Type,PoliceProbas,InclineProbas,Fleche,StyleTrait,EpaisseurTrait,CouleurAire,CouleurCourbe,AfficheM,AfficheCadre,ValMin,ValMax,NbVal,Sep,Tri,Repetition,Notation,NotationAncien,Formule,AffBase,Details,BaseDep,Zeros,DecalH,DecalV,Noeud,Rect,CouleurRes,DecalRect,Rectangle,CouleurResultat,AfficheConclusion,AfficheDelimiteurs,Lettre,Inconnues,Entier,Cadres,PresPGCD,Mathpunct,Option,Alea,Anegatif,Crochets,Brut,Etapes,Epaisseurg,CouleurCase,CouleurTexte,NbSubCol,NbLig,NbCol,Legendes,PoliceLeg,ListeLegV,ListeLegH,DecalLegende,Couleur,Uno,Grille,ExtraGrilleY,PosLegende,Pointilles,Extremite,Frac,PremLigne,Type,Pos,Echelle,AffNom,EspaceNiveau,CouleurDetails,Fleches,EspaceFeuille,Details,LongueurCote,AlignV,Offset,Remplir,Etape,Depart,Contour,Remplissage,Graduations,GraduationsAlt,HautGrad,Valeurs,EpTrait,Decor,NumInf,NumSup,NiveauV,PosValeurs},%
- keywordstyle={\color{orange!75!black}}
- }
- }
-}
-
-\NewTCBListing{PresCodeTexPL}{ O{BleuCadet} m }{%
- enhanced,width=0.93\linewidth,flush right,boxrule=0.75pt,colframe=#1!85!black,%
- sharp corners,top=0mm,bottom=0mm,left=0.4em,right=5mm,%
- before skip=\baselineskip,after skip=\baselineskip,%
- colback=white,
- fontupper=\footnotesize,fontlower=\footnotesize,%
- watermark text={\faCode},watermark opacity=0.25,watermark zoom=0.50,%
- title={{\scriptsize\faCode} Code \LaTeX},
- lefttitle=0.4em,
- fonttitle=\bfseries\footnotesize\sffamily,colbacktitle=darkgray!50!#1,%
- StyleCodeTex,
- %listing engine=minted,minted style=colorful,minted language=tex,
- %minted options={tabsize=4,fontsize=\footnotesize,autogobble,breaklines=true},
- #2,%
- overlay={\draw[#1!85!black] ($(frame.north west)+(-0.035\linewidth,-0.025\linewidth)$) node[scale=1.66] {\faCode} ;}
-}
-
-\NewTCBListing{PresCodePL}{ O{BleuCadet} m }{%
- enhanced,width=0.93\linewidth,flush right,boxrule=0.75pt,colframe=#1!85!black,%
- sharp corners,top=0mm,bottom=0mm,left=0.4em,right=5mm,%
- before skip=\baselineskip,after skip=\baselineskip,%
- colback=white,
- fontupper=\footnotesize,fontlower=\footnotesize,%
- watermark text={\faCogs},watermark opacity=0.25,watermark zoom=0.50,%
- title={{\scriptsize\faCogs} Code \LaTeX{} et sortie \LaTeX},
- lefttitle=0.4em,
- fonttitle=\bfseries\footnotesize\sffamily,colbacktitle=darkgray!50!#1,%
- StyleCodeTex,
- %listing engine=minted,minted style=colorful,minted language=tex,
- %minted options={tabsize=4,fontsize=\footnotesize,autogobble,breaklines=true},
- #2,%
- overlay={%
- \draw[#1!85!black] ($(frame.north west)+(-0.035\linewidth,-0.025\linewidth)$) node[scale=1.66] {\faCode} ;
- \draw[#1!85!black] ($(segmentation.west)+(-0.035\linewidth,-0.025\linewidth)$) node[scale=1.66] {\faFilePdf} ;
-
- }
-}
-
-\NewTCBListing{PresCodeSortiePL}{ O{BleuCadet} m }{%
- enhanced,width=0.93\linewidth,flush right,boxrule=0.75pt,colframe=#1!85!black,%
- sharp corners,top=0mm,bottom=0mm,left=0.4em,right=5mm,%
- before skip=\baselineskip,after skip=\baselineskip,%
- colback=white,
- fontupper=\footnotesize,fontlower=\footnotesize,%
- watermark text={\faFilePdf},watermark opacity=0.25,watermark zoom=0.50,%
- title={{\scriptsize\faFilePdf} Sortie \LaTeX},
- lefttitle=0.4em,
- fonttitle=\bfseries\footnotesize\sffamily,colbacktitle=darkgray!50!#1,%
- StyleCodeTex,
-% listing engine=minted,minted style=colorful,minted language=tex,
-% minted options={tabsize=4,fontsize=\footnotesize,autogobble,breaklines=true},
- #2,%
- overlay={\draw[#1!85!black] ($(frame.north west)+(-0.035\linewidth,-0.025\linewidth)$) node[scale=1.66] {\faFilePdf} ;}
-}
-
-\newtcblisting{codetex}[1][]{%
- colback=white,colframe=red!75!black,title={\small \faCode} Code \LaTeX,fonttitle=\sffamily\bfseries,left=3pt,right=3pt,top=2pt,bottom=2pt,#1}
-
-\newtcolorbox{codeattention}[1][]{%
- colback=Yellow!50,colframe=yellow!50!black,title={\small \faBomb} Attention,fonttitle=\sffamily\bfseries,left=3pt,right=3pt,top=2pt,bottom=2pt,#1}
-
-\newtcolorbox{codesortie}[1][]{%
- colback=white,colframe=red!75!black,title={\small \faArrowAltCircleRight[regular]} Sortie \LaTeX,fonttitle=\sffamily\bfseries,left=3pt,right=3pt,top=2pt,bottom=2pt,#1}
-
-\newtcolorbox{condeidee}[1][]{%
- colback=white,colframe=Chair!75!black,title={\small \faLightbulb[regular]} Idée(s),fonttitle=\sffamily\bfseries,left=3pt,right=3pt,top=2pt,bottom=2pt,#1}
-
-\newtcolorbox{codeinfo}[1][]{%
- colback=white,colframe=BleuAcier,title={\small \faPuzzlePiece} Information(s),fonttitle=\sffamily\bfseries,left=3pt,right=3pt,top=2pt,bottom=2pt,#1}
-
-\newtcolorbox{codecles}[1][]{%
- colback=white,colframe=CouleurVertForet!75,title={\small \faPaperclip} Clés et options,fonttitle=\sffamily\bfseries,left=3pt,right=3pt,top=2pt,bottom=2pt,#1}
-
-%petite vignette tex
-\newcommand\ctex[1]{\tcbox[vignettelatex]{#1}}
-
-%petite vignette màj
-\newcommand\cmaj[1]{%
- {\tcbox[vignetteMaJ]{#1}\xspace}%
-}
-
-%petite vignette màj
-\newcommand\clib[1]{%
- {\tcbox[vignettelib]{#1}\xspace}%
-}
-
-%gestion de la fenêtre v2 directement dans le tikzpicture
-\tikzset{%
- xmin/.store in=\xmin,xmin/.default=-5,xmin=-5,
- xmax/.store in=\xmax,xmax/.default=5,xmax=5,
- ymin/.store in=\ymin,ymin/.default=-5,ymin=-5,
- ymax/.store in=\ymax,ymax/.default=5,ymax=5,
- xgrille/.store in=\xgrille,xgrille/.default=1,xgrille=1,
- xgrilles/.store in=\xgrilles,xgrilles/.default=0.5,xgrilles=0.5,
- ygrille/.store in=\ygrille,ygrille/.default=1,ygrille=1,
- ygrilles/.store in=\ygrilles,ygrilles/.default=0.5,ygrilles=0.5,
- xunit/.store in=\xunit,unit/.default=1,xunit=1,
- yunit/.store in=\yunit,unit/.default=1,yunit=1
-}
-\newcommand\tgrilles[1][ultra thin,lightgray]{%
- \draw[xstep=\xgrilles,ystep=\ygrilles,#1] (\xmin,\ymin) grid (\xmax,\ymax);%
-}
-\newcommand\tgrillep[1][thin,gray]{%
- \draw[xstep=\xgrille,ystep=\ygrille,#1] (\xmin,\ymin) grid (\xmax,\ymax);%
-}
-
-\newcommand\genfenetre{%
- %styles
- \tikzset{noeudexpl/.style={purple,font=\sffamily\small}}
- \tikzset{portionexpl/.style={orange,thick,<->,>=latex}}
- \tikzset{expl/.style={midway,inner sep=1pt,above right=0,orange,font=\sffamily\scriptsize,rotate=45}}
- \tikzset{coeffs/.style={BleuCadet!50!black,circle,draw=BleuCadet,thick,fill=BleuCadet!5,font=\small\ttfamily}}
- \tikzset{tangente/.style={teal,line width=1pt,dashed}}
- %grilles & axes
- \tgrilles[line width=0.3pt,lightgray!50]
- \tgrillep[line width=0.6pt,lightgray!50]
- \draw[line width=1.5pt,->,gray,>=latex] (\xmin,0)--(\xmax,0) ;
- \draw[line width=1.5pt,->,gray,>=latex] (0,\ymin)--(0,\ymax) ;
- \foreach \x in {0,1,...,10} {\draw[gray,line width=1.5pt] (\x,4pt) -- (\x,-4pt) ;}
- \foreach \y in {0,1,...,6} {\draw[gray,line width=1.5pt] (4pt,\y) -- (-4pt,\y) ;}
-}
-
-\newcommand\gennotice{%
- %notice
- \draw (0,1) node[noeudexpl,below] {point 1} ;
- \draw (4,3.667) node[noeudexpl,above] {point 2} ;
- \draw (7.5,1.75) node[noeudexpl,below] {point 3} ;
- \draw (9,2) node[noeudexpl,above] {point 4} ;
- \draw (10,0) node[noeudexpl,below] {point 5} ;
- \draw[portionexpl] (0,6)--(4,6) node[expl] {portion 1} ;
- \draw[portionexpl] (4,6)--(7.5,6) node[expl] {portion 2} ;
- \draw[portionexpl] (7.5,6)--(9,6) node[expl] {portion 3} ;
- \draw[portionexpl] (9,6)--(10,6) node[expl] {portion 4} ;
- \draw[orange,densely dashed,thick] (4,0)--(4,6) (7.5,0)--(7.5,6) (9,0)--(9,6) (10,0)--(10,6) ;
-}
-
-\newcommand\gentangentes{%
- %tangentes
- \draw[tangente] (0,1)--(1,1) ;
- \draw[tangente,domain=3:5] plot (\x,{-1/3*(\x-9)+2}) ;
- \draw[tangente] (6.5,1.75)--(8.5,1.75) ;
- \draw[tangente,domain=8:10] plot (\x,{-1/3*(\x-9)+2}) ;
- \draw[tangente,domain=9.5:10] plot (\x,{-10*(\x-10)+0}) ;%
-}
-
-\newcommand\listecoeffs[4]{%
- \draw (0,5.5) node[left,BleuCadet,font=\small\ttfamily] {Coeffs} ;
- \node[coeffs] at (2,5.5) {#1} ;
- \node[coeffs] at ({(4+7.5)/2},5.5) {#2} ;
- \node[coeffs] at ({(7.5+9)/2},5.5) {#3} ;
- \node[coeffs] at ({(9+10)/2},5.5) {#4} ;%
-}
+\input{ProfLycee-doc-macropreamb.tex}
\input{ProfLycee-doc-pagegarde.tex}
diff --git a/macros/latex/contrib/proflycee/tex/ProfLycee.sty b/macros/latex/contrib/proflycee/tex/ProfLycee.sty
index 8f3f9bb1fb..e31dc6dca4 100644
--- a/macros/latex/contrib/proflycee/tex/ProfLycee.sty
+++ b/macros/latex/contrib/proflycee/tex/ProfLycee.sty
@@ -3,7 +3,8 @@
% or later, see http://www.latex-project.org/lppl.txtf
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{ProfLycee}[2023/10/23 3.00a Aide pour l'utilisation de LaTeX en lycee]
+\ProvidesPackage{ProfLycee}[2023/10/25 3.00b Aide pour l'utilisation de LaTeX en lycee]
+% 3.00b Amélioration de la commande des intervalles (spécifier un label pour les bornes)
% 3.00a Ajout de commandes pour travailler avex des intervalles + Nouvelle numérotation
% 2.8.0 Amélioration du tapis de Sierpinski
% 2.7.9 Ajout de fractales (Koch + Sierpinski)
diff --git a/macros/latex/contrib/proflycee/tex/proflycee-tools-graphiques.tex b/macros/latex/contrib/proflycee/tex/proflycee-tools-graphiques.tex
index 0a31d0861a..25c206b76f 100644
--- a/macros/latex/contrib/proflycee/tex/proflycee-tools-graphiques.tex
+++ b/macros/latex/contrib/proflycee/tex/proflycee-tools-graphiques.tex
@@ -644,23 +644,29 @@
\IfStrEq{\RepIntervGrad}{}%
{}%
{
- \foreach \i in \RepIntervGrad {\draw[line width={\useKV[repinterv]{EpTrait}}] (\i,{0.5*\RepIntervHautGrad})--++(0,{-\RepIntervHautGrad}) ;}
+ \foreach \i in \RepIntervGrad {\draw[line width={\useKV[repinterv]{EpTrait}}] ({\i},{0.5*\RepIntervHautGrad})--++(0,{-\RepIntervHautGrad}) ;}
}%
\IfStrEq{\RepIntervGradPrim}{}%
{}%
{
- \foreach \i in \RepIntervGradPrim {\draw[line width={\useKV[repinterv]{EpTrait}}] (\i,{0.75*\RepIntervHautGrad})--++(0,{-1.5*\RepIntervHautGrad}) ;}
+ \foreach \i in \RepIntervGradPrim {\draw[line width={\useKV[repinterv]{EpTrait}}] ({\i},{0.75*\RepIntervHautGrad})--++(0,{-1.5*\RepIntervHautGrad}) ;}
}%
\IfStrEq{\RepIntervVal}{}%
{}%
{
- \foreach \i in \RepIntervVal {\draw (\i,{-0.5*\useKV[repinterv]{Hauteur}}) node[inner sep={1.5*\useKV[repinterv]{EpTrait}},below,font={\useKV[repinterv]{Police}}] {\num{\i}} ;}
+ \foreach \i in \RepIntervVal {\draw ({\i},{-0.5*\useKV[repinterv]{Hauteur}}) node[inner sep={1.5*\useKV[repinterv]{EpTrait}},below,font={\useKV[repinterv]{Police}}] {\num{\i}} ;}
}%
}%
{%
\end{tikzpicture}%
}
+\NewDocumentCommand\PlaceValeursAxe{ m }{%
+ \setsepchar{,/§}%
+ \readlist*\ValsAxeIV{#1}%
+ \foreach \i in {1,...,\ValsAxeIVlen} {\draw ({\ValsAxeIV[\i,1]},{-0.5*\useKV[repinterv]{Hauteur}}) node[inner sep={1.5*\useKV[repinterv]{EpTrait}},below,font={\useKV[repinterv]{Police}}] {\ValsAxeIV[\i,2]} ;}
+}
+
\defKV[tkzinterv]{%
Type=\def\IntervType{#1},%
Decor=\def\IntervStyle{#1},%
@@ -679,12 +685,12 @@
Offset=0pt
}
-\NewDocumentCommand\tkzIntervalle{ O{} m m }{%1=options,2=min,3=max
+\NewDocumentCommand\tkzIntervalle{ O{} m O{#2} m O{#4} }{%1=options,2=min,3=labelmin,4=max,5=labelmax
\restoreKV[tkzinterv]%
\setKV[tkzinterv]{#1}%
%transformations min/max
\IfStrEq{#2}{*}{\def\ValMinInterv{\AxeXminInterv}}{\def\ValMinInterv{#2}}%
- \IfStrEq{#3}{*}{\def\ValMaxInterv{\AxeXmaxInterv}}{\def\ValMaxInterv{#3}}%
+ \IfStrEq{#4}{*}{\def\ValMaxInterv{\AxeXmaxInterv}}{\def\ValMaxInterv{#4}}%
\begin{scope}[yshift={\useKV[repinterv]{Coeff}*\useKV[tkzinterv]{NiveauV}*\useKV[repinterv]{Hauteur}+\IntervOffset}]
%segment
\draw[line width={2*\useKV[repinterv]{EpTrait}},{\useKV[tkzinterv]{Couleur}}] ({\ValMinInterv},0)--({\ValMaxInterv},0) ;
@@ -717,11 +723,11 @@
{%
\IfSubStr{\IntervPosValeurs}{above}
{%
- \draw ({\ValMinInterv},{0.5*\useKV[repinterv]{Hauteur}}) node[inner sep={3*\useKV[repinterv]{EpTrait}},\IntervPosValeurs,text={\useKV[tkzinterv]{Couleur}},font={\useKV[repinterv]{Police}}] {\ifboolKV[tkzinterv]{NumInf}{\num{#2}}{#2}} ;
+ \draw ({\ValMinInterv},{0.5*\useKV[repinterv]{Hauteur}}) node[inner sep={3*\useKV[repinterv]{EpTrait}},\IntervPosValeurs,text={\useKV[tkzinterv]{Couleur}},font={\useKV[repinterv]{Police}}] {\ifboolKV[tkzinterv]{NumInf}{\num{#2}}{#3}} ;
}{}%
\IfSubStr{\IntervPosValeurs}{below}
{%
- \draw ({\ValMinInterv},{-0.5*\useKV[repinterv]{Hauteur}}) node[inner sep={3*\useKV[repinterv]{EpTrait}},\IntervPosValeurs,text={\useKV[tkzinterv]{Couleur}},font={\useKV[repinterv]{Police}}] {\ifboolKV[tkzinterv]{NumInf}{\num{#2}}{#2}} ;
+ \draw ({\ValMinInterv},{-0.5*\useKV[repinterv]{Hauteur}}) node[inner sep={3*\useKV[repinterv]{EpTrait}},\IntervPosValeurs,text={\useKV[tkzinterv]{Couleur}},font={\useKV[repinterv]{Police}}] {\ifboolKV[tkzinterv]{NumInf}{\num{#2}}{#3}} ;
}{}%
}{}%
\IfBeginWith{\IntervType}{O}%
@@ -734,18 +740,18 @@
\draw[line width={2*\useKV[repinterv]{EpTrait}},{\useKV[tkzinterv]{Couleur}}] ({\ValMinInterv},0)|-++ ({0.2*\useKV[repinterv]{Hauteur}},{-0.5*\useKV[repinterv]{Hauteur}}) ;
}%
}%
- \IfStrEq{#3}{*}%
+ \IfStrEq{#4}{*}%
{}%
{%
\ifboolKV[tkzinterv]{AffValeurs}%
{%
\IfSubStr{\IntervPosValeurs}{above}
{%
- \draw ({\ValMaxInterv},{0.5*\useKV[repinterv]{Hauteur}}) node[inner sep={3*\useKV[repinterv]{EpTrait}},\IntervPosValeurs,text={\useKV[tkzinterv]{Couleur}},font={\useKV[repinterv]{Police}}] {\ifboolKV[tkzinterv]{NumSup}{\num{#3}}{#3}} ;
+ \draw ({\ValMaxInterv},{0.5*\useKV[repinterv]{Hauteur}}) node[inner sep={3*\useKV[repinterv]{EpTrait}},\IntervPosValeurs,text={\useKV[tkzinterv]{Couleur}},font={\useKV[repinterv]{Police}}] {\ifboolKV[tkzinterv]{NumSup}{\num{#4}}{#5}} ;
}{}%
\IfSubStr{\IntervPosValeurs}{below}
{%
- \draw ({\ValMaxInterv},{-0.5*\useKV[repinterv]{Hauteur}}) node[inner sep={3*\useKV[repinterv]{EpTrait}},\IntervPosValeurs,text={\useKV[tkzinterv]{Couleur}},font={\useKV[repinterv]{Police}}] {\ifboolKV[tkzinterv]{NumSup}{\num{#3}}{#3}} ;
+ \draw ({\ValMaxInterv},{-0.5*\useKV[repinterv]{Hauteur}}) node[inner sep={3*\useKV[repinterv]{EpTrait}},\IntervPosValeurs,text={\useKV[tkzinterv]{Couleur}},font={\useKV[repinterv]{Police}}] {\ifboolKV[tkzinterv]{NumSup}{\num{#4}}{#5}} ;
}{}%
}{}%
\IfEndWith{\IntervType}{O}%