diff options
author | Norbert Preining <norbert@preining.info> | 2024-06-04 03:03:30 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2024-06-04 03:03:30 +0000 |
commit | 90993506c261625fc3372503230dcd1c6d0b6f49 (patch) | |
tree | bb8957809f333d66b16ca7904f65065429c48624 /macros/latex | |
parent | e83ddb0c0c40cddccb9e35b6a1f83b3a70fc2b3d (diff) |
CTAN sync 202406040303
Diffstat (limited to 'macros/latex')
-rw-r--r-- | macros/latex/contrib/customenvs/doc/customenvs-doc-en.pdf | bin | 183345 -> 183663 bytes | |||
-rw-r--r-- | macros/latex/contrib/customenvs/doc/customenvs-doc-en.tex | 6 | ||||
-rw-r--r-- | macros/latex/contrib/customenvs/doc/customenvs-doc-fr.pdf | bin | 1465447 -> 1466206 bytes | |||
-rw-r--r-- | macros/latex/contrib/customenvs/doc/customenvs-doc-fr.tex | 12 | ||||
-rw-r--r-- | macros/latex/contrib/customenvs/tex/customenvs.sty | 28 | ||||
-rw-r--r-- | macros/latex/contrib/proflycee/doc/ProfLycee-doc.pdf | bin | 1783164 -> 1788630 bytes | |||
-rw-r--r-- | macros/latex/contrib/proflycee/tex/ProfLycee.sty | 4 | ||||
-rw-r--r-- | macros/latex/contrib/proflycee/tex/proflycee-tools-analyse.tex | 11 |
8 files changed, 45 insertions, 16 deletions
diff --git a/macros/latex/contrib/customenvs/doc/customenvs-doc-en.pdf b/macros/latex/contrib/customenvs/doc/customenvs-doc-en.pdf Binary files differindex 58cbad4858..d0d64760c9 100644 --- a/macros/latex/contrib/customenvs/doc/customenvs-doc-en.pdf +++ b/macros/latex/contrib/customenvs/doc/customenvs-doc-en.pdf diff --git a/macros/latex/contrib/customenvs/doc/customenvs-doc-en.tex b/macros/latex/contrib/customenvs/doc/customenvs-doc-en.tex index ac637640e4..3e4ce0aa72 100644 --- a/macros/latex/contrib/customenvs/doc/customenvs-doc-en.tex +++ b/macros/latex/contrib/customenvs/doc/customenvs-doc-en.tex @@ -34,8 +34,8 @@ \usepackage[margin=1.5cm]{geometry} \setlength{\parindent}{0pt} -\def\TPversion{0.1.6} -\def\TPdate{28/05/2024} +\def\TPversion{0.1.7} +\def\TPdate{03/06/2024} \usepackage{tcolorbox} \sethlcolor{lightgray!25} \NewDocumentCommand\MontreCode{ m }{% @@ -111,6 +111,8 @@ \section{History} +\verb|v0.1.7|~:~~~~Small patch for \textsf{Vignette} macro (see \texttt{[fr]} documentation) + \verb|v0.1.6|~:~~~~Small patchs for \textsf{displayskip} + \textsf{pas-tableur} (see \texttt{[fr]} documentation) \verb|v0.1.5|~:~~~~New macros for boxes with \textsf{tcolorbox} (see \texttt{[fr]} documentation) diff --git a/macros/latex/contrib/customenvs/doc/customenvs-doc-fr.pdf b/macros/latex/contrib/customenvs/doc/customenvs-doc-fr.pdf Binary files differindex becb1b389b..b128076999 100644 --- a/macros/latex/contrib/customenvs/doc/customenvs-doc-fr.pdf +++ b/macros/latex/contrib/customenvs/doc/customenvs-doc-fr.pdf diff --git a/macros/latex/contrib/customenvs/doc/customenvs-doc-fr.tex b/macros/latex/contrib/customenvs/doc/customenvs-doc-fr.tex index 5306af12c6..2f74296c5d 100644 --- a/macros/latex/contrib/customenvs/doc/customenvs-doc-fr.tex +++ b/macros/latex/contrib/customenvs/doc/customenvs-doc-fr.tex @@ -39,8 +39,8 @@ \usepackage[margin=1.5cm]{geometry} \setlength{\parindent}{0pt} -\def\TPversion{0.1.6} -\def\TPdate{28 mai 2024} +\def\TPversion{0.1.7} +\def\TPdate{03 juin 2024} \usepackage{tcolorbox} \tcbuselibrary{listingsutf8} \newtcblisting{DemoCode}[1]{% @@ -149,6 +149,8 @@ \section{Historique} +\verb|v0.1.7|~:~~~~Possibilité de créer des vignettes \textsf{perso} + \verb|v0.1.6|~:~~~~Patch \textsf{displayskip} + Patches \textsf{pas-tableur} \verb|v0.1.5|~:~~~~La librairie \texttt{babel} de \TikZ\ n'est plus chargée @@ -1221,6 +1223,12 @@ En ligne \CircledNumber{1} avec texte après. \end{DemoCode} \begin{DemoCode}{} +%vignette type tableur +\AffVignette[Type=perso/CRYPT,Couleur=blue!50!teal,Echelle=0.5] + {vignette personnalisée} +\end{DemoCode} + +\begin{DemoCode}{} %création d'une macro personnelle \NewDocumentCommand\VignetteTableur{ m }{% \AffVignette*[Type=sheet,Couleur=green!50!black,Police=\footnotesize\sffamily] diff --git a/macros/latex/contrib/customenvs/tex/customenvs.sty b/macros/latex/contrib/customenvs/tex/customenvs.sty index a659568baf..e63ea57f84 100644 --- a/macros/latex/contrib/customenvs/tex/customenvs.sty +++ b/macros/latex/contrib/customenvs/tex/customenvs.sty @@ -3,9 +3,10 @@ % source pencil...: CC-BY-SA 4.0 https://tex.stackexchange.com/questions/504092/replicating-a-fancy-bordered-text-style-in-latex/504145#504145 \NeedsTeXFormat{LaTeX2e} -\ProvidesPackage{customenvs}[2024/05/28 0.1.6 Custom classic environments] +\ProvidesPackage{customenvs}[2024/06/03 0.1.7 Custom classic environments] %====HISTORIQUE +% v 0.1.7 Style perso pour les vignettes % v 0.1.6 DisplaySkip patch + Patchs pas-tableur % v 0.1.5 Boxes for exam title + circled numbers + Vignettes + Small simple boxes creation % v 0.1.4 Commande (en/fr) pour du texte dans une boîte arrondie, de hauteur 'figée' + 'Chat' SMS @@ -1694,8 +1695,8 @@ } } -\defKV[cevignette]{Type=\def\cevignettetype{#1},Couleur=\def\cevignettecolor{#1},Police=\def\cevignettefont{#1}} -\setKVdefault[cevignette]{Type={},Couleur={darkgray},Police=\footnotesize} +\defKV[cevignette]{Type=\def\cevignettetype{#1},Couleur=\def\cevignettecolor{#1},Police=\def\cevignettefont{#1},Echelle=\def\cevignettescaleperso{#1}} +\setKVdefault[cevignette]{Type={},Couleur={darkgray},Police=\footnotesize,Echelle=0.55} \NewDocumentCommand\AffVignette{ s O{} m }{% \restoreKV[cevignette]% @@ -1712,7 +1713,14 @@ {shell}{\tcbox[colframe=\cevignettecolor,fontupper={\cevignettefont\ttfamily},cevignetteshell]{\IfBooleanTF{#1}{\NoAutoSpacing}{}#3}}% {tex}{\tcbox[colframe=\cevignettecolor,fontupper={\cevignettefont\ttfamily},cevignettelatex]{\IfBooleanTF{#1}{\NoAutoSpacing}{}#3}}% {sheet}{\tcbox[colframe=\cevignettecolor,fontupper={\cevignettefont},cevignettetableur]{\IfBooleanTF{#1}{\NoAutoSpacing}{}#3}}% - }\relax% + }% + \IfSubStr{\cevignettetype}{perso}% + {% + \StrBehind{\cevignettetype}{/}[\cevignettelabelperso]% + \tcbox[colframe=\cevignettecolor,fontupper={\cevignettefont},cevignettes,left=6pt,coltitle=white,colback=white,underlay={\begin{tcbclipinterior}\fill[fill=tcbcolframe!33]($(interior.south west)$) rectangle node[rotate=90,font=\tiny\sffamily,tcbcolframe!75!black]{\scalebox{\cevignettescaleperso}[0.75]{\textbf{\cevignettelabelperso}}} ($(interior.north west)+(5pt,0pt)$);\end{tcbclipinterior}}]{\IfBooleanTF{#1}{\NoAutoSpacing}{}#3}% + }% + {}% + \relax% } %====DisplaySkip [en] @@ -1821,11 +1829,11 @@ \RequirePackage{pas-tableur} \renewcommand{\pastableur@grid}[4] % #1 : width, #2 : name, #3 : numline, #4 : coord. - {% - \node[celempty,below,minimum height=\line@height,minimum width=#1] (cell#2-#3) at (#4) {};% - \draw[graySepCell] ($(cell#2-#3.south west)+(0.2pt,0)$) -- (cell#2-#3.south east) -- ($(cell#2-#3.north east)+(0,-0.2pt)$);% - } - +{% + \node[celempty,below,minimum height=\line@height,minimum width=#1] (cell#2-#3) at (#4) {};% + \draw[graySepCell] ($(cell#2-#3.south west)+(0.2pt,0)$) -- (cell#2-#3.south east) -- ($(cell#2-#3.north east)+(0,-0.2pt)$);% +} + \renewcommand{\pastab@draw@cell}[5] % #1 : \first@width, #2 : \first@name, #3 : 0=colonne1 / 1=autres colonnes / % 2 = ligne 1, #4 : coord., #5 : contenu @@ -1906,7 +1914,7 @@ \NewDocumentCommand\colonnetxt{ s O{} m D<>{1} m }{%3=lettre colonne,%5=liste \IfBooleanTF{#1}% - { + {% \foreach \x [count=\i] in {#5} {% \xdef\j{\inteval{\i+(#4-1)}} diff --git a/macros/latex/contrib/proflycee/doc/ProfLycee-doc.pdf b/macros/latex/contrib/proflycee/doc/ProfLycee-doc.pdf Binary files differindex 000537a0d4..40cb330c40 100644 --- a/macros/latex/contrib/proflycee/doc/ProfLycee-doc.pdf +++ b/macros/latex/contrib/proflycee/doc/ProfLycee-doc.pdf diff --git a/macros/latex/contrib/proflycee/tex/ProfLycee.sty b/macros/latex/contrib/proflycee/tex/ProfLycee.sty index f622238309..c13d91729a 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}[2024/05/09 3.04b Aide pour l'utilisation de LaTeX en lycee] +\ProvidesPackage{ProfLycee}[2024/05/31 3.04c Aide pour l'utilisation de LaTeX en lycee] +% 3.04c Max et min pour des fonctions % 3.04b Travail sur la loi binomiale + Ajout de clés pour les environnements graphiques % 3.04a Améliorations de la partie graphiques tikz (intégrales, axes) + Factorielle % 3.03d Page de garde type BAC @@ -146,7 +147,6 @@ \usetikzlibrary{shapes.geometric} \usetikzlibrary{decorations.pathmorphing} %tcolorbox -%\RequirePackage[most]{tcolorbox} \RequirePackage{tcolorbox}% \tcbuselibrary{breakable,fitting,skins,listings,listingsutf8,hooks} %divers diff --git a/macros/latex/contrib/proflycee/tex/proflycee-tools-analyse.tex b/macros/latex/contrib/proflycee/tex/proflycee-tools-analyse.tex index ade88434c2..1581688cb1 100644 --- a/macros/latex/contrib/proflycee/tex/proflycee-tools-analyse.tex +++ b/macros/latex/contrib/proflycee/tex/proflycee-tools-analyse.tex @@ -996,4 +996,15 @@ }% } +%----max/min +\NewDocumentCommand\DetermineMax{ O{0.01} m m m O{\tmpmax} O{\tmpmaxvalx} }{% + \xdef#5{\xintfloateval{max(seq(#2,x=#3..[#1]..#4,#4))}}% + \xdef#6{\xintfloateval{first(seq((#2 == #5)?{x}{},x=#3..[#1]..#4,#4))}}% +} + +\NewDocumentCommand\DetermineMin{ O{0.01} m m m O{\tmpmin} O{\tmpminvalx} }{% + \xdef#5{\xintfloateval{min(seq(#2,x=#3..[#1]..#4,#4))}}% + \xdef#6{\xintfloateval{first(seq((#2 == #5)?{x}{},x=#3..[#1]..#4,#4))}}% +} + \endinput
\ No newline at end of file |