summaryrefslogtreecommitdiff
path: root/Master
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2024-03-18 20:00:37 +0000
committerKarl Berry <karl@freefriends.org>2024-03-18 20:00:37 +0000
commit113b31861adfc3df75e817843b8e9d13dcd770b4 (patch)
treef6a07bd3af285020d9422524a7de8eb27e739279 /Master
parentb338f5f83fe63c27fdeb5a5e8abde95347a94fda (diff)
customenvs (18mar24)
git-svn-id: svn://tug.org/texlive/trunk@70692 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master')
-rw-r--r--Master/texmf-dist/doc/latex/customenvs/README.md7
-rw-r--r--Master/texmf-dist/doc/latex/customenvs/customenvs-doc-en.pdfbin96017 -> 116310 bytes
-rw-r--r--Master/texmf-dist/doc/latex/customenvs/customenvs-doc-en.tex79
-rw-r--r--Master/texmf-dist/doc/latex/customenvs/customenvs-doc-fr.pdfbin321239 -> 339316 bytes
-rw-r--r--Master/texmf-dist/doc/latex/customenvs/customenvs-doc-fr.tex101
-rw-r--r--Master/texmf-dist/tex/latex/customenvs/customenvs.sty171
6 files changed, 342 insertions, 16 deletions
diff --git a/Master/texmf-dist/doc/latex/customenvs/README.md b/Master/texmf-dist/doc/latex/customenvs/README.md
index 68ef414e620..761cc20555a 100644
--- a/Master/texmf-dist/doc/latex/customenvs/README.md
+++ b/Master/texmf-dist/doc/latex/customenvs/README.md
@@ -2,6 +2,7 @@ customenvs is a package with some classics custom environments.
----------------------------------------------------------------------
customenvs est un package avec environnements classiques personnalisés.
----------------------------------------------------------------------
-Author : Cédric Pierquet
-email : cpierquet@outlook.fr
-Licence : Released under the LaTeX Project Public License v1.3c or later, see http://www.latex-project.org/lppl.txt \ No newline at end of file
+Author....: Cédric Pierquet
+email.....: cpierquet@outlook.fr
+Licence...: Released under the LaTeX Project Public License v1.3c or later, see http://www.latex-project.org/lppl.txt
+Source....: CC-BY-SA 4.0 https://tex.stackexchange.com/questions/504092/replicating-a-fancy-bordered-text-style-in-latex/504145#504145 \ No newline at end of file
diff --git a/Master/texmf-dist/doc/latex/customenvs/customenvs-doc-en.pdf b/Master/texmf-dist/doc/latex/customenvs/customenvs-doc-en.pdf
index 820109987c2..f8c88d906ed 100644
--- a/Master/texmf-dist/doc/latex/customenvs/customenvs-doc-en.pdf
+++ b/Master/texmf-dist/doc/latex/customenvs/customenvs-doc-en.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/customenvs/customenvs-doc-en.tex b/Master/texmf-dist/doc/latex/customenvs/customenvs-doc-en.tex
index da20b128bc6..c4727a7422f 100644
--- a/Master/texmf-dist/doc/latex/customenvs/customenvs-doc-en.tex
+++ b/Master/texmf-dist/doc/latex/customenvs/customenvs-doc-en.tex
@@ -34,8 +34,8 @@
\usepackage[margin=1.5cm]{geometry}
\setlength{\parindent}{0pt}
-\def\TPversion{0.1.1}
-\def\TPdate{25/10/2023}
+\def\TPversion{0.1.2}
+\def\TPdate{17/03/2024}
\usepackage{tcolorbox}
\sethlcolor{lightgray!25}
\NewDocumentCommand\MontreCode{ m }{%
@@ -111,6 +111,8 @@
\section{History}
+\verb|v0.1.1|~:~~~~Pencil of skills
+
\verb|v0.1.1|~:~~~~Skills table (only french for the moment...)
\verb|v0.1.0|~:~~~~Initial version
@@ -343,4 +345,77 @@ Controls are done :
\ListItemsChoice[Type=item]{\mylistofitemsb}{ListItemsB}(7,2,1,5,3)<label=$--$>
+\pagebreak
+
+\section{Pencil of skills}
+
+\subsection{Global use}
+
+The idea is to :
+
+\begin{itemize}
+ \item present of list of categories and skills ;
+ \item prensented like a pencil.
+\end{itemize}
+
+The code (within CC-BY-SA 4.0 license) is adapted from :
+
+\hfill{\footnotesize \url{https://tex.stackexchange.com/questions/504092/replicating-a-fancy-bordered-text-style-in-latex/504145#504145}}\hfill~
+
+\begin{codehigh}[language=latex/latex3,style/main=teal!25,style/code=teal!25]
+\PencilSkills[keys]<tikz options>{listofskills}
+\end{codehigh}
+
+The style is globally fixed, but there's some customization available.
+
+\subsection{The macro}
+
+Available \MontreCode{keys} are :
+
+\begin{itemize}
+ \item \MontreCode{FontCateg} : font for the categories ;
+ \item \MontreCode{FontBlock} : font for the skills ;
+ \item \MontreCode{Colors} : list of category's colors
+
+ \MontreCode{BgCateg1/FgCateg1,BgCateg1/FgCateg1,...}
+
+ (if \MontreCode{FgCateg1} est missing, \MontreCode{black} is used)
+ \item \MontreCode{BlockWidth} : width of skill's block ;
+ \item \MontreCode{Scale} : global scale
+ \item \MontreCode{BlackWhite} : boolean for B\&W.
+\end{itemize}
+
+The second argument, optional and between \MontreCode{<...>} gives specific options to \MontreCode{enumitem} environment.
+
+\smallskip
+
+The last argument, mandatory and between \MontreCode{(...)} give the list of categories/skills, within
+
+\MontreCode{Categ1/ListSkills1,Categ2/ListSkills2,...}.
+
+\subsection{Examples}
+
+\begin{demohigh}[language=latex/latex3,style/main=teal!25,style/code=teal!25]
+%default output
+\PencilSkills{Search/Skill 1\\ Skill 2,Model/{Skill 1\\ Skill 2}}
+\end{demohigh}
+
+\begin{demohigh}[language=latex/latex3,style/main=teal!25,style/code=teal!25]
+\PencilSkills[Scale=0.75]%
+ {Search/Skill 1\\Skill 2,Model/{Skill 1\\Skill 2},%
+ Represent/{Skill 1\\Skill 2},Calculate/{Skill 1\\Skill 2},%
+ Reason/{Skill 1\\Skill 2},Communicate/{Skill 1\\Skill 2}}
+\end{demohigh}
+
+\begin{demohigh}[language=latex/latex3,style/main=teal!25,style/code=teal!25]
+\PencilSkills[Scale=0.75,BlockWidth=3cm]<rotate=90>{
+ Search/Skill 1\\Skill 2,Model/{Skill 1\\Skill 2}}
+\hspace{1cm}
+\PencilSkills[Scale=0.75,BlockWidth=3cm]<rotate=-90>{
+ Search/Skill 1\\Skill 2,Model/{Skill 1\\Skill 2}}
+\hspace{1cm}
+\PencilSkills[Scale=0.75,BlockWidth=3cm,BlackWhite]<rotate=45>{
+ Search/Skill 1\\Skill 2,Model/{Skill 1\\Skill 2}}
+\end{demohigh}
+
\end{document} \ No newline at end of file
diff --git a/Master/texmf-dist/doc/latex/customenvs/customenvs-doc-fr.pdf b/Master/texmf-dist/doc/latex/customenvs/customenvs-doc-fr.pdf
index 0b7ef6f8b45..2d894043ad5 100644
--- a/Master/texmf-dist/doc/latex/customenvs/customenvs-doc-fr.pdf
+++ b/Master/texmf-dist/doc/latex/customenvs/customenvs-doc-fr.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/customenvs/customenvs-doc-fr.tex b/Master/texmf-dist/doc/latex/customenvs/customenvs-doc-fr.tex
index 969dde45758..5f05be24858 100644
--- a/Master/texmf-dist/doc/latex/customenvs/customenvs-doc-fr.tex
+++ b/Master/texmf-dist/doc/latex/customenvs/customenvs-doc-fr.tex
@@ -39,8 +39,8 @@
\usepackage[margin=1.5cm]{geometry}
\setlength{\parindent}{0pt}
-\def\TPversion{0.1.1}
-\def\TPdate{25 octobre 2023}
+\def\TPversion{0.1.2}
+\def\TPdate{17 mars 2024}
\usepackage[most]{tcolorbox}
\tcbuselibrary{listingsutf8}
\newtcblisting{DemoCode}[1]{%
@@ -66,10 +66,10 @@
keywordstyle={\color{violet}},%
classoffset=2,%
alsoletter={-},%
- morekeywords={\ReponsesQCM,MultiCols,\CreerListeItems,\ListeChoixItems,\TableauCompetences},%
+ morekeywords={\ReponsesQCM,MultiCols,\CreerListeItems,\ListeChoixItems,\TableauCompetences,\CrayonDeCompetences},%
keywordstyle={\color{green!50!black}},%
classoffset=3,%
- morekeywords={Largeur,Filets,EspacesCL,NbCols,Labels,PoliceLabels,EspaceLabels,Swap,Type,CoeffEspVert,EpTrait,Alea,LargeurNivs,Niveaux,NoticeNiveaux,Titre,PolTitre,PolNotice,PolComp,LigneSep,CouleurNotice,CouleurNiveaux,CouleurFond,Note,Notice},%
+ morekeywords={Largeur,Filets,EspacesCL,NbCols,Labels,PoliceLabels,EspaceLabels,Swap,Type,CoeffEspVert,EpTrait,Alea,LargeurNivs,Niveaux,NoticeNiveaux,Titre,PolTitre,PolNotice,PolComp,LigneSep,CouleurNotice,CouleurNiveaux,CouleurFond,Note,Notice,PoliceCateg,PoliceBloc,Couleurs,LargeurBloc,Echelle,NoirBlanc},%
keywordstyle={\color{orange}}
},%
#1
@@ -145,16 +145,16 @@
\hrule
-\vfill
+\pagebreak
\section{Historique}
+\verb|v0.1.2|~:~~~~Crayon de compétences
+
\verb|v0.1.1|~:~~~~Tableaux de compétences
\verb|v0.1.0|~:~~~~Version initiale
-\vspace*{5mm}
-
\pagebreak
\section{Le package customenvs}
@@ -697,4 +697,91 @@ L'argument, obligatoire et entre \MontreCode{\{...\}} est la liste des compéten
{Utiliser la règle § Utiliser le compas § Utiliser l'équerre}
\end{DemoCode}
+\pagebreak
+
+\section{Crayon de compétences}
+
+\subsection{Principe et fonctionnement}
+
+L'idée est de proposer un environnement pour créer un \textit{crayon} de compétences, basé sur \MontreCode{TikZ}.
+
+Le code (en licence CC-BY-SA 4.0) est largement inspiré du fil :
+
+\hfill{\footnotesize \url{https://tex.stackexchange.com/questions/504092/replicating-a-fancy-bordered-text-style-in-latex/504145#504145}}\hfill~
+
+\begin{DemoCode}{listing only}
+\CrayonDeCompetences[clés]<options tikz>{listecompétences}
+\end{DemoCode}
+
+\begin{DemoCode}{}
+\CrayonDeCompetences{Chercher/Compétence 1\\Compétence 2,Modéliser/Compétence 1\\Compétence 2}
+\end{DemoCode}
+
+La forme générale est fixée, et seuls quelques éléments de personnalisation(s) sont modifiables.
+
+\subsection{La commande}
+
+Les \MontreCode{clés} disponibles, à donner entre \MontreCode{[...]}, sont :
+
+\begin{itemize}
+ \item \MontreCode{PoliceCateg} : police des catégories ; \MontreCode{\textbackslash bfseries\textbackslash sffamily} par défaut
+ \item \MontreCode{PoliceBloc} : police des compétences ; \MontreCode{\textbackslash small\textbackslash ttfamily} par défaut
+ \item \MontreCode{Couleurs} : liste des couleurs de catégories, sous la forme
+
+ \MontreCode{FondCatég1/PoliceCatég1,FondCatég2/PoliceCatég2,...}
+
+ (Si \MontreCode{PolicCatég} est absent, \MontreCode{black} est utilisé par défaut)
+ \item \MontreCode{LargeurBloc} : largeur des blocs \textit{texte} ; \MontreCode{5cm} par défaut ;
+ \item \MontreCode{Echelle} : échelle globale du schéma ; \MontreCode{1} par défaut
+ \item \MontreCode{NoirBlanc} : booléen pour un affichage N\&B. \MontreCode{false} par défaut.
+\end{itemize}
+
+L'argument optionnel, et entre \MontreCode{<...>}, permet de spécifier des options à la figure \MontreCode{TikZ} (comme une rotation, un alignement, etc)
+
+\smallskip
+
+L'argument, obligatoire et entre \MontreCode{\{...\}} est la liste des catégories/compétences, sous la forme
+
+\MontreCode{Catég1/ListeCompétences1,Catég2/ListeCompétences2,...}.
+
+\begin{DemoCode}{}
+\CrayonDeCompetences[Largeur=3cm,Couleurs=teal/white]{%
+ DS01/Compétence 1\\Compétence 2
+}
+\end{DemoCode}
+
+\subsection{Exemples}
+
+\begin{DemoCode}{}
+%Sortie par défaut
+\CrayonDeCompetences{%
+ Chercher/Compétence 1\\Compétence 2,
+ Modéliser/Compétence 1\\Compétence 2,
+ Représenter/Compétence 1,
+ Calculer/Compétence 1\\Compétence 2\\Compétence 3
+}
+\end{DemoCode}
+
+\begin{DemoCode}{}
+\CrayonDeCompetences[Echelle=0.75,LargeurBloc=3cm]%
+ {Chercher/Compétence 1\\Compétence 2,
+ Modéliser/{Compétence 1\\Compétence 2},Raisonner/{Compétence 1\\Compétence 2}}
+\end{DemoCode}
+
+\begin{DemoCode}{}
+\CrayonDeCompetences[Echelle=0.5]%
+ {Chercher/Compétence 1\\Compétence 2,Modéliser/{Compétence 1\\Compétence 2}}
+\end{DemoCode}
+
+\begin{DemoCode}{}
+\CrayonDeCompetences[Echelle=0.75,NoirBlanc]<rotate=90>%
+ {Chercher/Compétence 1\\Compétence 2,Modéliser/{Compétence 1\\Compétence 2}}%
+\hspace{1cm}
+\CrayonDeCompetences[Echelle=0.75,NoirBlanc]<rotate=-90>%
+ {Chercher/Compétence 1\\Compétence 2,Modéliser/{Compétence 1\\Compétence 2}}
+\hspace{1cm}
+\CrayonDeCompetences[Echelle=0.75,NoirBlanc,Largeur,LargeurBloc=3cm]<rotate=45>%
+ {Chercher/Compétence 1\\Compétence 2,Modéliser/{Compétence 1\\Compétence 2}}
+\end{DemoCode}
+
\end{document} \ No newline at end of file
diff --git a/Master/texmf-dist/tex/latex/customenvs/customenvs.sty b/Master/texmf-dist/tex/latex/customenvs/customenvs.sty
index b58ff0ca362..34b3c30803b 100644
--- a/Master/texmf-dist/tex/latex/customenvs/customenvs.sty
+++ b/Master/texmf-dist/tex/latex/customenvs/customenvs.sty
@@ -1,10 +1,12 @@
-% Author : C. Pierquet
-% licence : Released under the LaTeX Project Public License v1.3c or later, see http://www.latex-project.org/lppl.txtf
+% Author..........: C. Pierquet
+% licence.........: Released under the LaTeX Project Public License v1.3c or later, see http://www.latex-project.org/lppl.txtf
+% 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}[2023/10/25 0.1.1 Custom classic environments]
+\ProvidesPackage{customenvs}[2024/03/17 0.1.2 Custom classic environments]
%====HISTORIQUE
+% v 0.1.2 Crayon de compétences
% v 0.1.1 Ajout de tableaux de compétences
% v 0.1.0 Version initiale
@@ -48,7 +50,8 @@
\RequirePackage{simplekv}
\RequirePackage{xstring}
\RequirePackage{listofitems}
-
+\RequirePackage{tikz}
+\usetikzlibrary{decorations.pathmorphing,positioning,shapes.misc,calc}
%%----COMMANDES FR
@@ -581,6 +584,85 @@
{}%
}
+%====PENSKILLS
+\defKV[tachescrayon]{%
+ PoliceCateg=\def\pentaksfontcateg{#1},%
+ PoliceBloc=\def\pentaksfontblock{#1},%
+ Couleurs=\def\pentakscolors{#1},%
+ LargeurBloc=\def\pentakswidth{#1},
+ Echelle=\def\pentakscale{#1}
+}
+\setKVdefault[tachescrayon]{%
+ PoliceCateg=\bfseries\sffamily,%
+ PoliceBloc=\small\ttfamily,%
+ %Couleurs={"yellow/black","orange/black","magenta/black","cyan/black","teal/black","brown/black"},%
+ Couleurs={yellow/black,orange/black,magenta/black,cyan/black,teal/black,brown/black},%
+ LargeurBloc=5cm,%
+ Echelle=1,%
+ NoirBlanc=false
+}
+
+\NewDocumentCommand\CrayonDeCompetences{ O{} D<>{} m }{%
+ \restoreKV[tachescrayon]%
+ \setKV[tachescrayon]{#1}%
+ %liste des couleurs, via listofitems ?
+ \readlist*\lstColors{\pentakscolors}%
+ %\edef\lstColors{\pentakscolors}%
+ \begin{tikzpicture}%
+ [line width=0.25\pgflinewidth,scale=\pentakscale,transform shape,#2,pics/fancy box/.style={code={%
+ \path (0,0) coordinate (C0);
+ \foreach \Item/\Text [count=\Count starting from 0] in {#3}
+ {%
+ \ifboolKV[tachescrayon]{NoirBlanc}%
+ {%
+ \def\mybackcolor{gray}\def\myfontcolor{black}
+ }%
+ {%
+ \itemtomacro\lstColors[\the\numexpr\Count+1\relax]\mycolor
+ \IfSubStr{\mycolor}{/}%
+ {%
+ \StrCut{\mycolor}{/}{\mybackcolor}{\myfontcolor}%
+ }%
+ {%
+ \def\mybackcolor{\mycolor}\def\myfontcolor{black}%
+ }%
+ }%
+ \node[rounded rectangle,rounded rectangle left arc=none,draw=\mybackcolor,fill=\mybackcolor,anchor=north west,font=\pentaksfontcateg,text=\myfontcolor,outer sep=0pt,inner sep=0.75ex] (RR\Count) at (C\Count) {\vphantom{pL}\Item};
+ \node[line width={\pentakscale*3\pgflinewidth},anchor=north west,below right={\pentakscale*1ex} of RR\Count.south west,draw,text width=\pentakswidth,font=\pentaksfontblock,inner sep=0.75ex] (T\Count) {\Text};
+ \coordinate[below left={\pentakscale*1ex} of T\Count.south west] (C\the\numexpr\Count+1\relax);
+ \filldraw[\mybackcolor] ([xshift=-1ex]C\Count) rectangle (C\the\numexpr\Count+1\relax);
+ \filldraw[\mybackcolor] ([xshift=-3ex]C\Count) rectangle ([xshift=-2ex]C\the\numexpr\Count+1\relax);
+ \filldraw[\mybackcolor!50!white] ([xshift=-2ex]C\Count) rectangle ([xshift=-1ex]C\the\numexpr\Count+1\relax);
+ \ifnum\Count=0
+ \shade[ball color=\mybackcolor!75] ([shift={(-3ex-\pentakscale*0.5\pgflinewidth,\pentakscale*0.5\pgflinewidth)}]C\Count) to[out=90,in=90]++(3ex+\pentakscale*\pgflinewidth,0) ;
+ \fi
+ \xdef\myCount{\Count}%last index
+ }
+ \ifboolKV[tachescrayon]{NoirBlanc}%
+ {%
+ \def\mylastbackcolor{gray}
+ \filldraw[lightgray!15] ([xshift=-3ex]C\the\numexpr\myCount+1\relax) --++ (0,-0.25ex) --++ (1.5ex,-4ex) coordinate[pos=0.8] (aux1) coordinate[pos=1] (aux2) -- ($(C\the\numexpr\myCount+1\relax)+(0,-0.25ex)$) coordinate[pos=0.2] (aux3) --++ (0,0.25ex) -- cycle ;
+ }%
+ {%
+ \itemtomacro\lstColors[\the\numexpr\myCount+1\relax]\mylastcolor
+ \IfSubStr{\mylastcolor}{/}%
+ {%
+ \StrBefore{\mylastcolor}{/}[\mylastbackcolor]%
+ }%
+ {%
+ \def\mylastbackcolor{\mylastcolor}%
+ }%
+ \filldraw[brown!10] ([xshift=-3ex]C\the\numexpr\myCount+1\relax) --++ (0,-0.25ex) --++ (1.5ex,-4ex) coordinate[pos=0.8] (aux1) coordinate[pos=1] (aux2) -- ($(C\the\numexpr\myCount+1\relax)+(0,-0.25ex)$) coordinate[pos=0.2] (aux3) --++ (0,0.25ex) -- cycle ;
+ }%
+ \filldraw[\mylastbackcolor] ([shift={(-3ex,3\pgflinewidth)}]C\the\numexpr\myCount+1\relax) to[out=-90,in=180]++ (0.5ex-0.5\pgflinewidth,-0.5ex) to[out=0,in=-90]++ (0.5ex-0.5\pgflinewidth,0.5ex) -- cycle ;
+ \filldraw[\mylastbackcolor] ([shift={(-1ex+\pgflinewidth,3\pgflinewidth)}]C\the\numexpr\myCount+1\relax) to[out=-90,in=180]++ (0.5ex-0.5\pgflinewidth,-0.5ex) to[out=0,in=-90]++ (0.5ex-0.5\pgflinewidth,0.5ex) -- cycle ;
+ \filldraw[\mylastbackcolor!50!white] ([shift={(-2ex,3\pgflinewidth)}]C\the\numexpr\myCount+1\relax) to[out=-90,in=180]++ (0.5ex,-0.5ex) to[out=0,in=-90]++ (0.5ex,0.5ex) -- cycle ;
+ \filldraw[line join=cap,gray,fill=gray] (aux1) -- (aux2) -- (aux3);
+ }}]
+ \pic{fancy box={#2}};
+ \end{tikzpicture}%
+}
+
%%----COMMANDES EN
%====QCMs
@@ -756,4 +838,85 @@
}%
}
+%====PENSKILLS
+\defKV[pentasks]{%
+ FontCateg=\def\pentaksfontcateg{#1},%
+ FontBlock=\def\pentaksfontblock{#1},%
+ Colors=\def\pentakscolors{#1},%
+ BlockWidth=\def\pentakswidth{#1},
+ Scale=\def\pentakscale{#1}
+}
+\setKVdefault[pentasks]{%
+ FontCateg=\bfseries\sffamily,%
+ FontBlock=\small\ttfamily,%
+ %Colors={"yellow/black","orange/black","magenta/black","cyan/black","teal/black","brown/black"},%
+ Colors={yellow/black,orange/black,magenta/black,cyan/black,teal/black,brown/black},%
+ BlockWidth=5cm,%
+ Scale=1,%
+ BlackWhite=false
+}
+
+\NewDocumentCommand\PencilSkills{ O{} D<>{} m }{%
+ \restoreKV[pentasks]%
+ \setKV[pentasks]{#1}%
+ %\edef\lstColors{\pentakscolors}%
+ \readlist*\lstColors{\pentakscolors}%
+ \begin{tikzpicture}%
+ [line width=0.25\pgflinewidth,scale=\pentakscale,transform shape,#2,pics/fancy box/.style={code={%
+ \path (0,0) coordinate (C0);
+ \foreach \Item/\Text [count=\Count starting from 0] in {#3}
+ {%
+ \ifboolKV[pentasks]{BlackWhite}%
+ {%
+ \def\mybackcolor{gray}\def\myfontcolor{black}
+ }%
+ {%
+ %\pgfmathsetmacro{\mycolor}{{\lstColors}[\Count]}
+ \itemtomacro\lstColors[\the\numexpr\Count+1\relax]\mycolor
+ \IfSubStr{\mycolor}{/}%
+ {%
+ \StrCut{\mycolor}{/}{\mybackcolor}{\myfontcolor}%
+ }%
+ {%
+ \def\mybackcolor{\mycolor}\def\myfontcolor{\mycolor}%
+ }%
+ }%
+ \node[rounded rectangle,rounded rectangle left arc=none,draw=\mybackcolor,fill=\mybackcolor,anchor=north west,font=\pentaksfontcateg,text=\myfontcolor,outer sep=0pt,inner sep=0.75ex] (RR\Count) at (C\Count) {\vphantom{pL}\Item};
+ \node[line width={\pentakscale*3\pgflinewidth},anchor=north west,below right={\pentakscale*1ex} of RR\Count.south west,draw,text width=\pentakswidth,font=\pentaksfontblock,inner sep=0.75ex] (T\Count) {\Text};
+ \coordinate[below left={\pentakscale*1ex} of T\Count.south west] (C\the\numexpr\Count+1\relax);
+ \filldraw[\mybackcolor] ([xshift=-1ex]C\Count) rectangle (C\the\numexpr\Count+1\relax);
+ \filldraw[\mybackcolor] ([xshift=-3ex]C\Count) rectangle ([xshift=-2ex]C\the\numexpr\Count+1\relax);
+ \filldraw[\mybackcolor!50!white] ([xshift=-2ex]C\Count) rectangle ([xshift=-1ex]C\the\numexpr\Count+1\relax);
+ \ifnum\Count=0
+ \shade[ball color=\mybackcolor!75] ([shift={(-3ex-\pentakscale*0.5\pgflinewidth,\pentakscale*0.5\pgflinewidth)}]C\Count) to[out=90,in=90]++(3ex+\pentakscale*\pgflinewidth,0) ;
+% (C\Count);
+ \fi
+ \xdef\myCount{\Count}%last index
+ }
+ \ifboolKV[pentasks]{BlackWhite}%
+ {%
+ \def\mylastbackcolor{gray}
+ \filldraw[lightgray!15] ([xshift=-3ex]C\the\numexpr\myCount+1\relax) --++ (0,-0.25ex) --++ (1.5ex,-4ex) coordinate[pos=0.8] (aux1) coordinate[pos=1] (aux2) -- ($(C\the\numexpr\myCount+1\relax)+(0,-0.25ex)$) coordinate[pos=0.2] (aux3) --++ (0,0.25ex) -- cycle ;
+ }%
+ {%
+ %\pgfmathsetmacro{\mylastcolor}{{\lstColors}[\myCount]}
+ \itemtomacro\lstColors[\the\numexpr\myCount+1\relax]\mylastcolor
+ \IfSubStr{\mylastcolor}{/}%
+ {%
+ \StrBefore{\mylastcolor}{/}[\mylastbackcolor]%
+ }%
+ {%
+ \def\mylastbackcolor{\mylastcolor}%
+ }%
+ \filldraw[brown!10] ([xshift=-3ex]C\the\numexpr\myCount+1\relax) --++ (0,-0.25ex) --++ (1.5ex,-4ex) coordinate[pos=0.8] (aux1) coordinate[pos=1] (aux2) -- ($(C\the\numexpr\myCount+1\relax)+(0,-0.25ex)$) coordinate[pos=0.2] (aux3) --++ (0,0.25ex) -- cycle ;
+ }%
+ \filldraw[\mylastbackcolor] ([shift={(-3ex,3\pgflinewidth)}]C\the\numexpr\myCount+1\relax) to[out=-90,in=180]++ (0.5ex-0.5\pgflinewidth,-0.5ex) to[out=0,in=-90]++ (0.5ex-0.5\pgflinewidth,0.5ex) -- cycle ;
+ \filldraw[\mylastbackcolor] ([shift={(-1ex+\pgflinewidth,3\pgflinewidth)}]C\the\numexpr\myCount+1\relax) to[out=-90,in=180]++ (0.5ex-0.5\pgflinewidth,-0.5ex) to[out=0,in=-90]++ (0.5ex-0.5\pgflinewidth,0.5ex) -- cycle ;
+ \filldraw[\mylastbackcolor!50!white] ([shift={(-2ex,3\pgflinewidth)}]C\the\numexpr\myCount+1\relax) to[out=-90,in=180]++ (0.5ex,-0.5ex) to[out=0,in=-90]++ (0.5ex,0.5ex) -- cycle ;
+ \filldraw[line join=cap,gray,fill=gray] (aux1) -- (aux2) -- (aux3);
+ }}]
+ \pic{fancy box={#2}};
+ \end{tikzpicture}%
+}
+
\endinput \ No newline at end of file