diff options
author | Norbert Preining <norbert@preining.info> | 2023-09-08 03:02:30 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2023-09-08 03:02:30 +0000 |
commit | 608e422a8e775ac4d1c23c80b4170776701680d5 (patch) | |
tree | d1e69057c0dc339fb0f890882f5fef9fe3b3a66f /macros/latex/contrib/profcollege/latex/ProfCollege.sty | |
parent | 96f1d7a9e9fe6e682cbd19d1bf2b7797891160b6 (diff) |
CTAN sync 202309080302
Diffstat (limited to 'macros/latex/contrib/profcollege/latex/ProfCollege.sty')
-rw-r--r-- | macros/latex/contrib/profcollege/latex/ProfCollege.sty | 40 |
1 files changed, 35 insertions, 5 deletions
diff --git a/macros/latex/contrib/profcollege/latex/ProfCollege.sty b/macros/latex/contrib/profcollege/latex/ProfCollege.sty index a7af54cbf8..a179a3e281 100644 --- a/macros/latex/contrib/profcollege/latex/ProfCollege.sty +++ b/macros/latex/contrib/profcollege/latex/ProfCollege.sty @@ -2,9 +2,9 @@ % licence : Released under the LaTeX Project Public License v1.3c % or later, see http://www.latex-project.org/lppl.txtf \NeedsTeXFormat{LaTeX2e}% -\def\filedate{2023/08/16}% +\def\filedate{2023/09/06}% \let\PfCfiledate\filedate% -\def\fileversion{0.99-z-s}% +\def\fileversion{0.99-z-t}% \let\PfCfileversion\fileversion% \ProvidesPackage{ProfCollege}[\filedate\space v\fileversion\space Aide pour utiliser LaTeX au college]% @@ -31,7 +31,8 @@ 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,% + quantity-product={~}% }% \DeclareSIUnit{\kmh}{\km\per\hour}% \newcommand\speed[1]{\SI{#1}{\kmh}}% @@ -360,6 +361,31 @@ \day=\the\PfCrappeljour\relax% } +\newcommand\MelangeLettres[2]{% + % #2 Nombre d'éléments à conserver + \setsepchar{,}\ignoreemptyitems% + \readlist*\ListeInter{a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z}% + \xdef\faa{}% Liste construite + \xdef\fii{}% Liste détruite + \xintFor* ##1 in {\xintSeq{1}{#1}}\do{% + \xintifboolexpr{\ListeInterlen>1}{% + \xdef\Alea{\fpeval{randint(\ListeInterlen)}}% + \xdef\faa{\faa\ListeInter[\Alea]}% + \xdef\fii{}% + \xintFor* ##2 in {\xintSeq{1}{\ListeInterlen}}\do{% + \xintifboolexpr{##2 == \Alea}{% + }{% + \xdef\fii{\fii \ListeInter[##2],}% + }% + }% + }{% + \xdef\faa{\faa\ListeInter[1]}% + }% + \readlist*\ListeInter{\fii}% + }% + \xdef#2{\faa}% +}% + \newcommand\MelangeListe[2]{% % #1 Liste à mélanger % #2 Nombre d'éléments à conserver @@ -573,6 +599,10 @@ }%\emoticon }%\raisebox }% +\input{PfCCibleQOp} +\input{PfCFubuki} +\input{PfCMulJap} +\input{PfCCryptarithme} \input{PfCDefiCalc} \input{PfCMulArt} \input{PfCGrimuku} @@ -583,7 +613,7 @@ \input{PfCAutomatismes} \input{PfCNumberHive} \input{PfCPatronPaves} -\input{PfCErathostene} +\input{PfCEratosthene} \input{PfCDobble} \input{PfCPavage} \input{PfCNonogramme} @@ -686,7 +716,7 @@ \ensuremath{% \xintifboolexpr{#2==0}{1}{\xintifboolexpr{#2>0}{\xdef\TotalP{\fpeval{#2-1}}#1\multido{\i=1+1}{\TotalP}{\times#1}}{\xdef\TotalP{\fpeval{-#2-1}}\frac{1}{#1\multido{\i=1+1}{\TotalP}{\times#1}}}}% }% -} +}% \input{PfCEcritureUnites} \input{PfCTableauxUnites} |