From 5fcfa99e5deaf9c601ba9e338f07fbefdd5d4487 Mon Sep 17 00:00:00 2001 From: Norbert Preining Date: Mon, 7 Nov 2022 03:04:25 +0000 Subject: CTAN sync 202211070304 --- macros/latex/contrib/abraces/README.md | 2 +- macros/latex/contrib/abraces/abraces-doc.pdf | Bin 231121 -> 245502 bytes macros/latex/contrib/abraces/abraces-doc.tex | 11 ++++-- macros/latex/contrib/abraces/abraces.sty | 6 ++-- .../latex/contrib/proflycee/doc/ProfLycee-doc.pdf | Bin 716709 -> 717177 bytes .../latex/contrib/proflycee/doc/ProfLycee-doc.tex | 40 +++++++++------------ .../contrib/proflycee/doc/ProfLycee-old-doc.pdf | Bin 712275 -> 712614 bytes .../contrib/proflycee/doc/ProfLycee-old-doc.tex | 29 +++++++-------- .../latex/contrib/proflycee/tex/ProfLycee-old.sty | 34 +++++++++--------- macros/latex/contrib/proflycee/tex/ProfLycee.sty | 34 +++++++++--------- 10 files changed, 77 insertions(+), 79 deletions(-) (limited to 'macros/latex/contrib') diff --git a/macros/latex/contrib/abraces/README.md b/macros/latex/contrib/abraces/README.md index e5632dc131..b26a225d8c 100644 --- a/macros/latex/contrib/abraces/README.md +++ b/macros/latex/contrib/abraces/README.md @@ -1,4 +1,4 @@ -`abraces` 2021/03/31 v2.0 +`abraces` 2022/11/06 v2.1 ---------------------------------------- A package that provides a character key-driven interface to diff --git a/macros/latex/contrib/abraces/abraces-doc.pdf b/macros/latex/contrib/abraces/abraces-doc.pdf index 31cd8f8190..c0becaadde 100644 Binary files a/macros/latex/contrib/abraces/abraces-doc.pdf and b/macros/latex/contrib/abraces/abraces-doc.pdf differ diff --git a/macros/latex/contrib/abraces/abraces-doc.tex b/macros/latex/contrib/abraces/abraces-doc.tex index b0326d6ee8..970cf74eab 100644 --- a/macros/latex/contrib/abraces/abraces-doc.tex +++ b/macros/latex/contrib/abraces/abraces-doc.tex @@ -1,4 +1,4 @@ -% $Id: abraces-doc.tex,v 2.0 2021/03/31 00:00:00 wgrundlingh stable $ +% $Id: abraces-doc.tex,v 2.1 2022/11/06 00:00:00 wgrundlingh stable $ \RequirePackage{xcolor}% http://ctan.org/pkg/xcolor (required to "overload" color package) \documentclass[10pt]{ltxdockit}[2011/03/25] @@ -7,7 +7,7 @@ \usepackage{booktabs,shortvrb,amsmath,xfp} \MakeShortVerb{\|} -\rcsid{$Id: abraces.tex,v 2.0 2021/03/31 00:00:00 wgrundlingh stable $} +\rcsid{$Id: abraces.tex,v 2.1 2022/11/06 00:00:00 wgrundlingh stable $} %\setcounter{secnumdepth}{2} %\setcounter{tocdepth}{4} @@ -310,6 +310,13 @@ Thanks to Frank Mittlebach who stepped in and suggested an improvement in the or \section{Change log} \begin{itemize} + \item v2.1 (2022-11-06) Minor update + + \begin{itemize} + \item + \lstinline|\Repeat| is replaced by something more obscure (\lstinline|\Repeat@br@ces|) to avoid other package conflicts. + \end{itemize} + \item v2.0 (2021-03-31) Major update \begin{itemize} diff --git a/macros/latex/contrib/abraces/abraces.sty b/macros/latex/contrib/abraces/abraces.sty index 68dbc7e8eb..af146826ce 100644 --- a/macros/latex/contrib/abraces/abraces.sty +++ b/macros/latex/contrib/abraces/abraces.sty @@ -16,7 +16,7 @@ % This work consists of the file abraces.sty. \ProvidesPackage{abraces}% http://ctan.org/pkg/abraces - [2021/03/31 v2.0 Arbitrary and asymmetric braces] + [2022/11/06 v2.1 Arbitrary and asymmetric braces] \RequirePackage{xparse} @@ -63,7 +63,7 @@ % Repeat command n times? % http://tex.stackexchange.com/q/16189/5764 \ExplSyntaxOn -\cs_new_eq:NN \Repeat \prg_replicate:nn +\cs_new_eq:NN \Repeat@br@ces \prg_replicate:nn %FMi \cs_new_eq:NN \TrimArgSpaces \tl_trim_spaces:n % only needed when ^{...} should be text %FMi @@ -324,7 +324,7 @@ %FMi %\newcommand{\@firstofone@go}[1]{#1\@genbrace}% \newcommand{\@firstofone@len}[1]{\hb@xt@#1{\@@bfil}\@genbrace}% -\newcommand{\@repeat@num@times}[2]{\Repeat{#1}{\@genbrace#2\@nnil}\@genbrace}% +\newcommand{\@repeat@num@times}[2]{\Repeat@br@ces{#1}{\@genbrace#2\@nnil}\@genbrace}% \newcommand{\@genbrace}[1]{% \ifx\@nnil#1\relax\else diff --git a/macros/latex/contrib/proflycee/doc/ProfLycee-doc.pdf b/macros/latex/contrib/proflycee/doc/ProfLycee-doc.pdf index 73b1ccc4bf..f59266ae1d 100644 Binary files a/macros/latex/contrib/proflycee/doc/ProfLycee-doc.pdf and b/macros/latex/contrib/proflycee/doc/ProfLycee-doc.pdf differ diff --git a/macros/latex/contrib/proflycee/doc/ProfLycee-doc.tex b/macros/latex/contrib/proflycee/doc/ProfLycee-doc.tex index 0f52e74b93..d4070a4559 100644 --- a/macros/latex/contrib/proflycee/doc/ProfLycee-doc.tex +++ b/macros/latex/contrib/proflycee/doc/ProfLycee-doc.tex @@ -6,22 +6,10 @@ \documentclass{article} \usepackage[french]{babel} -\usepackage{iftex,ifpdf,ifxetex,ifluatex} -\ifpdftex - \usepackage[utf8]{inputenc} - \usepackage[T1]{fontenc} - \usepackage[upright]{fourier} - \usepackage[scaled=0.875]{helvet} - \renewcommand\ttdefault{lmtt} - \usepackage[scaled=0.875]{cabin} - \usepackage{amsmath,amssymb} -\fi -\ifluatex - \usepackage{mathtools} - \usepackage{lualatex-math} - \usepackage{luatexbase} - \usepackage[math-style=french,bold-style=ISO]{fourier-otf} -\fi +\usepackage{mathtools} +\usepackage{lualatex-math} +\usepackage{luatexbase} +\usepackage[math-style=french,bold-style=ISO]{fourier-otf} \usepackage{ProfLycee} \usepackage{tkz-euclide} \usetikzlibrary{hobby} @@ -74,8 +62,8 @@ \setlength{\parindent}{0pt} \definecolor{LightGray}{gray}{0.9} -\def\PLversion{2.0.0} -\def\PLdate{4 Novembre 2022} +\def\PLversion{2.0.1} +\def\PLdate{6 Novembre 2022} \tcbset{vignettes/.style={% nobeforeafter,box align=base,boxsep=0pt,enhanced,sharp corners=all,rounded corners=southeast,% @@ -125,9 +113,9 @@ %petite vignette màj \newcommand\cmaj[1]{% - \IfStrEq{#1}{\PLversion}% + %\IfStrEq{#1}{\PLversion}% {\tcbox[vignetteMaJ]{#1}\xspace}% - {}% + %{}% } %gestion de la fenêtre v2 directement dans le tikzpicture @@ -340,7 +328,7 @@ Le {package} \ctex{ProfLycee} charge les {packages} : \item \ctex{xparse}, \ctex{xkeyval}, \ctex{xstring}, \ctex{simplekv} ; \item \ctex{listofitems}, \ctex{xintexpr} , \ctex{xintbinhex} et \ctex{xintgcd}; \item \ctex{tabularray}, \ctex{fontawesome5}, \ctex{tcolorbox} ; - \item \ctex{piton} et \ctex{pythontex} + \item \ctex{piton} (uniquement si compilation en \LuaLaTeX{} !) et \ctex{pythontex} \end{itemize} \end{codeinfo} @@ -550,7 +538,7 @@ Elles sont présentées de manière \textit{succincte}, mais elles sont présent %présentation type calcul formel, dans un environnement tikz \CalculFormelParametres[] -\CalculFormelLigne+[]{}{} +\CalculFormelLigne[]{}{} \end{codetex} \begin{codetex}[listing only] @@ -1485,7 +1473,7 @@ def trace_parabole_tableaux(): \subsection{Introduction} \begin{codeinfo} -\cmaj{2.0.0} Le package \ctex{piton} permet d'insérer du code Python avec une coloration syntaxique en utilisant la bibliothèque \textsf{Lua LPEG}. +\cmaj{2.0.0} Le package \ctex{piton} (compatible uniquement avec une compilation en \LuaLaTeX{} !) permet d'insérer du code Python avec une coloration syntaxique en utilisant la bibliothèque \textsf{Lua LPEG}. \smallskip @@ -1494,6 +1482,8 @@ En \textit{partenariat} avec \ctex{tcolorbox}, on peut avoir une présentation d \begin{codeattention} Le package \ctex{piton} nécessite donc obligatoirement l’emploi de \LuaLaTeX{} ! + +\cmaj{2.0.1} Ce package n'est chargé que si la compilation détectée est en \LuaLaTeX{} ! \end{codeattention} \subsection{Présentation de code Python} @@ -5248,7 +5238,9 @@ La grille, créée en \TikZ, est portée par le rectangle de \og coins \fg{} $(0 \part{Historique} -{\small \bverb|2022N.a|~:~~~~Refonte du code source avec modification des commandes} +{\small \bverb|v 2.0.1|~:~~~~Chargement du package \textsf{piton} uniquement si compilation en \LuaLaTeX{} (page \pageref{pythonpiton}) + +{\small \bverb|v 2.0.0|~:~~~~Refonte du code source avec modification des commandes} {\small \bverb| |~:~~~~Refonte de la documentation} diff --git a/macros/latex/contrib/proflycee/doc/ProfLycee-old-doc.pdf b/macros/latex/contrib/proflycee/doc/ProfLycee-old-doc.pdf index d851c1652d..e88f2d146d 100644 Binary files a/macros/latex/contrib/proflycee/doc/ProfLycee-old-doc.pdf and b/macros/latex/contrib/proflycee/doc/ProfLycee-old-doc.pdf differ diff --git a/macros/latex/contrib/proflycee/doc/ProfLycee-old-doc.tex b/macros/latex/contrib/proflycee/doc/ProfLycee-old-doc.tex index 3ef3b51a6f..cb42767b37 100644 --- a/macros/latex/contrib/proflycee/doc/ProfLycee-old-doc.tex +++ b/macros/latex/contrib/proflycee/doc/ProfLycee-old-doc.tex @@ -6,20 +6,11 @@ \documentclass{article} \usepackage[french]{babel} -\usepackage{iftex,ifpdf,ifxetex,ifluatex} -\ifpdftex - \usepackage[utf8]{inputenc} - \usepackage[T1]{fontenc} - \usepackage[upright]{fourier} - \usepackage[scaled=0.875]{helvet} - \renewcommand\ttdefault{lmtt} - \usepackage[scaled=0.875]{cabin} - \usepackage{amsmath,amssymb} -\fi -\ifluatex - \RequirePackage[math-style=french,bold-style=ISO]{fourier-otf} -\fi -\usepackage[build]{ProfLycee} +\usepackage{mathtools} +\usepackage{lualatex-math} +\usepackage{luatexbase} +\usepackage[math-style=french,bold-style=ISO]{fourier-otf} +\usepackage{ProfLycee-old} \usepackage{tkz-euclide} \usetikzlibrary{hobby} \usepackage[group-minimum-digits=4]{siunitx} @@ -71,8 +62,8 @@ \setlength{\parindent}{0pt} \definecolor{LightGray}{gray}{0.9} -\def\PLversion{1.3.7} -\def\PLdate{2 Novembre 2022} +\def\PLversion{1.3.8} +\def\PLdate{6 Novembre 2022} \tcbset{vignettes/.style={% nobeforeafter,box align=base,boxsep=0pt,enhanced,sharp corners=all,rounded corners=southeast,% @@ -1428,7 +1419,7 @@ def trace_parabole_tableaux(): \subsection{Introduction} \begin{codeinfo} -Le package \ctex{piton} permet d'insérer du code Python avec une coloration syntaxique en utilisant la bibliothèque \textsf{Lua LPEG}. +Le package \ctex{piton} (compatible uniquement avec une compilation en \LuaLaTeX{} !) permet d'insérer du code Python avec une coloration syntaxique en utilisant la bibliothèque \textsf{Lua LPEG}. \smallskip @@ -1437,6 +1428,8 @@ En \textit{partenariat} avec \ctex{tcolorbox}, on peut avoir une présentation d \begin{codeattention} Le package \ctex{piton} nécessite donc obligatoirement l’emploi de \LuaLaTeX{} ! + +Ce package n'est chargé que si la compilation détectée est en \LuaLaTeX{} ! \end{codeattention} \subsection{Présentation de code Python} @@ -5190,6 +5183,8 @@ La grille, créée en \TikZ, est portée par le rectangle de \og coins \fg{} $(0 \part{Historique} +{\small \bverb|v1.3.8|~:~~~~Chargement du package \textsf{piton} uniquement si compilation en \LuaLaTeX{} (page \pageref{pythonpiton}) + {\small \bverb|v1.3.7|~:~~~~Commandes pour du code python via piton, en compilation \LuaLaTeX{} (page \pageref{pythonpiton}) {\small \bverb| |~:~~~~Corrections et modifications mineures de la documentation diff --git a/macros/latex/contrib/proflycee/tex/ProfLycee-old.sty b/macros/latex/contrib/proflycee/tex/ProfLycee-old.sty index 43de82fa82..dc3c35fdd7 100644 --- a/macros/latex/contrib/proflycee/tex/ProfLycee-old.sty +++ b/macros/latex/contrib/proflycee/tex/ProfLycee-old.sty @@ -3,7 +3,8 @@ % or later, see http://www.latex-project.org/lppl.txtf \NeedsTeXFormat{LaTeX2e} -\ProvidesPackage{ProfLycee-old}[2022/11/02 v1.3.7 - Aide pour l'utilisation de LaTeX en lycee] +\ProvidesPackage{ProfLycee-old}[2022/11/06 v1.3.8 - Aide pour l'utilisation de LaTeX en lycee] +% 1.3.8 Chargement de Piton uniquement en cas de compilation en lua % 1.3.7 Ajout d'un environnement simplifié pour du code python via piton % 1.3.6 Ajout d'un "générateur" de trinômes (ou mise en forme basique) % 1.3.5 Correction de bugs sur les calculs de probas (loi géométrique) @@ -98,9 +99,8 @@ %tcolorbox \RequirePackage[most]{tcolorbox} %divers -\RequirePackage{ifluatex} +\RequirePackage{iftex} %python -\RequirePackage{piton} \RequirePackage{fancyvrb} \RequirePackage[gobble=auto]{pythontex} \setpythontexlistingenv{pythont} %pour ne pas télescoper lstlistings (?) @@ -586,19 +586,21 @@ Alignement=center,% Lignes=true } - -\NewPitonEnvironment{envcodepiton}{ O{} }% - {% - \useKVdefault[envpiton]% - \setKV[envpiton]{#1}% on paramètres les nouvelles clés et on les simplifie - \ifboolKV[envpiton]{Lignes}%si lignes=true - {\PitonOptions{left-margin=12.75pt,line-numbers}}% - {\PitonOptions{}}% - \begin{tcolorbox}[stylepythontex,leftupper=8pt,colframe=Green,colback=ForestGreen!5,width=\CODPITlargeur,fontlower=\small,\CODPITalign] - }% - {% - \end{tcolorbox}% - } +\ifluatex + \RequirePackage{piton} + \NewPitonEnvironment{envcodepiton}{ O{} }% + {% + \useKVdefault[envpiton]% + \setKV[envpiton]{#1}% on paramètres les nouvelles clés et on les simplifie + \ifboolKV[envpiton]{Lignes}%si lignes=true + {\PitonOptions{left-margin=12.75pt,line-numbers}}% + {\PitonOptions{}}% + \begin{tcolorbox}[stylepythontex,leftupper=8pt,colframe=Green,colback=ForestGreen!5,width=\CODPITlargeur,fontlower=\small,\CODPITalign] + }% + {% + \end{tcolorbox}% + } +\fi %=========PSEUDOCODE=========== OK !! %language pseudocode listings diff --git a/macros/latex/contrib/proflycee/tex/ProfLycee.sty b/macros/latex/contrib/proflycee/tex/ProfLycee.sty index 7b7ba14152..4e32d0963f 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/11/04 2.0.0 Aide pour l'utilisation de LaTeX en lycee] +\ProvidesPackage{ProfLycee}[2022/11/06 2.0.1 Aide pour l'utilisation de LaTeX en lycee] +% 2.0.1 Chargement de piton uniquement si lua... % 2.0.0 Refonte des commandes, des options, et de la documentation !!! % ------------------------------------------------------------------ % 1.3.7 Ajout d'un environnement simplifié pour du code python via piton @@ -100,9 +101,8 @@ %tcolorbox \RequirePackage[most]{tcolorbox} %divers -\RequirePackage{ifluatex} +\RequirePackage{iftex} %python -\RequirePackage{piton} \RequirePackage{fancyvrb} \RequirePackage[gobble=auto]{pythontex} \setpythontexlistingenv{pythont} %pour ne pas télescoper lstlistings (?) @@ -590,19 +590,21 @@ Alignement=center,% Lignes=true } - -\NewPitonEnvironment{CodePiton}{ O{} }% - {% - \useKVdefault[envpiton]% - \setKV[envpiton]{#1}% on paramètres les nouvelles clés et on les simplifie - \ifboolKV[envpiton]{Lignes}%si lignes=true - {\PitonOptions{left-margin=12.75pt,line-numbers}}% - {\PitonOptions{}}% - \begin{tcolorbox}[stylepythontex,leftupper=8pt,colframe=Green,colback=ForestGreen!5,width=\CODPITlargeur,fontlower=\small,\CODPITalign] - }% - {% - \end{tcolorbox}% - } +\ifluatex + \RequirePackage{piton} + \NewPitonEnvironment{CodePiton}{ O{} }% + {% + \useKVdefault[envpiton]% + \setKV[envpiton]{#1}% on paramètres les nouvelles clés et on les simplifie + \ifboolKV[envpiton]{Lignes}%si lignes=true + {\PitonOptions{left-margin=12.75pt,line-numbers}}% + {\PitonOptions{}}% + \begin{tcolorbox}[stylepythontex,leftupper=8pt,colframe=Green,colback=ForestGreen!5,width=\CODPITlargeur,fontlower=\small,\CODPITalign] + }% + {% + \end{tcolorbox}% + } +\fi %=========PSEUDOCODE=========== OK !! %language pseudocode listings -- cgit v1.2.3