summaryrefslogtreecommitdiff
path: root/Master/texmf-dist
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2023-06-12 20:15:00 +0000
committerKarl Berry <karl@freefriends.org>2023-06-12 20:15:00 +0000
commit6340c1f1407b6c8a60d4d531ce456278f28ce0f3 (patch)
tree5eb752feb35c996e867c4b3e82c2ea89e1f5ac73 /Master/texmf-dist
parentdcf918f09d888b354c58a574ae7f83cb9ab0152c (diff)
postit (12jun23)
git-svn-id: svn://tug.org/texlive/trunk@67344 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist')
-rw-r--r--Master/texmf-dist/doc/latex/postit/postit-doc-en.pdfbin491144 -> 530646 bytes
-rw-r--r--Master/texmf-dist/doc/latex/postit/postit-doc-en.tex73
-rw-r--r--Master/texmf-dist/doc/latex/postit/postit-doc-fr.pdfbin498661 -> 533207 bytes
-rw-r--r--Master/texmf-dist/doc/latex/postit/postit-doc-fr.tex78
-rw-r--r--Master/texmf-dist/tex/latex/postit/postit.sty104
5 files changed, 209 insertions, 46 deletions
diff --git a/Master/texmf-dist/doc/latex/postit/postit-doc-en.pdf b/Master/texmf-dist/doc/latex/postit/postit-doc-en.pdf
index 808e152c714..b5c83267d7d 100644
--- a/Master/texmf-dist/doc/latex/postit/postit-doc-en.pdf
+++ b/Master/texmf-dist/doc/latex/postit/postit-doc-en.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/postit/postit-doc-en.tex b/Master/texmf-dist/doc/latex/postit/postit-doc-en.tex
index 933ecc83907..f08ec59d376 100644
--- a/Master/texmf-dist/doc/latex/postit/postit-doc-en.tex
+++ b/Master/texmf-dist/doc/latex/postit/postit-doc-en.tex
@@ -4,8 +4,8 @@
\documentclass[english,a4paper,11pt]{article}
\usepackage[margin=2cm,includefoot]{geometry}
-\def\TPversion{0.1.2}
-\def\TPdate{06/06/2023}
+\def\TPversion{0.1.3}
+\def\TPdate{12/06/2023}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{amsmath,amssymb}
@@ -88,7 +88,7 @@
morekeywords={PostItNote,\MiniPostIt},%
keywordstyle={\color{green!50!black}},%
classoffset=3,%
- morekeywords={Color,PinColor,Pin,Width,Hieght,Rotate,Shadow,Corner,PinShift,AlignH,AlignV,AlignPostIt,Border,ExtraRightMargin,Render,Title,FontTitle},%
+ morekeywords={Color,PinColor,Pin,Width,Hieght,Rotate,Shadow,Corner,PinShift,AlignH,AlignV,AlignPostIt,Border,ExtraRightMargin,Render,Title,FontTitle,StorePostIt},%
keywordstyle={\color{orange}}
},%
#1
@@ -162,18 +162,23 @@
\vspace{1cm}
-\begin{PostItNote}<center>
+\begin{PostItNote}[StorePostIt=PI1]<center>
This is a small Post-It ! For example \[(a+b)^2=a^2+2ab+b^2.\]
\end{PostItNote}
-\begin{PostItNote}[Render=tikz,Width=8cm,Color=orange,Pin=Paperclip,PinColor=blue,Rotate=-5,AlignPostIt=center,Title={- With a title -},FontTitle={\color{blue!50!black}\bfseries\small\sffamily}]
+\begin{PostItNote}[Render=tikz,Width=8cm,Color=orange,Pin=Paperclip,PinColor=blue,Rotate=-5,AlignPostIt=center,Title={- With a title -},FontTitle={\color{blue!50!black}\bfseries\small\sffamily},StorePostIt=PI2]
\lipsum[1][1-4]
\end{PostItNote}
\hfill
-\begin{PostItNote}[Height=6cm,AlignV=center,Color=pink,Pin=Scotch,Rotate=15,Corner,AlignPostIt=center,]
+\begin{PostItNote}[Height=6cm,AlignV=center,Color=pink,Pin=Scotch,Rotate=15,Corner,AlignPostIt=center,StorePostIt=PI3]
\lipsum[1][1-4]
\end{PostItNote}
+\begin{tikzpicture}[remember picture,overlay]
+ \draw[very thick,->,>=latex] (PI1-S)to[out=-90,in=90](PI2-N) ;
+ \draw[very thick,lime,densely dashed,->,>=latex] (PI2-E)to[out=0,in=180](PI3-S-W) ;
+\end{tikzpicture}
+
\vspace{0.5cm}
%\hfill{}\textit{Merci à Denis Bitouzé et à Gilles Le Bourhis pour leurs retours et idées !}
@@ -205,6 +210,8 @@
\section{History}
+\verb|v0.1.3|~:~~~~Nodes for anchor points.
+
\verb|v0.1.2|~:~~~~English version.
\verb|v0.1.1|~:~~~~\motcletex!\vphantom! for \textit{mini-}Post-It + Bugfixes + \TikZ{} rendering + optional title .
@@ -223,7 +230,8 @@ The package proposes small Post-It notes, in a \textsf{tex} doc, created with \p
\begin{itemize}
\item change dimensions orcolor ;
\item use pin deocration like Paperclip, Pushpin or Scotch ;
- \item customize border and/or corner.
+ \item customize border and/or corner ;
+ \item use anchor points for each Post-It.
\end{itemize}
The package propose a command to display \textit{mini-}Post-It (created with \motcletex!tcbox!), with color and shadow customization.
@@ -251,10 +259,11 @@ There's no option, and \packagetex!xcolor! isn't loaded.
\item \packagetex!tikz! libraries :
\begin{itemize}
\item \packagetex!tikz.calc! ;
+ \item \packagetex!tikz.babel! ;
\item \packagetex!tikz.decorations! ;
\item \packagetex!tikz.decorations.pathmorphing! ;
\end{itemize}
- \item \packagetex!settobox!, \packagetex!xstring! and \packagetex!simplekv!.
+ \item \packagetex!settobox!, \packagetex!xstring!, \packagetex!varwidth! and \packagetex!simplekv!.
\end{itemize}
It’s mostly compatible with \textsf{latex}, \textsf{pdflatex}, \textsf{lualatex} or \textsf{xelatex} compilation !
@@ -336,12 +345,13 @@ For horizontal alignement, \motcletex!\hfill! or \motcletex!flush...! can be use
With a overlapping pin and the \textsf{tcbox} rendering, a vertical spacing before can be necessary, like \motcletex!\vspace! or \motcletex!\bigskip!\ldots
\end{warningblock}
-\subsection{Clés et options}
+\subsection{Keys and options}
\begin{tipblock}
The first argument, mandatory and between \texttt{[...]}, proposes the following \Cle{keys} :
\begin{itemize}
+ \item \cmaj{0.1.3} \Cle{StorePostIt} : name (for futher \TikZ{} code) of the Post-It ; \hfill{}default : \Cle{PostIt}
\item \Cle{Width} : width (in cm) of the Post-It ; \hfill{}default : \Cle{6cm}
\item \Cle{Color} : color of the Post-It (border is a bit darker) ; \hfill{}default : \Cle{yellow}
\item \Cle{Height} : hieght (in cm, if needed) of the Post-It (\textit{automatic} by default) ;
@@ -381,6 +391,47 @@ The second argument, optional and between \texttt{<...>} is used to parse option
They can be used to modify locally options not present in the keys.
\end{tipblock}
+\subsection{Anchor points}
+
+\begin{tipblock}
+Some anchor points are created with the code :
+
+\begin{itemize}
+ \item \motcletex!(<name>-N)!, \motcletex!(<name>-E)!, \motcletex!(<name>-S)! et \motcletex!(<name>-W)! for North/East/South/West ;
+ \item \motcletex!(<name>-N-W)!, \motcletex!(<name>-N-E)!, \motcletex!(<name>-S-E)! and \motcletex!(<name>-S-W)! for North East/North West/\ldots.
+\end{itemize}
+\end{tipblock}
+
+\begin{DemoCode}[]
+\begin{center}
+\begin{PostItNote}[Rotate=10,Pin=None,Render=tikz,StorePostIt=MySmallNote1]
+ \lipsum[1][1-2]
+\end{PostItNote}
+\end{center}
+\end{DemoCode}
+
+\begin{tikzpicture}[remember picture,overlay]
+ \foreach \dir/\pos in {N-W/above left,N/above,N-E/above right,E/right, S-E/below right,S/below,S-W/below left,W/left}
+ {%
+ \draw[draw=blue,fill=red] (MySmallNote1-\dir) circle[radius=2pt] node[text=gray,\pos,font=\scriptsize\ttfamily] {MySmallNote1-\dir};%
+ }
+\end{tikzpicture}
+
+\begin{DemoCode}[]
+\begin{PostItNote}[StorePostIt=NoteY]<center>
+ This is a small Post-It ! For example \[(a+b)^2=a^2+2ab+b^2.\]
+\end{PostItNote}\\
+\begin{PostItNote}[Render=tikz,Width=8cm,Color=blue,Rotate=-5,StorePostIt=NoteZ]
+ \lipsum[1][1-2]
+\end{PostItNote}
+
+\begin{tikzpicture}[remember picture,overlay]
+ \draw[very thick,->,>=latex] (NoteY-S)to[out=-90,in=90](NoteZ-N) ;
+\end{tikzpicture}
+\end{DemoCode}
+
+\subsection{Examples}
+
\begin{DemoCode}[]
\begin{PostItNote}%tcbox rendering
[Color=cyan,Pin=Paperclip,Width=10cm,Rotate=10]<center,right=1.5cm>
@@ -405,10 +456,6 @@ They can be used to modify locally options not present in the keys.
\end{PostItNote}\hfill~
\end{DemoCode}
-\pagebreak
-
-\subsection{Examples}
-
\begin{DemoCode}[]
%usepackage{wrapstuff}
\begin{wrapstuff}[r,top=1]
diff --git a/Master/texmf-dist/doc/latex/postit/postit-doc-fr.pdf b/Master/texmf-dist/doc/latex/postit/postit-doc-fr.pdf
index cd0466ba1f8..4f1da42dd40 100644
--- a/Master/texmf-dist/doc/latex/postit/postit-doc-fr.pdf
+++ b/Master/texmf-dist/doc/latex/postit/postit-doc-fr.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/postit/postit-doc-fr.tex b/Master/texmf-dist/doc/latex/postit/postit-doc-fr.tex
index 9cc78fa4bad..e86bc97ec9a 100644
--- a/Master/texmf-dist/doc/latex/postit/postit-doc-fr.tex
+++ b/Master/texmf-dist/doc/latex/postit/postit-doc-fr.tex
@@ -4,8 +4,8 @@
\documentclass[french,a4paper,11pt]{article}
\usepackage[margin=2cm,includefoot]{geometry}
-\def\TPversion{0.1.2}
-\def\TPdate{6 juin 2023}
+\def\TPversion{0.1.3}
+\def\TPdate{12 juin 2023}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{amsmath,amssymb}
@@ -80,14 +80,14 @@
keywordstyle={\color{blue}},%
classoffset=1,%
alsoletter={-},%
- morekeywords={center,right,justify,left,\lipsum},%
+ morekeywords={center,justify,\lipsum},%
keywordstyle={\color{violet}},%
classoffset=2,%
alsoletter={-},%
morekeywords={PostIt,\MiniPostIt},%
keywordstyle={\color{green!50!black}},%
classoffset=3,%
- morekeywords={Couleur,CouleurAttache,Attache,Largeur,Hauteur,Inclinaison,Ombre,Coin,DecalAttache,AlignementH,AlignementV,AlignementPostIt,Bordure,ExtraMargeDroite,Rendu,Titre,PoliceTitre},%
+ morekeywords={Couleur,CouleurAttache,Attache,Largeur,Hauteur,Inclinaison,Ombre,Coin,DecalAttache,AlignementH,AlignementV,AlignementPostIt,Bordure,ExtraMargeDroite,Rendu,Titre,PoliceTitre,RappelPostIt},%
keywordstyle={\color{orange}}
},%
#1
@@ -153,7 +153,7 @@
\vspace{0.25cm}
-{$\blacktriangleright$~~Placer et personnaliser des Post-It ou des \textit{mini-}Post-It.}
+{$\blacktriangleright$~~Placer/personnaliser/nommer des Post-It ou des \textit{mini-}Post-It.}
\vspace{0.25cm}
@@ -161,18 +161,24 @@
\vspace{1cm}
-\begin{PostIt}<center>
+\begin{PostIt}[RappelPostIt=PI1]<center>
Ceci est un petit Post-It ! Pour rappeler par exemple que \[(a+b)^2=a^2+2ab+b^2.\]
\end{PostIt}
-\begin{PostIt}[Rendu=tikz,Largeur=8cm,Couleur=orange,Attache=Trombone,CouleurAttache=blue,Inclinaison=-5,AlignementPostIt=center,Titre={- Titre -},PoliceTitre={\color{blue!50!black}\bfseries\small\sffamily}]
+\begin{PostIt}[Rendu=tikz,Largeur=8cm,Couleur=orange,Attache=Trombone,CouleurAttache=blue,Inclinaison=-5,AlignementPostIt=center,Titre={- Titre -},PoliceTitre={\color{blue!50!black}\bfseries\small\sffamily},RappelPostIt=PI2]
\lipsum[1][1-4]
+
\end{PostIt}
\hfill
-\begin{PostIt}[Hauteur=6cm,AlignementV=center,Couleur=pink,CouleurAttache=blue,Inclinaison=15,Coin,AlignementPostIt=center,Attache=Scotch]
+\begin{PostIt}[Hauteur=6cm,AlignementV=center,Couleur=pink,CouleurAttache=blue,Inclinaison=15,Coin,AlignementPostIt=center,Attache=Scotch,RappelPostIt=PI3]
\lipsum[1][1-4]
\end{PostIt}
+\begin{tikzpicture}[remember picture,overlay]
+ \draw[very thick,->,>=latex] (PI1-S)to[out=-90,in=90](PI2-N) ;
+ \draw[very thick,lime,densely dashed,->,>=latex] (PI2-E)to[out=0,in=180](PI3-S-O) ;
+\end{tikzpicture}
+
\vspace{0.5cm}
%\hfill{}\textit{Merci à Denis Bitouzé et à Gilles Le Bourhis pour leurs retours et idées !}
@@ -204,6 +210,8 @@
\section{Historique}
+\verb|v0.1.3|~:~~~~Les Post-It ont désormais un nom pour réutilisation ultérieure.
+
\verb|v0.1.2|~:~~~~Ajout des clés en langue anglaise.
\verb|v0.1.1|~:~~~~Ajout d'un \motcletex!\vphantom! pour les \textit{mini-}Post-It (hauteur \textit{uniforme}) + Correction de bugs.
@@ -224,7 +232,8 @@ Le package propose de quoi afficher, dans son document \LaTeX, un Post-It (créÃ
\begin{itemize}
\item de spécifier les dimensions, la couleur ;
\item de rajouter une \textit{attache} comme un trombone ou une punaise ;
- \item de personnaliser les bordure et le coin.
+ \item de personnaliser les bordure et le coin ;
+ \item réutiliser des points d'ancrage du Post-It pour décorations ultérieures.
\end{itemize}
Le package propose également de quoi créer un \textit{mini-}Post-It (créé à l'aide d'une \motcletex!tcbox!), avec la possibilité de gérer la couleur et l'ombre.
@@ -252,10 +261,11 @@ Il n'existe pas d'option pour le package, et \packagetex!xcolor! n'est pas charg
\item les librairies \packagetex!tikz! :
\begin{itemize}
\item \packagetex!tikz.calc! ;
+ \item \packagetex!tikz.babel! ;
\item \packagetex!tikz.decorations! ;
\item \packagetex!tikz.decorations.pathmorphing! ;
\end{itemize}
- \item \packagetex!settobox!, \packagetex!xstring! et \packagetex!simplekv!.
+ \item \packagetex!settobox!, \packagetex!xstring!, \packagetex!varwidth! et \packagetex!simplekv!.
\end{itemize}
Il est compatible avec les compilations usuelles en \textsf{latex}, \textsf{pdflatex}, \textsf{lualatex} ou \textsf{xelatex}.
@@ -342,7 +352,8 @@ Avec une \textit{attache} qui "déborde" verticalement (rendu \textsf{tcbox}), i
Le premier argument, optionnel et entre \texttt{[...]}, propose les \Cle{clés} suivantes :
\begin{itemize}
- \item \Cle{Largeur} : largeur (en cm) du Post-It ; \hfill{}défaut : \Cle{6cm}
+ \item \cmaj{0.1.3} \Cle{RappelPostIt} : nom (pour du code \TikZ{} ultérieur) du Post-It ; \hfill{}défaut : \Cle{PostIt}
+ \item \Cle{Largeur} : largeur (en cm) du Post-It ; \hfill{}défaut : \Cle{6cm}
\item \Cle{Couleur} : couleur du Post-It (la bordure sera plus foncée) ; \hfill{}défaut : \Cle{yellow}
\item \Cle{Hauteur} : hauteur (en cm si déclarée) du Post-It (par défaut elle est \textit{automatique}) ;
@@ -383,6 +394,47 @@ Le second argument, optionnel et entre \texttt{<...>} correspond à des options
Elles permettent de modifier localement des options non paramétrées par des clés présentées précédemment.
\end{tipblock}
+\subsection{Fonctionnement des points d'ancrage}
+
+\begin{tipblock}
+En plus du Post-It, le package \packagetex!postit! crée huit points d'ancrage pour le Post-It, qui seront nommés :
+
+\begin{itemize}
+ \item \motcletex!(<nom>-N)!, \motcletex!(<nom>-E)!, \motcletex!(<nom>-S)! et \motcletex!(<nom>-O)! pour les points Nord/Est/Sud/Ouest ;
+ \item \motcletex!(<nom>-N-O)!, \motcletex!(<nom>-N-E)!, \motcletex!(<nom>-S-E)! et \motcletex!(<nom>-S-O)! pour les points Nord Est/Nord Ouest/\ldots.
+\end{itemize}
+\end{tipblock}
+
+\begin{DemoCode}[]
+\begin{center}
+\begin{PostIt}[Inclinaison=10,Attache=Non,Rendu=tikz,RappelPostIt=MaPetiteNote1]
+ \lipsum[1][1-2]
+\end{PostIt}
+\end{center}
+\end{DemoCode}
+
+\begin{tikzpicture}[remember picture,overlay]
+ \foreach \dir/\pos in {N-O/above left,N/above,N-E/above right,E/right, S-E/below right,S/below,S-O/below left,O/left}
+ {%
+ \draw[draw=blue,fill=red] (MaPetiteNote1-\dir) circle[radius=2pt] node[text=gray,\pos,font=\scriptsize\ttfamily] {MaPetiteNote1-\dir};%
+ }
+\end{tikzpicture}
+
+\begin{DemoCode}[]
+\begin{PostIt}[RappelPostIt=NoteY]<center>
+ Ceci est un petit Post-It ! Pour rappeler par exemple que \[(a+b)^2=a^2+2ab+b^2.\]
+\end{PostIt}\\
+\begin{PostIt}[Rendu=tikz,Largeur=8cm,Couleur=blue,Inclinaison=-5,RappelPostIt=NoteZ]
+ \lipsum[1][1-2]
+\end{PostIt}
+
+\begin{tikzpicture}[remember picture,overlay]
+ \draw[very thick,->,>=latex] (NoteY-S)to[out=-90,in=90](NoteZ-N) ;
+\end{tikzpicture}
+\end{DemoCode}
+
+\subsection{Exemples}
+
\begin{DemoCode}[]
\begin{PostIt}%moteur de rendu tcbox (défaut)
[Couleur=cyan,Attache=Trombone,Largeur=10cm,Inclinaison=10]<center,right=1.5cm>
@@ -407,10 +459,6 @@ Elles permettent de modifier localement des options non paramétrées par des cl
\end{PostIt}\hfill~
\end{DemoCode}
-\pagebreak
-
-\subsection{Exemples}
-
\begin{DemoCode}[]
%usepackage{wrapstuff}
\begin{wrapstuff}[r,top=1]
diff --git a/Master/texmf-dist/tex/latex/postit/postit.sty b/Master/texmf-dist/tex/latex/postit/postit.sty
index eb52909d993..e5b78de089e 100644
--- a/Master/texmf-dist/tex/latex/postit/postit.sty
+++ b/Master/texmf-dist/tex/latex/postit/postit.sty
@@ -3,7 +3,8 @@
% or later, see http://www.latex-project.org/lppl.txtf
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{postit}[2023/06/06 0.1.2 Display sticky notes in a doc]
+\ProvidesPackage{postit}[2023/06/12 0.1.3 Display sticky notes in a doc]
+%0.1.3 Nodes for tikz' link between postits
%0.1.2 English version (keys & command)
%0.1.1 Ajout d'un \vphantom pour les mini-post-it + moteur de rendu tikz en supplément
%0.1.0 Version initiale
@@ -13,9 +14,10 @@
\RequirePackage{simplekv}
\RequirePackage{xstring}
\RequirePackage{settobox}
+\RequirePackage{varwidth}
%------Librairies
\tcbuselibrary{skins}
-\usetikzlibrary{calc,positioning,decorations,decorations.pathmorphing}
+\usetikzlibrary{calc,positioning,decorations,decorations.pathmorphing,babel}
%------variables utiles
\newsavebox{\maboitepostit}
@@ -86,7 +88,8 @@
Rendu=\def\PostItRender{#1},%
ExtraMargeDroite=\def\PostItExtraMargin{#1},%
Titre=\def\PostItTitre{#1},%
- PoliceTitre=\def\PostItPoliceTitre{#1}
+ PoliceTitre=\def\PostItPoliceTitre{#1},%
+ RappelPostIt=\def\PostItRappel{#1}
}
\setKVdefault[postit]{%
@@ -107,7 +110,8 @@
Rendu=tcbox,%
ExtraMargeDroite=0cm,%
Titre={},%
- PoliceTitre=\normalfont\normalsize
+ PoliceTitre=\normalfont\normalsize,%
+ RappelPostIt=PostIt
}
%------Style principal tcolorbox
@@ -140,6 +144,19 @@
\IfStrEq{\PostItDeco}{Non}%
{\def\CommandeDecoration{}\def\MarginOffsetV{0mm}}%
{}%
+ %gestion des coins/noeuds
+ \tcbset{noeudscoin/.style={remember,underlay={%
+ \coordinate (\PostItRappel-N-O) at (frame.north west) ;
+ \coordinate (\PostItRappel-N-E) at (frame.north east) ;
+ \coordinate (\PostItRappel-S-E) at (frame.south east) ;
+ \coordinate (\PostItRappel-S-O) at (frame.south west) ;
+ \coordinate (\PostItRappel-N) at (frame.north) ;
+ \coordinate (\PostItRappel-S) at (frame.south) ;
+ \coordinate (\PostItRappel-E) at (frame.east) ;
+ \coordinate (\PostItRappel-O) at (frame.west) ;
+ }%
+ }%
+ }%
%cas de la bordure
\ifboolKV[postit]{Bordure}%
{%
@@ -162,13 +179,13 @@
\IfStrEq{\PostItHauteur}{auto}%
{%
\ifboolKV[postit]{Ombre}%
- {\begin{tcolorbox}[testpostit,#2,bordure,coincoin,drop fuzzy shadow,top={2mm+\MarginOffsetV}]}%
- {\begin{tcolorbox}[testpostit,#2,bordure,coincoin,top={2mm+\MarginOffsetV}]}%
+ {\begin{tcolorbox}[testpostit,#2,bordure,coincoin,drop fuzzy shadow,top={2mm+\MarginOffsetV},noeudscoin]}%
+ {\begin{tcolorbox}[testpostit,#2,bordure,coincoin,top={2mm+\MarginOffsetV},noeudscoin]}%
}%
{%
\ifboolKV[postit]{Ombre}%
- {\begin{tcolorbox}[testpostit,#2,bordure,coincoin,drop fuzzy shadow,height=\PostItHauteur,top={2mm+\MarginOffsetV}]}%
- {\begin{tcolorbox}[testpostit,#2,bordure,coincoin,height=\PostItHauteur,top={2mm+\MarginOffsetV}]}%
+ {\begin{tcolorbox}[testpostit,#2,bordure,coincoin,drop fuzzy shadow,height=\PostItHauteur,top={2mm+\MarginOffsetV},noeudscoin]}%
+ {\begin{tcolorbox}[testpostit,#2,bordure,coincoin,height=\PostItHauteur,top={2mm+\MarginOffsetV},noeudscoin]}%
}%
\IfStrEq{\PostItTitre}{}%
{}%
@@ -214,7 +231,7 @@
{\def\OptionTikzPostIt{current bounding box.center}}{}%
\IfStrEq{\PostItAlignPostIt}{top}%
{\def\OptionTikzPostIt{current bounding box.north}}{}%
- \begin{tikzpicture}[baseline=(\OptionTikzPostIt),rotate=\PostItIncline,line join=bevel,line cap=round]
+ \begin{tikzpicture}[baseline=(\OptionTikzPostIt),rotate=\PostItIncline,line join=bevel,line cap=round,remember picture]
%tracé
%ombre1/2/3
\ifboolKV[postit]{Ombre}%
@@ -237,6 +254,15 @@
}%
{}%
%postit
+ \coordinate (\PostItRappel-N-O) at (0,0) ;
+ \coordinate (\PostItRappel-N-E) at ($(\PostItRappel-N-O)+({\PostItLarg+\PostItExtraMargin},0)$) ;
+ \coordinate (\PostItRappel-S-E) at ($(\PostItRappel-N-E)+({0.15},{-\hauteur+0.15})$) ;
+ \coordinate (\PostItRappel-S-O) at ($(\PostItRappel-S-E)+({-0.15-\PostItLarg-\PostItExtraMargin},{0.13})$) ;
+ \coordinate (\PostItRappel-N) at ($(\PostItRappel-N-O)!0.5!(\PostItRappel-N-E)$) ;
+ \coordinate (\PostItRappel-E) at ($(\PostItRappel-N-E)!0.5!(\PostItRappel-S-E)+(-0.08,0)$) ;
+ \coordinate (\PostItRappel-S) at ($(\PostItRappel-S-E)!0.5!(\PostItRappel-S-O)+(0,-0.07)$) ;
+ \coordinate (\PostItRappel-O) at ($(\PostItRappel-S-O)!0.5!(\PostItRappel-N-O)$) ;
+ %bordure
\ifboolKV[postit]{Bordure}
{%
\shadedraw[draw=\PostItCoul!50!black,line width=0.1mm,top color=\PostItCoul!50,bottom color=\PostItCoul!33]
@@ -402,7 +428,7 @@
{\def\OptionTikzPostIt{current bounding box.center}}{}%
\IfStrEq{\PostItAlignPostIt}{top}%
{\def\OptionTikzPostIt{current bounding box.north}}{}%
- \begin{tikzpicture}[baseline=(\OptionTikzPostIt),rotate=\PostItIncline,line join=bevel,line cap=round]
+ \begin{tikzpicture}[baseline=(\OptionTikzPostIt),rotate=\PostItIncline,line join=bevel,line cap=round,remember picture]
%tracé
%ombre1/2/3
\ifboolKV[postit]{Ombre}%
@@ -424,6 +450,15 @@
to[out=89,in=-90] (0,0) ;
}%
{}%
+ %postit noeuds
+ \coordinate (\PostItRappel-N-O) at (0,0) ;
+ \coordinate (\PostItRappel-N-E) at ($(\PostItRappel-N-O)+({\PostItLarg+\PostItExtraMargin},0)$) ;
+ \coordinate (\PostItRappel-S-E) at ($(\PostItRappel-N-E)+({0.05},{-\hauteur-0.05})$) ;
+ \coordinate (\PostItRappel-S-O) at ($(\PostItRappel-S-E)+({-\PostItLarg-\PostItExtraMargin-0.1},{0})$) ;
+ \coordinate (\PostItRappel-N) at ($(\PostItRappel-N-O)!0.5!(\PostItRappel-N-E)$) ;
+ \coordinate (\PostItRappel-E) at ($(\PostItRappel-N-E)!0.5!(\PostItRappel-S-E)+(-0.025,0)$) ;
+ \coordinate (\PostItRappel-S) at ($(\PostItRappel-S-E)!0.5!(\PostItRappel-S-O)$) ;
+ \coordinate (\PostItRappel-O) at ($(\PostItRappel-S-O)!0.5!(\PostItRappel-N-O)+(0.025,0)$) ;
%postit
\ifboolKV[postit]{Bordure}
{%
@@ -597,7 +632,8 @@
Render=\def\PostItRender{#1},%
ExtraRightMargin=\def\PostItExtraMargin{#1},%
Title=\def\PostItTitre{#1},%
- FontTitle=\def\PostItPoliceTitre{#1}
+ FontTitle=\def\PostItPoliceTitre{#1},%
+ StorePostIt=\def\PostItRappel{#1}
}
\setKVdefault[postitnote]{%
@@ -618,7 +654,8 @@
Render=tcbox,%
ExtraRightMargin=0cm,%
Title={},%
- FontTitle=\normalfont\normalsize
+ FontTitle=\normalfont\normalsize,%
+ StorePostIt=PostIt
}
%------Style principal tcolorbox
@@ -651,6 +688,19 @@
\IfStrEq{\PostItDeco}{None}%
{\def\CommandeDecoration{}\def\MarginOffsetV{0mm}}%
{}%
+ %gestion des coins/noeuds
+ \tcbset{noeudscoin/.style={remember,underlay={%
+ \coordinate (\PostItRappel-N-W) at (frame.north west) ;
+ \coordinate (\PostItRappel-N-E) at (frame.north east) ;
+ \coordinate (\PostItRappel-S-E) at (frame.south east) ;
+ \coordinate (\PostItRappel-S-W) at (frame.south west) ;
+ \coordinate (\PostItRappel-N) at (frame.north) ;
+ \coordinate (\PostItRappel-S) at (frame.south) ;
+ \coordinate (\PostItRappel-E) at (frame.east) ;
+ \coordinate (\PostItRappel-W) at (frame.west) ;
+ }%
+ }%
+ }%
%cas de la bordure
\ifboolKV[postitnote]{Border}%
{%
@@ -673,13 +723,13 @@
\IfStrEq{\PostItHauteur}{auto}%
{%
\ifboolKV[postitnote]{Shadow}%
- {\begin{tcolorbox}[testpostitnote,#2,bordure,coincoin,drop fuzzy shadow,top={2mm+\MarginOffsetV}]}%
- {\begin{tcolorbox}[testpostitnote,#2,bordure,coincoin,top={2mm+\MarginOffsetV}]}%
+ {\begin{tcolorbox}[testpostitnote,#2,bordure,coincoin,drop fuzzy shadow,top={2mm+\MarginOffsetV},noeudscoin]}%
+ {\begin{tcolorbox}[testpostitnote,#2,bordure,coincoin,top={2mm+\MarginOffsetV},noeudscoin]}%
}%
{%
\ifboolKV[postitnote]{Shadow}%
- {\begin{tcolorbox}[testpostitnote,#2,bordure,coincoin,drop fuzzy shadow,height=\PostItHauteur,top={2mm+\MarginOffsetV}]}%
- {\begin{tcolorbox}[testpostitnote,#2,bordure,coincoin,height=\PostItHauteur,top={2mm+\MarginOffsetV}]}%
+ {\begin{tcolorbox}[testpostitnote,#2,bordure,coincoin,drop fuzzy shadow,height=\PostItHauteur,top={2mm+\MarginOffsetV},noeudscoin]}%
+ {\begin{tcolorbox}[testpostitnote,#2,bordure,coincoin,height=\PostItHauteur,top={2mm+\MarginOffsetV},noeudscoin]}%
}%
\IfStrEq{\PostItTitre}{}%
{}%
@@ -725,7 +775,7 @@
{\def\OptionTikzPostIt{current bounding box.center}}{}%
\IfStrEq{\PostItAlignPostIt}{top}%
{\def\OptionTikzPostIt{current bounding box.north}}{}%
- \begin{tikzpicture}[baseline=(\OptionTikzPostIt),rotate=\PostItIncline,line join=bevel,line cap=round]
+ \begin{tikzpicture}[baseline=(\OptionTikzPostIt),rotate=\PostItIncline,line join=bevel,line cap=round,remember picture]
%tracé
%ombre1/2/3
\ifboolKV[postitnote]{Shadow}%
@@ -748,6 +798,15 @@
}%
{}%
%postit
+ \coordinate (\PostItRappel-N-W) at (0,0) ;
+ \coordinate (\PostItRappel-N-E) at ($(\PostItRappel-N-W)+({\PostItLarg+\PostItExtraMargin},0)$) ;
+ \coordinate (\PostItRappel-S-E) at ($(\PostItRappel-N-E)+({0.15},{-\hauteur+0.15})$) ;
+ \coordinate (\PostItRappel-S-W) at ($(\PostItRappel-S-E)+({-0.15-\PostItLarg-\PostItExtraMargin},{0.13})$) ;
+ \coordinate (\PostItRappel-N) at ($(\PostItRappel-N-W)!0.5!(\PostItRappel-N-E)$) ;
+ \coordinate (\PostItRappel-E) at ($(\PostItRappel-N-E)!0.5!(\PostItRappel-S-E)+(-0.08,0)$) ;
+ \coordinate (\PostItRappel-S) at ($(\PostItRappel-S-E)!0.5!(\PostItRappel-S-W)+(0,-0.07)$) ;
+ \coordinate (\PostItRappel-W) at ($(\PostItRappel-S-W)!0.5!(\PostItRappel-N-W)$) ;
+ %postit
\ifboolKV[postitnote]{Shadow}
{%
\shadedraw[draw=\PostItCoul!50!black,line width=0.1mm,top color=\PostItCoul!50,bottom color=\PostItCoul!33]
@@ -913,7 +972,7 @@
{\def\OptionTikzPostIt{current bounding box.center}}{}%
\IfStrEq{\PostItAlignPostIt}{top}%
{\def\OptionTikzPostIt{current bounding box.north}}{}%
- \begin{tikzpicture}[baseline=(\OptionTikzPostIt),rotate=\PostItIncline,line join=bevel,line cap=round]
+ \begin{tikzpicture}[baseline=(\OptionTikzPostIt),rotate=\PostItIncline,line join=bevel,line cap=round,remember picture]
%tracé
%ombre1/2/3
\ifboolKV[postitnote]{Shadow}%
@@ -935,6 +994,15 @@
to[out=89,in=-90] (0,0) ;
}%
{}%
+ %postit noeuds
+ \coordinate (\PostItRappel-N-W) at (0,0) ;
+ \coordinate (\PostItRappel-N-E) at ($(\PostItRappel-N-W)+({\PostItLarg+\PostItExtraMargin},0)$) ;
+ \coordinate (\PostItRappel-S-E) at ($(\PostItRappel-N-E)+({0.05},{-\hauteur-0.05})$) ;
+ \coordinate (\PostItRappel-S-W) at ($(\PostItRappel-S-E)+({-\PostItLarg-\PostItExtraMargin-0.1},{0})$) ;
+ \coordinate (\PostItRappel-N) at ($(\PostItRappel-N-W)!0.5!(\PostItRappel-N-E)$) ;
+ \coordinate (\PostItRappel-E) at ($(\PostItRappel-N-E)!0.5!(\PostItRappel-S-E)+(-0.025,0)$) ;
+ \coordinate (\PostItRappel-S) at ($(\PostItRappel-S-E)!0.5!(\PostItRappel-S-W)$) ;
+ \coordinate (\PostItRappel-W) at ($(\PostItRappel-S-W)!0.5!(\PostItRappel-N-W)+(0.025,0)$) ;
%postit
\ifboolKV[postitnote]{Border}
{%