summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/proflycee
diff options
context:
space:
mode:
Diffstat (limited to 'macros/latex/contrib/proflycee')
-rw-r--r--macros/latex/contrib/proflycee/doc/ProfLycee-doc.pdfbin478856 -> 487568 bytes
-rw-r--r--macros/latex/contrib/proflycee/doc/ProfLycee-doc.tex99
-rw-r--r--macros/latex/contrib/proflycee/tex/ProfLycee.sty73
3 files changed, 169 insertions, 3 deletions
diff --git a/macros/latex/contrib/proflycee/doc/ProfLycee-doc.pdf b/macros/latex/contrib/proflycee/doc/ProfLycee-doc.pdf
index 96aa6c8b8a..d5b650b1a6 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 48ef982e3d..b6f426cdbf 100644
--- a/macros/latex/contrib/proflycee/doc/ProfLycee-doc.tex
+++ b/macros/latex/contrib/proflycee/doc/ProfLycee-doc.tex
@@ -153,7 +153,7 @@
{\ttfamily c pierquet -- at -- outlook . fr}
\end{tabular}
}
-\date{Version 1.0.8 -- 16 Mars 2022}
+\date{Version 1.0.9 -- 24 Avril 2022}
\newcommand\Cle[1]{{\bfseries\sffamily\textlangle #1\textrangle}}
@@ -171,7 +171,7 @@
Quelques commandes pour des courbes \textit{lisses} avec gestion des extrema et des dérivées.
-Quelques commandes pour simuler une fenêtre de logiciel de calcul formel.
+Quelques commandes pour simuler une fenêtre de logiciel de calcul formel, en \TikZ.
Quelques environnements (\textsf{tcbox}) pour présenter du code \textsf{python} ou \textsf{pseudocode}.
@@ -179,6 +179,8 @@ Quelques environnements (\textsf{tcbox}) pour présenter des commandes dans un t
Un cartouche (\textsf{tcbox}) pour présenter des codes de partage \textsf{capytale}.
+Une commande pour tracer un pavé en droit, en \TikZ, avec création des nœuds liés aux sommets.
+
\vfill
\hrule
@@ -1366,8 +1368,101 @@ Le \textsf{cartouche} peut être \og cliquable \fg{} grâce à \ctex{href}.
\newpage
+\section{Pavé droit \og simple \fg}
+
+\subsection{Introduction}
+
+\begin{codeidee}
+L'idée est d'obtenir un pavé droit, dans un environnement \TikZ, avec les nœuds créés et nommés directement pour utilisation ultérieure.
+\end{codeidee}
+
+\subsection{Commandes}
+
+\begin{codetex}[listing only]
+...
+\begin{tikzpicture}[<options>]
+ \paveCF[<options>]
+ ...
+\end{tikzpicture}
+\end{codetex}
+
+\begin{codecles}
+Quelques \Cle{clés} sont disponibles pour cette commande :
+
+\begin{itemize}
+ \item \Cle{largeur} : largeur du pavé ;\hfill{}défaut \Cle{2}
+ \item \Cle{profondeur} : profondeur du pavé ;\hfill{}défaut \Cle{1}
+ \item \Cle{hauteur} : hauteur du pavé ;\hfill{}défaut \Cle{1.25}
+ \item \Cle{angle} : angle de fuite de la perspective ;\hfill{}défaut \Cle{30}
+ \item \Cle{fuite} : coefficient de fuite de la perspective ;\hfill{}défaut \Cle{0.5}
+ \item \Cle{sommets} : liste des sommets (avec délimiteur § !) ;\hfill{}défaut \Cle{A§B§C§D§E§F§G§H}
+ \item \Cle{epaisseur} : épaisseur des arêtes (en \textit{langage simplifié} \TikZ) ;\hfill{}défaut \Cle{thick}
+ \item \Cle{aff} : booléen pour afficher les noms des sommets ;\hfill{}défaut \Cle{false}
+ \item \Cle{plein} : booléen pour ne pas afficher les arêtes \textit{invisibles} ;\hfill{}défaut \Cle{false}
+ \item \Cle{cube} : booléen pour préciser qu'il s'agit d'un cube (seule la valeur \Cle{largeur} est util(isé)e).\hfill{}défaut \Cle{false}
+\end{itemize}
+\end{codecles}
+
+\begin{codetex}[tikz lower]
+%code tikz
+\pavePL
+\end{codetex}
+
+\begin{codetex}[tikz lower]
+%code tikz
+\pavePL[cube,largeur=3]
+\end{codetex}
+
+\begin{codeinfo}
+La ligne est de ce fait à insérer dans un environnement \TikZ, avec les options au choix pour cet environnement.
+
+Le code créé les nœeuds relatifs aux sommets, et les nomme comme les sommets, ce qui permet de les réutiliser pour éventuellement compléter la figure !
+\end{codeinfo}
+
+\subsection{Influence des paramètres}
+
+\begin{codetex}[listing only]
+\begin{tikzpicture}[line join=bevel]
+ \pavePL[aff,largeur=4,profondeur=3,hauteur=2,epaisseur={ultra thick}]
+\end{tikzpicture}
+\end{codetex}
+
+\medskip
+
+\begin{codesortie}
+\begin{tikzpicture}[line join=bevel]
+ \pavePL[aff,largeur=4,profondeur=3,hauteur=2,epaisseur={ultra thick}]
+\end{tikzpicture}
+\end{codesortie}
+
+\begin{codetex}[listing only]
+\begin{center}
+ \begin{tikzpicture}[line join=bevel]
+ \pavePL[plein,aff,largeur=7,profondeur=3.5,hauteur=4,sommets=Q§S§D§F§G§H§J§K]
+ \draw[thick,red,densely dotted] (G)--(J) ;
+ \draw[thick,blue,densely dotted] (K)--(H) ;
+ \end{tikzpicture}
+\end{center}
+\end{codetex}
+
+\medskip
+
+\begin{codesortie}
+\begin{center}
+ \begin{tikzpicture}[line join=bevel]
+ \pavePL[plein,aff,largeur=7,profondeur=3.5,hauteur=4,sommets=Q§S§D§F§G§H§J§K]
+ \draw[thick,red,densely dotted] (G)--(J) ;
+ \draw[thick,blue,densely dotted] (K)--(H) ;
+ \end{tikzpicture}
+\end{center}
+\end{codesortie}
+
+\newpage
+
\section{Historique}
+{\small \bverb|v1.0.9| :~~~~Ajout d'une commande \textsf{pavePL} pour créer des pavés droits (avec nœuds) en \TikZ
+
{\small \bverb|v1.0.8| :~~~~Ajout d'une commande \textsf{liencapytale} pour créer des cartouches de lien "comme capytale"
{\small \bverb|v1.0.7| :~~~~Ajout d'une option \textsf{build} pour placer certains fichiers auxiliaires dans un répertoire \textsf{./build}
diff --git a/macros/latex/contrib/proflycee/tex/ProfLycee.sty b/macros/latex/contrib/proflycee/tex/ProfLycee.sty
index c12aac3e59..71079843e3 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}[2022/03/16 - v1.0.8 - Aide pour l'utilisation de LaTeX en lycée]
+\ProvidesPackage{ProfLycee}[2022/04/24 - v1.0.9 - Aide pour l'utilisation de LaTeX en lycée]
+% 1.0.9 Ajout d'une commande pavePL pour un pave droit dans un environnement TikZ
% 1.0.8 Ajout d'une commande liencapytale pour créer un cartouche "comme sur capytale"
% 1.0.7 Option [build] pour placer les fichiers temporaires dans un répertoire build (désactivée par défaut)
% 1.0.6 Option [nominted] pour éviter de charger minted & nettoyage amssymb
@@ -674,4 +675,74 @@
{enhanced,size=fbox,on line,arc=3pt,colback=vertcapyt,colframe=vertcapyt,fontupper=\IfBooleanTF{#1}{\ttfamily}{\sffamily}\bfseries,colupper=white}%
{#3#2~{\scriptsize\faLink}}
+%============PaveDroitTikZ============= OK !!
+\defKV[paramspave]{%
+ largeur=\xdef\PFPaveLg{#1},%
+ profondeur=\xdef\PFPavePf{#1},%
+ hauteur=\xdef\PFPaveHt{#1},%
+ angle=\xdef\PFPaveAngl{#1},%
+ fuite=\xdef\PFPaveFuite{#1},%
+ sommets=\def\PFPaveSommets{#1},%
+ epaisseur=\xdef\PFPaveThick{#1}
+}
+\setKVdefault[paramspave]{%
+ aff=false,%
+ plein=false,%
+ largeur=2,%
+ profondeur=1,%
+ hauteur=1.25,%
+ angle=30,%
+ fuite=0.5,%
+ epaisseur=thick,%
+ sommets=A§B§C§D§E§F§G§H,%
+ cube=false
+}
+
+\newcommand\pavePL[1][]{%
+ \useKVdefault[paramspave]%
+ \setKV[paramspave]{#1}%
+ \ifboolKV[paramspave]{cube}
+ {\xdef\PFPavePf{\PFPaveLg}%
+ \xdef\PFPaveHt{\PFPaveLg}}
+ {}
+ \setsepchar{§}%
+ \readlist\PFListeSommets\PFPaveSommets
+ \itemtomacro\PFListeSommets[1]\PaveA
+ \itemtomacro\PFListeSommets[2]\PaveB
+ \itemtomacro\PFListeSommets[3]\PaveC
+ \itemtomacro\PFListeSommets[4]\PaveD
+ \itemtomacro\PFListeSommets[5]\PaveE
+ \itemtomacro\PFListeSommets[6]\PaveF
+ \itemtomacro\PFListeSommets[7]\PaveG
+ \itemtomacro\PFListeSommets[8]\PaveH
+ %les nœuds du pave
+ \coordinate (\PaveA) at (0,0) ;
+ \coordinate (\PaveB) at ({\PFPaveLg},0) ;
+ \coordinate (\PaveC) at ($(\PaveB) + ({\PFPaveAngl}:{\PFPaveFuite*\PFPavePf})$) ;
+ \coordinate (\PaveD) at ($(\PaveA) + ({\PFPaveAngl}:{\PFPaveFuite*\PFPavePf})$) ;
+ \coordinate (\PaveE) at ($(\PaveA) + (0,{\PFPaveHt})$) ;
+ \coordinate (\PaveF) at ($(\PaveB) + (0,{\PFPaveHt})$) ;
+ \coordinate (\PaveG) at ($(\PaveC) + (0,{\PFPaveHt})$) ;
+ \coordinate (\PaveH) at ($(\PaveD) + (0,{\PFPaveHt})$) ;
+ \ifboolKV[paramspave]{aff}
+ {\draw (\PaveA) node[below left] {\PaveA} ;
+ \draw (\PaveB) node[below right] {\PaveB} ;
+ \draw (\PaveC) node[above right] {\PaveC} ;
+ \ifboolKV[paramspave]{plein}
+ {}
+ {\draw (\PaveD) node[above left] {\PaveD} ;}
+ \draw (\PaveE) node[below left] {\PaveE} ;
+ \draw (\PaveF) node[below right] {\PaveF} ;
+ \draw (\PaveG) node[above right] {\PaveG} ;
+ \draw (\PaveH) node[above left] {\PaveH} ;}
+ {}%on affiche rien
+ \draw[\PFPaveThick] (\PaveA)--(\PaveB)--(\PaveF)--(\PaveE)--cycle
+ (\PaveB)--(\PaveC)--(\PaveG)--(\PaveF)--cycle
+ (\PaveG)--(\PaveH)--(\PaveE) ;
+ \ifboolKV[paramspave]{plein}
+ {}
+ {\draw[dashed,\PFPaveThick] (\PaveA)--(\PaveD)--(\PaveC)
+ (\PaveD)--(\PaveH) ;}
+}
+
\endinput \ No newline at end of file