From 26fc2b0d1976ae5b5e2c67e78db6aae63b123c93 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Wed, 30 Nov 2022 20:31:02 +0000 Subject: proflycee (30nov22) git-svn-id: svn://tug.org/texlive/trunk@65151 c570f23f-e606-0410-a88d-b1316a301751 --- .../doc/latex/proflycee/ProfLycee-doc.pdf | Bin 738301 -> 744621 bytes .../doc/latex/proflycee/ProfLycee-doc.tex | 60 ++++++++++++++++++++- .../texmf-dist/tex/latex/proflycee/ProfLycee.sty | 25 +++++---- 3 files changed, 72 insertions(+), 13 deletions(-) diff --git a/Master/texmf-dist/doc/latex/proflycee/ProfLycee-doc.pdf b/Master/texmf-dist/doc/latex/proflycee/ProfLycee-doc.pdf index d3d0cb3baaa..8c656653b0e 100644 Binary files a/Master/texmf-dist/doc/latex/proflycee/ProfLycee-doc.pdf and b/Master/texmf-dist/doc/latex/proflycee/ProfLycee-doc.pdf differ diff --git a/Master/texmf-dist/doc/latex/proflycee/ProfLycee-doc.tex b/Master/texmf-dist/doc/latex/proflycee/ProfLycee-doc.tex index c4bc9a40169..a084d8c5e04 100644 --- a/Master/texmf-dist/doc/latex/proflycee/ProfLycee-doc.tex +++ b/Master/texmf-dist/doc/latex/proflycee/ProfLycee-doc.tex @@ -62,8 +62,8 @@ \setlength{\parindent}{0pt} \definecolor{LightGray}{gray}{0.9} -\def\PLversion{2.0.5} -\def\PLdate{20 Novembre 2022} +\def\PLversion{2.0.6} +\def\PLdate{30 Novembre 2022} \tcbset{vignettes/.style={% nobeforeafter,box align=base,boxsep=0pt,enhanced,sharp corners=all,rounded corners=southeast,% @@ -2271,6 +2271,58 @@ Le \textsf{cartouche} peut être \og cliquable \fg{} grâce à \ctex{href}. \newpage +\section{Présentation de code \LaTeX}\label{prescode} + +\subsection{Introduction} + +\begin{codeidee} +\cmaj{2.0.6} L'idée est de proposer un environnement pour présenter du code \LaTeX. Ce n'est pas forcément lié à l'enseignement en Lycée mais pourquoi pas ! + +\smallskip + +Il s'agir d'un environnement créé en \ctex{tcolorbox}, et utilisant la présentation \textit{basique} de code via \ctex{listings}. +\end{codeidee} + +\subsection{Commandes} + +\begin{codetex}[listing only] +\begin{PresentationCode}[]{} +... +\end{PresentationCode} +\end{codetex} + +\begin{codecles} +Peu de personnalisations pour ces commandes : + +\begin{itemize} + \item le premier argument, optionnel, permet de préciser la \textit{couleur} de la présentation ;\hfill{}défaut \Cle{ForestGreen} + \item le second, mandataire, correspond aux éventuelles options liées à la \ctex{tcolorbox}. +\end{itemize} +\end{codecles} + +\begin{codeinfo} +Il est à noter que, même dans le cas d'option vide pour la \ctex{tcolorbox}, les \ctex{\{\}} sont nécessaires. + +\smallskip + +On peut par exemple utiliser l'option \Cle{listing only} pour ne présenter \textit{que} le code source. +\end{codeinfo} + +\begin{codetex}[] +\begin{PresentationCode}{} +\xdef\ValAleaA{\fpeval{randint(1,100)}} +\xdef\ValAleaB{\fpeval{randint(1,100)}} + +Avec $A=\ValAleaA$ et $B=\ValAleaB$, on a $A\times B=\inteval{\ValAleaA * \ValAleaB}$ +\end{PresentationCode} + +\begin{PresentationCode}[DarkBlue]{} +On peut faire beaucoup de choses avec \LaTeX{} ! +\end{PresentationCode} +\end{codetex} + +\pagebreak + \part{Outils pour la géométrie} \section{Pavé droit \og simple \fg}\label{pave} @@ -5417,6 +5469,10 @@ La grille, créée en \TikZ, est portée par le rectangle de \og coins \fg{} $(0 \part{Historique} +{\small \bverb|v 2.0.6|~:~~~~Changement de taille de la police des codes Python (page \pageref{pythonsimple}) + +{\small \bverb| |~:~~~~Ajout d'un environnement pour présenter du code \LaTeX{} (page \pageref{prescode}) + {\small \bverb|v 2.0.5|~:~~~~Correction d'un bug avec les calculs de suites récurrentes (page \pageref{calcrecurr}) {\small \bverb|v 2.0.4|~:~~~~Ajout d'une commande pour une présentation de solution par TVI (page \pageref{solutiontvi}) diff --git a/Master/texmf-dist/tex/latex/proflycee/ProfLycee.sty b/Master/texmf-dist/tex/latex/proflycee/ProfLycee.sty index 88024246143..fbd1a83b549 100644 --- a/Master/texmf-dist/tex/latex/proflycee/ProfLycee.sty +++ b/Master/texmf-dist/tex/latex/proflycee/ProfLycee.sty @@ -3,7 +3,8 @@ % or later, see http://www.latex-project.org/lppl.txtf \NeedsTeXFormat{LaTeX2e} -\ProvidesPackage{ProfLycee}[2022/11/20 2.0.5 Aide pour l'utilisation de LaTeX en lycee] +\ProvidesPackage{ProfLycee}[2022/11/30 2.0.6 Aide pour l'utilisation de LaTeX en lycee] +% 2.0.6 Quelques modifications sur les codes python (taille police et marges)... % 2.0.5 Correction d'un bug avec les calculs en valeurx exactes avec les suites récurrentes... % 2.0.4 Ajout d'une commande pour présenter un balayage (TVI) + calculs suites récurrentes % 2.0.3Correction d'un bug avec les arbres 3x3 @@ -61,10 +62,11 @@ \ProcessOptions\relax %------Packages utiles +\RequirePackage{mathtools} +%\RequirePackage{amssymb} \RequirePackage[table,svgnames]{xcolor}%Gestion des couleurs \RequirePackage{tikz} \RequirePackage{tkz-tab} -\RequirePackage{mathtools} \RequirePackage{pgf,pgffor} \RequirePackage{ifthen} \RequirePackage{xparse} @@ -85,7 +87,7 @@ reset-text-series = false, reset-text-shape = false,% text-family-to-math = true, text-series-to-math = true,% output-decimal-marker={,},% - group-minimum-digits=4% +% group-minimum-digits=4% }% \RequirePackage{fontawesome5} \if@csvii @@ -138,7 +140,7 @@ fonttitle=\color{#1!90!black}\itshape\ttfamily\footnotesize,% listing options={% style=tcblatex,basicstyle=\footnotesize\ttfamily,% - keywordstyle=\bfseries\color{Blue},tabsize=4,% + keywordstyle=\bfseries\color{Blue},tabsize=2,% },% #2 } @@ -472,14 +474,14 @@ \tcbset{pytmintedno/.style={% listing engine=minted,minted style=colorful, minted language=python,listing only, - minted options={tabsize=4,fontsize=\small,autogobble}, + minted options={tabsize=4,fontsize=\footnotesize,autogobble}, } } \tcbset{pytminted/.style={% listing engine=minted,minted style=colorful, minted language=python,listing only, - minted options={tabsize=4,fontsize=\small,autogobble,xleftmargin=16pt,linenos,numbersep=10pt}, + minted options={tabsize=4,fontsize=\footnotesize,autogobble,xleftmargin=16pt,linenos,numbersep=10pt}, } } @@ -521,8 +523,8 @@ commentstyle = \color{gray}\itshape, stringstyle = \color{red!75}, numberstyle = \scriptsize\ttfamily\color{Green}, - aboveskip = 4pt, - belowskip = 1pt, + aboveskip = 0pt, + belowskip = 0pt, tabsize = 4, showstringspaces = false, columns = fullflexible, @@ -545,8 +547,8 @@ commentstyle = \color{gray}\itshape, stringstyle = \color{red!75}, numberstyle = \scriptsize\ttfamily\color{Green}, - aboveskip = 4pt, - belowskip = 1pt, + aboveskip = 0pt, + belowskip = 0pt, tabsize = 4, showstringspaces = false, columns = fullflexible, @@ -621,7 +623,7 @@ \ifboolKV[envpiton]{Lignes}%si lignes=true {\PitonOptions{left-margin=auto,line-numbers}}% {\PitonOptions{}}% - \begin{tcolorbox}[stylepythontex,leftupper=8pt,colframe=Green,colback=ForestGreen!5,width=\CODPITlargeur,fontlower=\small,\CODPITalign] + \begin{tcolorbox}[stylepythontex,leftupper=8pt,colframe=Green,colback=ForestGreen!5,width=\CODPITlargeur,fontupper=\footnotesize,fontlower=\footnotesize,\CODPITalign] }% {% \end{tcolorbox}% @@ -1178,6 +1180,7 @@ \draw ({-0.707*\PLcerclerayon},0) node[above=2pt,PLval] {$-\tfrac{\sqrt{2}}{2}$} ; \draw (0,{0.707*\PLcerclerayon}) node[right=2pt,PLval] {$\tfrac{\sqrt{2}}{2}$} ; \draw (0,{-0.707*\PLcerclerayon}) node[right=2pt,PLval] {$-\tfrac{\sqrt{2}}{2}$} ; + %\draw[\PLcerclethick] (0,0) circle[radius=\PLcerclerayon] ; %on retrace par dessus ? }% {} %valeurs remarquables en dernier -- cgit v1.2.3