summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/proflycee/tex/proflycee-tools-piton.tex
diff options
context:
space:
mode:
Diffstat (limited to 'macros/latex/contrib/proflycee/tex/proflycee-tools-piton.tex')
-rw-r--r--macros/latex/contrib/proflycee/tex/proflycee-tools-piton.tex35
1 files changed, 19 insertions, 16 deletions
diff --git a/macros/latex/contrib/proflycee/tex/proflycee-tools-piton.tex b/macros/latex/contrib/proflycee/tex/proflycee-tools-piton.tex
index 7503f17894..f3f00ecd5e 100644
--- a/macros/latex/contrib/proflycee/tex/proflycee-tools-piton.tex
+++ b/macros/latex/contrib/proflycee/tex/proflycee-tools-piton.tex
@@ -8,6 +8,9 @@
% and version 1.3 or later is part of all distributions of LaTeX
% version 2005/12/01 or later.
+%2.5.8 Modification des marges
+%2.5.7 Style alternatif
+
\RequirePackage{iftex}
%%=============PYTHONPITON
@@ -55,7 +58,7 @@
%==Style Classique
\tcbset{thonnystyle/.style={%
- enhanced,boxrule=0.75pt,colframe=DarkGray!25!Black,%
+ enhanced,boxrule=0.75pt,colframe=DarkGray!50!Black,%
sharp corners,top=0mm,bottom=0mm,left=0.4em,right=5mm,%
before skip=\baselineskip,after skip=\baselineskip,%
colback=white
@@ -66,7 +69,7 @@
thonnystyle,%
underlay={%
\begin{tcbclipinterior}
- \filldraw[lightgray!15] (interior.south west) rectangle ([xshift=1.3em]interior.north west) ;
+ \filldraw[lightgray!25] (interior.south west) rectangle ([xshift=1.3em]interior.north west) ;
\end{tcbclipinterior}%
}
}
@@ -75,7 +78,7 @@
%==Création de la boîte
\ifluatex
\RequirePackage{piton}
-\NewPitonEnvironment{CodePiton}{ O{} }%
+\NewPitonEnvironment{CodePiton}{ O{} m }%
{%
\tcbset{reset}
\useKVdefault[envpiton]%
@@ -91,7 +94,7 @@
%------les styles tcbox
\IfEq{\CODPITstyle}{Moderne}%style Moderne (défaut)
{%
- \tcbset{stylepiton,colframe=Green,colback=ForestGreen!5,width=\CODPITlargeur,fontupper=\CODPITfonte,fontlower=\CODPITfonte,\CODPITalign}
+ \tcbset{stylepiton,colframe=Green,colback=ForestGreen!5,width=\CODPITlargeur,fontupper=\CODPITfonte,fontlower=\CODPITfonte,\CODPITalign,leftupper=0.75em}
\ifboolKV[envpiton]{Filigrane}%si filigrane
{\tcbset{watermark text={\faPython},watermark opacity=0.175,watermark zoom=0.50}}%
{}%
@@ -100,18 +103,18 @@
\IfEq{\CODPITstyle}{Classique}%style Classique
{%
\ifboolKV[envpiton]{Lignes}%si lignes=true
- {\tcbset{thonnystylelineos,leftupper=0.4em}}%
+ {\tcbset{thonnystylelineos,leftupper=0.75em}}%
{\tcbset{thonnystyle,leftupper=0.4em}}%
- \tcbset{width=\CODPITlargeur,colframe=darkgray,fontupper=\CODPITfonte,fontlower=\CODPITfonte,\CODPITalign}
+ \tcbset{width=\CODPITlargeur,colframe=DarkGray!50!Black,fontupper=\CODPITfonte,fontlower=\CODPITfonte,\CODPITalign}
\ifboolKV[envpiton]{Filigrane}%si filigrane
- {\tcbset{watermark text={\faPython},watermark opacity=0.175,watermark zoom=0.50}}%
+ {\tcbset{watermark text={\faPython},watermark opacity=0.25,watermark zoom=0.50}}%
{}%
\ifboolKV[envpiton]{BarreTitre}%
{%
\ifboolKV[envpiton]{Cadre}
{}
{\tcbset{boxrule=0pt,frame hidden}}
- \tcbset{lefttitle=0.4em,title={\CODPITtitre},fonttitle=\bfseries\footnotesize\sffamily,colbacktitle=DarkGray!25!Black}
+ \tcbset{lefttitle=0.4em,title={\CODPITtitre},fonttitle=\bfseries\footnotesize\sffamily,colbacktitle=DarkGray!50!Black}
}%
{%
\tcbset{notitle}
@@ -122,7 +125,7 @@
}
{}%
%on crée la boîte
- \begin{tcolorbox}
+ \begin{tcolorbox}[#2]
}%
{%
\end{tcolorbox}%
@@ -132,9 +135,9 @@
%======CONSOLE PYLUATEX (package à charger manuellement !!)
\tcbset{consolepylua/.style={%base de la boîte
- enhanced,colback=white,colframe=ForestGreen,sharp corners,boxrule=1pt,%
- top=1.5mm,bottom=1.5mm,left=2mm,right=2mm,fontupper=\small,%
- before skip=\baselineskip,after skip=\baselineskip,%
+ enhanced,colback=white,colframe=ForestGreen,sharp corners,boxrule=1pt,%
+ top=1.5mm,bottom=1.5mm,left=2mm,right=2mm,fontupper=\small,%
+ before skip=\baselineskip,after skip=\baselineskip,%
}
}
@@ -176,8 +179,8 @@
\PitonOptions{#1}
\PyLTVerbatimEnv
\ifboolKV[consolepyluatex]{Logo}
- {\tcbset{consolepyluatexlogo,width=\ConsPyluaLarg,\ConsPyluaAlign,#3}}
- {\tcbset{consolepyluatex,width=\ConsPyluaLarg,\ConsPyluaAlign,#3}}
+ {\tcbset{consolepyluatexlogo,width=\ConsPyluaLarg,\ConsPyluaAlign,#3}}
+ {\tcbset{consolepyluatex,width=\ConsPyluaLarg,\ConsPyluaAlign,#3}}
\begin{tcolorbox}
\begin{pythonrepl}
}
@@ -188,8 +191,8 @@
tex.print("\\end{Piton}")
tex.print("")
}
- \end{pythonrepl}
-\end{tcolorbox}
+ \end{pythonrepl}
+ \end{tcolorbox}
}
\endinput \ No newline at end of file