diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/profcollege/PfCScratch.tex')
-rw-r--r-- | Master/texmf-dist/tex/latex/profcollege/PfCScratch.tex | 32 |
1 files changed, 20 insertions, 12 deletions
diff --git a/Master/texmf-dist/tex/latex/profcollege/PfCScratch.tex b/Master/texmf-dist/tex/latex/profcollege/PfCScratch.tex index 3f1e8679d27..0315d8d3a87 100644 --- a/Master/texmf-dist/tex/latex/profcollege/PfCScratch.tex +++ b/Master/texmf-dist/tex/latex/profcollege/PfCScratch.tex @@ -11,7 +11,7 @@ \def\barre{\vrule height2.1ex depth.9ex width0pt}% \def\demibarre{\vrule height1.4ex depth.6ex width0pt}% -\setKVdefault[Scratch]{Impression=false,Numerotation=false,Echelle=1,Naturel=false}% +\setKVdefault[Scratch]{ModeleCouleur=5,Impression=false,Numerotation=false,Echelle=1,Naturel=false}% \ifluatex \NewDocumentEnvironment{Scratch}{o +b}{% @@ -19,17 +19,25 @@ \setKV[Scratch]{#1}% \mplibforcehmode% \ifboolKV[Scratch]{Naturel}{}{\myfontScratch}% - \begin{mplibcode}% - boolean Naturel; - Naturel=\useKV[Scratch]{Naturel}; - if Naturel: input PfCPseudo; print:=true; else: input PfCScratch; print:=\useKV[Scratch]{Impression}; fi; - NumeroteLignes:=\useKV[Scratch]{Numerotation};% - #2% - picture recap;% - recap:=currentpicture scaled \useKV[Scratch]{Echelle};% - currentpicture:=nullpicture;% - draw recap;% - \end{mplibcode}% + \begin{mplibcode}% + defaultcolormodel:=\useKV[Scratch]{ModeleCouleur}; + boolean Naturel; + Naturel=\useKV[Scratch]{Naturel}; + if Naturel: input PfCPseudo; print:=true; else: input PfCScratch; print:=\useKV[Scratch]{Impression}; fi; + NumeroteLignes:=\useKV[Scratch]{Numerotation};% + if defaultcolormodel=7: + cmykcolor white,White,CoulLignes; + coefprint:=1-coefprint; + White=(0,0,0,1); + white=(0,0,0,0); + CoulLignes=(0,0,0,1); + fi; + #2% + picture recap;% + recap:=currentpicture scaled \useKV[Scratch]{Echelle};% + currentpicture:=nullpicture;% + draw recap;% + \end{mplibcode}% }{} \else% \NewDocumentEnvironment{Scratch}{o +b}{% |