diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/profcollege/PfCDobble.tex')
-rw-r--r-- | Master/texmf-dist/tex/latex/profcollege/PfCDobble.tex | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/profcollege/PfCDobble.tex b/Master/texmf-dist/tex/latex/profcollege/PfCDobble.tex new file mode 100644 index 00000000000..e330d761aaa --- /dev/null +++ b/Master/texmf-dist/tex/latex/profcollege/PfCDobble.tex @@ -0,0 +1,27 @@ +%%% +% dobble +%%% +% by Maxime Chupin + +\NewDocumentCommand\dobble{m}{% + \directlua{ + require('dobblePfC.lua') + dobble("#1"); + }% +}% + +\setKVdefault[ClesDobble]{Niveau=5,CouleurCadre=black,Cercle=false} + +\NewDocumentCommand\Dobble{o m}{% + \useKVdefault[ClesDobble]% + \setKV[ClesDobble]{#1}% + \colorlet{PfCDobbleColor}{\useKV[ClesDobble]{CouleurCadre}}% + \setsepchar{,}% + \readlist*\PfCListeSymboleDobble{#2}% + \def\PfCDobbleTotalSymboles{\fpeval{1+\useKV[ClesDobble]{Niveau}+\useKV[ClesDobble]{Niveau}^2}}% + \xdef\PfCDobbleNiveau{\useKV[ClesDobble]{Niveau}}% + \xintifboolexpr{\PfCListeSymboleDobblelen==\PfCDobbleTotalSymboles}{% + \dobble{\PfCDobbleNiveau}% + }{% + Pour un dooble basé sur le nombre premier \useKV[ClesDobble]{Niveau}, le nombre de symboles doit être égal à \num{\PfCDobbleTotalSymboles}.}% +}%
\ No newline at end of file |