texlive[67305] Master/texmf-dist: postit (8jun23)
commits+karl at tug.org
commits+karl at tug.org
Thu Jun 8 23:01:56 CEST 2023
Revision: 67305
http://tug.org/svn/texlive?view=revision&revision=67305
Author: karl
Date: 2023-06-08 23:01:56 +0200 (Thu, 08 Jun 2023)
Log Message:
-----------
postit (8jun23)
Modified Paths:
--------------
trunk/Master/texmf-dist/doc/latex/postit/README.md
trunk/Master/texmf-dist/tex/latex/postit/postit.sty
Added Paths:
-----------
trunk/Master/texmf-dist/doc/latex/postit/postit-doc-en.pdf
trunk/Master/texmf-dist/doc/latex/postit/postit-doc-en.tex
trunk/Master/texmf-dist/doc/latex/postit/postit-doc-fr.pdf
trunk/Master/texmf-dist/doc/latex/postit/postit-doc-fr.tex
Removed Paths:
-------------
trunk/Master/texmf-dist/doc/latex/postit/postit-doc.pdf
trunk/Master/texmf-dist/doc/latex/postit/postit-doc.tex
Modified: trunk/Master/texmf-dist/doc/latex/postit/README.md
===================================================================
--- trunk/Master/texmf-dist/doc/latex/postit/README.md 2023-06-08 19:50:41 UTC (rev 67304)
+++ trunk/Master/texmf-dist/doc/latex/postit/README.md 2023-06-08 21:01:56 UTC (rev 67305)
@@ -1,7 +1,7 @@
-postit is a package to work with post-it.
---------------------------------------------------
-positi est un package pour travailler des post-it.
---------------------------------------------------
+postit is a package to work with post-it with [fr] or [en] syntax.
+---------------------------------------------------------------------------------
+postit est un package pour travailler des post-it avec commandes en [fr] ou [en].
+---------------------------------------------------------------------------------
Author : Cédric Pierquet
email : cpierquet at 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
Added: trunk/Master/texmf-dist/doc/latex/postit/postit-doc-en.pdf
===================================================================
(Binary files differ)
Index: trunk/Master/texmf-dist/doc/latex/postit/postit-doc-en.pdf
===================================================================
--- trunk/Master/texmf-dist/doc/latex/postit/postit-doc-en.pdf 2023-06-08 19:50:41 UTC (rev 67304)
+++ trunk/Master/texmf-dist/doc/latex/postit/postit-doc-en.pdf 2023-06-08 21:01:56 UTC (rev 67305)
Property changes on: trunk/Master/texmf-dist/doc/latex/postit/postit-doc-en.pdf
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/pdf
\ No newline at end of property
Added: trunk/Master/texmf-dist/doc/latex/postit/postit-doc-en.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/postit/postit-doc-en.tex (rev 0)
+++ trunk/Master/texmf-dist/doc/latex/postit/postit-doc-en.tex 2023-06-08 21:01:56 UTC (rev 67305)
@@ -0,0 +1,629 @@
+% !TeX TXS-program:compile = txs:///arara
+% arara: pdflatex: {shell: yes, synctex: no, interaction: batchmode}
+% arara: pdflatex: {shell: yes, synctex: no, interaction: batchmode} if found('log', '(undefined references|Please rerun|Rerun to get)')
+
+\documentclass[english,a4paper,11pt]{article}
+\usepackage[margin=2cm,includefoot]{geometry}
+\def\TPversion{0.1.2}
+\def\TPdate{06/06/2023}
+\usepackage[utf8]{inputenc}
+\usepackage[T1]{fontenc}
+\usepackage{amsmath,amssymb}
+\usepackage{postit}
+\usepackage{awesomebox}
+\usepackage{fontawesome5}
+\usepackage{footnote}
+\makesavenoteenv{tabular}
+\usepackage{enumitem}
+\usepackage{tabularray}
+\usepackage{wrapstuff}
+\usepackage{lipsum}
+\usepackage{fancyvrb}
+\usepackage{fancyhdr}
+\fancyhf{}
+\renewcommand{\headrulewidth}{0pt}
+\lfoot{\sffamily\small [postit]}
+\cfoot{\sffamily\small - \thepage{} -}
+\rfoot{\hyperlink{matoc}{\small\faArrowAltCircleUp[regular]}}
+
+%\usepackage{hvlogos}
+\usepackage{hologo}
+\usepackage{xspace}
+\providecommand\tikzlogo{Ti\textit{k}Z}
+\providecommand\TeXLive{\TeX{}Live\xspace}
+\providecommand\PSTricks{\textsf{PSTricks}\xspace}
+\let\pstricks\PSTricks
+\let\TikZ\tikzlogo
+\newcommand\TableauDocumentation{%
+ \begin{tblr}{width=\linewidth,colspec={X[c]X[c]X[c]X[c]X[c]X[c]},cells={font=\sffamily}}
+ {\LARGE \LaTeX} & & & & &\\
+ & {\LARGE \hologo{pdfLaTeX}} & & & & \\
+ & & {\LARGE \hologo{LuaLaTeX}} & & & \\
+ & & & {\LARGE \TikZ} & & \\
+ & & & & {\LARGE \TeXLive} & \\
+ & & & & & {\LARGE \hologo{MiKTeX}} \\
+ \end{tblr}
+}
+
+\usepackage{hyperref}
+\urlstyle{same}
+\hypersetup{pdfborder=0 0 0}
+\setlength{\parindent}{0pt}
+\definecolor{LightGray}{gray}{0.9}
+
+\usepackage{babel}
+%\AddThinSpaceBeforeFootnotes
+%\FrenchFootnotes
+
+\usepackage{listings}
+
+\usepackage{newverbs}
+\newverbcommand{\motcletex}{\color{cyan!75!black}}{}
+\newverbcommand{\packagetex}{\color{violet!75!black}}{}
+
+\tcbuselibrary{listingsutf8}
+\newtcblisting{DemoCode}[1][]{%
+ enhanced,width=0.95\linewidth,center,%
+ bicolor,size=title,%
+ colback=cyan!2!white,%
+ colbacklower=cyan!1!white,%
+ colframe=cyan!75!black,%
+ listing options={%
+ breaklines=true,%
+ breakatwhitespace=true,%
+ style=tcblatex,basicstyle=\small\ttfamily,%
+ tabsize=4,%
+ commentstyle={\itshape\color{gray}},
+ keywordstyle={\color{blue}},%
+ classoffset=0,%
+ keywords={},%
+ alsoletter={-},%
+ keywordstyle={\color{blue}},%
+ classoffset=1,%
+ alsoletter={-},%
+ morekeywords={center,right,justify,left,\lipsum},%
+ keywordstyle={\color{violet}},%
+ classoffset=2,%
+ alsoletter={-},%
+ 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},%
+ keywordstyle={\color{orange}}
+ },%
+ #1
+}
+
+\tcbset{vignettes/.style={%
+ nobeforeafter,box align=base,boxsep=0pt,enhanced,sharp corners=all,rounded corners=southeast,%
+ boxrule=0.75pt,left=7pt,right=1pt,top=0pt,bottom=0.25pt,%
+ }
+}
+
+\tcbset{vignetteMaJ/.style={%
+ fontupper={\vphantom{pf}\footnotesize\ttfamily},
+ vignettes,colframe=purple!50!black,coltitle=white,colback=purple!10,%
+ overlay={\begin{tcbclipinterior}%
+ \fill[fill=purple!75]($(interior.south west)$) rectangle node[rotate=90]{\tiny \sffamily{\textcolor{black}{\scalebox{0.66}[0.66]{\textbf{MàJ}}}}} ($(interior.north west)+(5pt,0pt)$);%
+ \end{tcbclipinterior}}
+ }
+}
+
+\newcommand\Cle[1]{{\small\sffamily\textlangle \textcolor{orange}{#1}\textrangle}}
+\newcommand\cmaj[1]{\tcbox[vignetteMaJ]{#1}\xspace}
+
+\begin{document}
+
+\setlength{\aweboxleftmargin}{0.07\linewidth}
+\setlength{\aweboxcontentwidth}{0.93\linewidth}
+\setlength{\aweboxvskip}{8pt}
+
+\pagestyle{fancy}
+
+\thispagestyle{empty}
+
+\vspace{2cm}
+
+\begin{center}
+ \begin{minipage}{0.75\linewidth}
+ \begin{tcolorbox}[colframe=yellow,colback=yellow!15]
+ \begin{center}
+ \begin{tabular}{c}
+ {\Huge \texttt{postit} [en]}\\
+ \\
+ {\LARGE Small Post-It notes,} \\
+ \\
+ {\LARGE with \textsf{tcolorbox} or \textsf{Ti\textit{k}Z}.} \\
+ \end{tabular}
+
+ \bigskip
+
+ {\small \texttt{Version \TPversion{} -- \TPdate}}
+ \end{center}
+ \end{tcolorbox}
+\end{minipage}
+\end{center}
+
+\begin{center}
+ \begin{tabular}{c}
+ \texttt{Cédric Pierquet}\\
+ {\ttfamily c pierquet -- at -- outlook . fr}\\
+ \texttt{\url{https://github.com/cpierquet/postit}}
+\end{tabular}
+\end{center}
+
+\vspace{0.25cm}
+
+{$\blacktriangleright$~~Display and customize Post-It or \textit{mini-}Post-It.}
+
+\vspace{0.25cm}
+
+{$\blacktriangleright$~~Custom width, height, rotation, decoration\ldots}
+
+\vspace{1cm}
+
+\begin{PostItNote}<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}]
+\lipsum[1][1-4]
+\end{PostItNote}
+\hfill
+\begin{PostItNote}[Height=6cm,AlignV=center,Color=pink,Pin=Scotch,Rotate=15,Corner,AlignPostIt=center,]
+\lipsum[1][1-4]
+\end{PostItNote}
+
+\vspace{0.5cm}
+
+%\hfill{}\textit{Merci à Denis Bitouzé et à Gilles Le Bourhis pour leurs retours et idées !}
+
+\smallskip
+
+\vfill
+
+\hrule
+
+\medskip
+
+\TableauDocumentation
+
+\medskip
+
+\hrule
+
+\medskip
+
+\newpage
+
+\phantomsection
+\hypertarget{matoc}{}
+
+\tableofcontents
+
+\vfill
+
+\section{History}
+
+\verb|v0.1.2|~:~~~~English version.
+
+\verb|v0.1.1|~:~~~~\motcletex!\vphantom! for \textit{mini-}Post-It + Bugfixes + \TikZ{} rendering + optional title .
+
+\verb|v0.1.0|~:~~~~Initial version.
+
+\newpage
+
+\section{The package postit}
+
+\subsection{Introduction}
+
+\begin{noteblock}
+The package proposes small Post-It notes, in a \textsf{tex} doc, created with \packagetex!tcolorbox! or \packagetex!tikz!, with option(s) in order to :
+
+\begin{itemize}
+ \item change dimensions orcolor ;
+ \item use pin deocration like Paperclip, Pushpin or Scotch ;
+ \item customize border and/or corner.
+\end{itemize}
+
+The package propose a command to display \textit{mini-}Post-It (created with \motcletex!tcbox!), with color and shadow customization.
+\end{noteblock}
+
+\subsection{Loading of the package, and option}
+
+\begin{importantblock}
+The package Scrabble loads within the preamble.
+
+There's no option, and \packagetex!xcolor! isn't loaded.
+\end{importantblock}
+
+\begin{DemoCode}[listing only]
+\documentclass{article}
+\usepackage{postit}
+
+\end{DemoCode}
+
+\begin{noteblock}
+\packagetex!postit! loads the following packages and libraries :
+
+\begin{itemize}
+ \item \packagetex!tcolorbox! with library \packagetex!tcbox.skins! ;
+ \item \packagetex!tikz! libraries :
+ \begin{itemize}
+ \item \packagetex!tikz.calc! ;
+ \item \packagetex!tikz.decorations! ;
+ \item \packagetex!tikz.decorations.pathmorphing! ;
+ \end{itemize}
+ \item \packagetex!settobox!, \packagetex!xstring! and \packagetex!simplekv!.
+\end{itemize}
+
+It’s mostly compatible with \textsf{latex}, \textsf{pdflatex}, \textsf{lualatex} or \textsf{xelatex} compilation !
+\end{noteblock}
+
+\subsection{Compatibility}
+
+\begin{cautionblock}
+If an other package loads \packagetex!tcolorbox!, with \Cle{[most]} option, it's better to load \packagetex!postit! after, to avoid \motcletex!option clash error...!.
+\end{cautionblock}
+
+\begin{DemoCode}[listing only]
+\documentclass{article}
+\usepackage[<librairies>]{tcolorbox}
+\usepackage{postit}
+...
+
+\end{DemoCode}
+
+\vfill~
+
+\pagebreak
+
+\section{Post-It Environment}
+
+\subsection{Environment}
+
+\begin{cautionblock}
+The environment to display a Post-It note is \packagetex!PostItNote!.
+
+It works with keys, between \texttt{[...]} and, with \texttt{<...>}, it's possible to parse options to the \motcletex!tcbox! (not necessary with \motcletex!tikz!) !
+\end{cautionblock}
+
+\begin{DemoCode}[listing only]
+\begin{PostIt}[keys]<options tcbox>
+...
+...
+\end{PostIt}
+\end{DemoCode}
+
+\begin{noteblock}
+As mentionned in the introduction, the Post-It note is create with a \motcletex!tcbox! or a \motcletex!tikzpicture!.
+
+Most of the \motcletex!tcbox!/\motcletex!tikzpicture! parameters are fixed by the code, but some of them are configurable !
+\end{noteblock}
+
+\begin{DemoCode}[]
+%default rendering (tcbox), with lipsum paragraph
+\begin{PostItNote}
+\lipsum[1][1-2]
+\end{PostItNote}
+\end{DemoCode}
+
+\begin{DemoCode}[]
+%tikz rendering, with lipsum paragraph
+\begin{PostItNote}[Render=tikz]
+\lipsum[1][1-2]
+\end{PostItNote}
+%tikzv2 rendering, with lipsum paragraph
+\begin{PostItNote}[Render=tikzv2]
+\lipsum[1][1-2]
+\end{PostItNote}
+\end{DemoCode}
+
+\begin{tipblock}
+The colors must be used as \textit{single}, without \textit{mixes} (with \motcletex|CouleurA!...!CouleurB|) proposed by \packagetex!xcolor!.
+
+
+However, every predefined color can be used within the Post-It.
+\end{tipblock}
+
+\begin{tipblock}
+The Post-It can be used with a \motcletex!minipage! or a \motcletex!wrapstuff! if needed.
+
+For horizontal alignement, \motcletex!\hfill! or \motcletex!flush...! can be used.
+\end{tipblock}
+
+\begin{warningblock}
+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}
+
+\begin{tipblock}
+The first argument, mandatory and between \texttt{[...]}, proposes the following \Cle{keys} :
+
+\begin{itemize}
+ \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) ;
+
+ \hfill{}default : \Cle{auto}
+ \item \cmaj{0.1.1} \Cle{Render} : engine, within \Cle{tcbox / tikz / tikv2} ; \hfill{}default : \Cle{tcbox}
+ \item \Cle{Rotation} : rotation of the Post-It ; \hfill{}default : \Cle{0}
+ \item \Cle{Shadow} : boolean for shadow ; \hfill{}default : \Cle{true}
+ \item \Cle{Border} : boolean for a thin border ; \hfill{}default : \Cle{true}
+ \item \Cle{Corner} : boolean to the corner decoration (\motcletex!tcbox!) ; \hfill{}default : \Cle{false}
+ \item \Cle{Pin} : decoration, within \Cle{Paperclip / Pushpin / None / Scotch} ;
+
+ \hfill{}default : \Cle{Pushpin}
+ \item \Cle{PinColor} : color of the pin ; \hfill{}default : \Cle{red}
+ \item \Cle{PinsShift} : horizontal shift (without unity, but in cm) of the orginal position of the pin \hfill{}default : \Cle{0}
+ \item \cmaj{0.1.1} \Cle{Title} : add a title (1st line and/or under the pin) ; \hfill{}default : \Cle{empty}
+ \item \cmaj{0.1.1} \Cle{Fonttitle} : font of the titel ; \hfill{}default : \Cle{\textbackslash normalfont\textbackslash normalfont}
+ \item \cmaj{0.1.1} \Cle{ExtraRightMargin} : add (with \packagetex!tikz! rendering, and in cm) à right margin ;
+
+ \hfill{}default : \Cle{0cm}
+ \item \Cle{AlignV} : vertical alignement in the Post-It (within \Cle{top/center/bottom}) ;
+
+ \hfill{}default : \Cle{top}
+ \item \Cle{AlignH} : horizontal alignment in the Post-It (within \Cle{left/center/right/justify}) ;
+
+ \hfill{}default : \Cle{justify}
+ \item \Cle{AlignPostIt} : vertical alignemnt of the Post-It (within \Cle{top/center/bottom}).
+
+ \hfill{}default : \Cle{bottom}
+\end{itemize}
+\vspace*{-\baselineskip}\leavevmode
+\end{tipblock}
+
+\begin{tipblock}
+The second argument, optional and between \texttt{<...>} is used to parse options to the \motcletex!tcolorbox!.
+
+They can be used to modify locally options not present in the keys.
+\end{tipblock}
+
+\begin{DemoCode}[]
+\begin{PostItNote}%tcbox rendering
+ [Color=cyan,Pin=Paperclip,Width=10cm,Rotate=10]<center,right=1.5cm>
+\lipsum[1][1-3]
+\end{PostItNote}
+\end{DemoCode}
+
+\begin{DemoCode}[]
+\hfill\begin{PostItNote}%tikz rendering
+ [Render=tikz,Color=violet,Width=9cm,Rotate=-10,Pin=Paperclip,
+ PinColor=black,ExtraRightMargin=1cm,Title={Small title},
+ FontTitle={\color{white}\bfseries\small\sffamily}]
+\lipsum[1][1-3]
+\end{PostItNote}\hfill~
+\end{DemoCode}
+
+\begin{DemoCode}[]
+\hfill\begin{PostItNote}%tikzv2 rendering
+ [Render=tikzv2,Color=orange,Width=9cm,rotate=-10,Pin=Scotch, Title={Try},
+ FontTitle={\color{blue!50!black}\bfseries\itshape\small\ttfamily}]
+\lipsum[1][1-3]
+\end{PostItNote}\hfill~
+\end{DemoCode}
+
+\pagebreak
+
+\subsection{Examples}
+
+\begin{DemoCode}[]
+%usepackage{wrapstuff}
+\begin{wrapstuff}[r,top=1]
+\begin{PostItNote}[Rotate=5,Corner,Color=pink,PinkColor=blue,Border=false]
+\lipsum[1][1-2]
+\end{PostItNote}
+\end{wrapstuff}
+
+\lipsum[1]
+\end{DemoCode}
+
+\begin{DemoCode}[]
+%usepackage{wrapstuff}
+\begin{wrapstuff}[r,top=1]
+\begin{PostItNote}[Rotate=5,Render=tikz,Color=pink, PinkColor=blue,Border=false]
+\lipsum[1][1-2]
+\end{PostItNote}
+\end{wrapstuff}
+
+\lipsum[1]
+\end{DemoCode}
+
+\begin{DemoCode}[]
+%usepackage{wrapstuff}
+\begin{wrapstuff}[r,top=1]
+\begin{PostItNote}[Rotate=5,Render=tikzv2,Pin=Scotch,Color=pink]
+\lipsum[1][1-2]
+\end{PostItNote}
+\end{wrapstuff}
+
+\lipsum[1]
+\end{DemoCode}
+
+\begin{DemoCode}[]
+A small Post-It, and vertically aligned :
+%
+\hfill\begin{PostItNote}[Rotate=-10,Color=orange,Width=5cm,Height=5cm, AlignV=center,Corner,PinColor=yellow, PinShift=-1,AlignPostIt=center]
+
+\textsf{\small\lipsum[1][1-2]}
+\[\mathsf{\displaystyle\sum_{k=1}^{n} k = \dfrac{n(n+1)}{2}}\]
+\end{PostItNote}
+\end{DemoCode}
+
+\pagebreak
+
+\section{Simple inline Post-It Note}
+
+\subsection{Command}
+
+\begin{cautionblock}
+The inline \textit{mini-}Post-It note is \motcletex!MiniPostIt!.
+
+The only optional paramater for the \motcletex!tcbox! Post-It is the color
+
+\smallskip
+
+Dimensions can't be changed, a \motcletex!\vphantom! is insered at beginning to prevent different heights.
+\end{cautionblock}
+
+\begin{DemoCode}[listing only]
+\MiniPostIt(*)[color]{text}
+\end{DemoCode}
+
+\subsection{Arguments}
+
+\begin{noteblock}
+The starred version show the shadow og the \textit{mini-}Post-It.
+
+The color (\Cle{yellow}), is the only optional argument, between \texttt{[...]}.
+\end{noteblock}
+
+\subsection{Examples}
+
+\begin{DemoCode}[]
+To solve Diophantine equations, we can use \MiniPostIt*[orange]{Bezout's thorem}, and \MiniPostIt{Gauss' theorem}, with the \MiniPostIt*[cyan]{reciprocal}.
+
+It's classic and good to know !
+\end{DemoCode}
+
+\pagebreak
+
+\section{Gallery of styles}
+
+\subsection{Render by tcbox}
+
+\begin{DemoCode}[text only]
+\hfill\begin{PostItNote}
+\texttt{Shadow/PushPin/Border}
+\end{PostItNote}
+\begin{PostIt}[Shadow=false]
+\texttt{Pin/Border}
+\end{PostIt}\hfill~
+
+\medskip
+
+\hfill\begin{PostItNote}[Border=false]
+\texttt{Shadow/Pushpin}
+\end{PostItNote}
+\begin{PostItNote}[Border=false,Shadow=false]
+\texttt{Pushpin}
+\end{PostItNote}\hfill~
+
+\medskip
+
+\hfill\begin{PostItNote}[Pin=Paperclip]
+\texttt{Shadow/Paperclip/Border}\\
+~
+\end{PostItNote}
+\begin{PostItNote}[Pin=Scotch]
+\texttt{Shadow/Scotch/Border}\\
+~
+\end{PostItNote}\hfill~
+
+\medskip
+
+\hfill\begin{PostItNote}[Pin=None]
+\texttt{Shadow/Border}
+\end{PostItNote}
+\begin{PostItNote}[Corner,Pin=None]
+\texttt{Shadow/Border/Corner}
+\end{PostItNote}\hfill~
+
+\vspace{1cm}
+
+\hfill\begin{PostItNote}[Title={Lipsum[1][1-4]},FontTitle={\large\sffamily},Rotate=5,Color=pink,Height=6cm,Pin=Scotch,AlignV=center,Corner]
+\lipsum[1][1-4]
+\end{PostItNote}\hfill~
+\end{DemoCode}
+
+\pagebreak
+
+\subsection{Render by tikz}
+
+\begin{DemoCode}[text only]
+\hfill\begin{PostItNote}[Render=tikz]
+\texttt{Shadow/Pushpin/Border}
+\end{PostItNote}
+\begin{PostItNote}[Shadow=false,Render=tikz]
+\texttt{Pushpin/Border}
+\end{PostItNote}\hfill~
+
+\medskip
+
+\hfill\begin{PostItNote}[Border=false,Render=tikz]
+\texttt{Shadow/Pushpin}
+\end{PostItNote}
+\begin{PostItNote}[Border=false,Shadow=false,Render=tikz]
+\texttt{Pushpin}
+\end{PostItNote}\hfill~
+
+\medskip
+
+\hfill\begin{PostItNote}[Pin=Paperclip,Render=tikz]
+\texttt{Shadow/Paperclip/Border}\\
+~
+\end{PostItNote}
+\begin{PostItNote}[Pin=Scotch,Render=tikz]
+\texttt{Shadow/Scotch/Border}\\
+~
+\end{PostItNote}\hfill~
+
+\medskip
+
+\hfill\begin{PostItNote}[Pin=None,Render=tikz]
+\texttt{Shadow/Border}
+\end{PostItNote}\hfill~
+
+\vspace{1cm}
+
+\hfill\begin{PostItNote}[Render=tikz,Title={Lipsum[1][1-4]},FontTitle={\large\sffamily},Rotate=5,Color=pink,Height=6cm,Pin=Scotch,AlignV=center,Corner]
+\lipsum[1][1-4]
+\end{PostItNote}\hfill~
+\end{DemoCode}
+
+\subsection{Render by tikzv2}
+
+\begin{DemoCode}[text only]
+\hfill\begin{PostItNote}[Render=tikzv2]
+\texttt{Shadow/Pushpin/Border}
+\end{PostItNote}
+\begin{PostItNote}[Shadow=false,Render=tikzv2]
+\texttt{Pushpin/Border}
+\end{PostItNote}\hfill~
+
+\medskip
+
+\hfill\begin{PostItNote}[Border=false,Render=tikzv2]
+\texttt{Shadow/Pushpin}
+\end{PostItNote}
+\begin{PostItNote}[Border=false,Shadow=false,Render=tikzv2]
+\texttt{Pushpin}
+\end{PostItNote}\hfill~
+
+\medskip
+
+\hfill\begin{PostItNote}[Pin=Paperclip,Render=tikzv2]
+\texttt{Shadow/Paperclip/Border}\\
+~
+\end{PostItNote}
+\begin{PostItNote}[Pin=Scotch,Render=tikzv2]
+\texttt{Shadow/Scotch/Border}\\
+~
+\end{PostItNote}\hfill~
+
+\medskip
+
+\hfill\begin{PostItNote}[Pin=None,Render=tikzv2]
+\texttt{Shadow/Border}
+\end{PostItNote}\hfill~
+
+\vspace{1cm}
+
+\hfill\begin{PostItNote}[Render=tikzv2,Title={Lipsum[1][1-4]},FontTitle={\large\sffamily},Rotate=5,Color=pink,Height=6cm,Pin=Scotch,AlignV=center,Corner]
+\lipsum[1][1-4]
+\end{PostItNote}\hfill~
+\end{DemoCode}
+
+\end{document}
\ No newline at end of file
Property changes on: trunk/Master/texmf-dist/doc/latex/postit/postit-doc-en.tex
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: trunk/Master/texmf-dist/doc/latex/postit/postit-doc-fr.pdf
===================================================================
(Binary files differ)
Index: trunk/Master/texmf-dist/doc/latex/postit/postit-doc-fr.pdf
===================================================================
--- trunk/Master/texmf-dist/doc/latex/postit/postit-doc-fr.pdf 2023-06-08 19:50:41 UTC (rev 67304)
+++ trunk/Master/texmf-dist/doc/latex/postit/postit-doc-fr.pdf 2023-06-08 21:01:56 UTC (rev 67305)
Property changes on: trunk/Master/texmf-dist/doc/latex/postit/postit-doc-fr.pdf
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/pdf
\ No newline at end of property
Added: trunk/Master/texmf-dist/doc/latex/postit/postit-doc-fr.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/postit/postit-doc-fr.tex (rev 0)
+++ trunk/Master/texmf-dist/doc/latex/postit/postit-doc-fr.tex 2023-06-08 21:01:56 UTC (rev 67305)
@@ -0,0 +1,651 @@
+% !TeX TXS-program:compile = txs:///arara
+% arara: pdflatex: {shell: yes, synctex: no, interaction: batchmode}
+% arara: pdflatex: {shell: yes, synctex: no, interaction: batchmode} if found('log', '(undefined references|Please rerun|Rerun to get)')
+
+\documentclass[french,a4paper,11pt]{article}
+\usepackage[margin=2cm,includefoot]{geometry}
+\def\TPversion{0.1.2}
+\def\TPdate{6 juin 2023}
+\usepackage[utf8]{inputenc}
+\usepackage[T1]{fontenc}
+\usepackage{amsmath,amssymb}
+\usepackage{postit}
+\usepackage{awesomebox}
+\usepackage{fontawesome5}
+\usepackage{footnote}
+\makesavenoteenv{tabular}
+\usepackage{enumitem}
+\usepackage{tabularray}
+\usepackage{wrapstuff}
+\usepackage{lipsum}
+\usepackage{fancyvrb}
+\usepackage{fancyhdr}
+\fancyhf{}
+\renewcommand{\headrulewidth}{0pt}
+\lfoot{\sffamily\small [postit]}
+\cfoot{\sffamily\small - \thepage{} -}
+\rfoot{\hyperlink{matoc}{\small\faArrowAltCircleUp[regular]}}
+
+%\usepackage{hvlogos}
+\usepackage{hologo}
+\providecommand\tikzlogo{Ti\textit{k}Z}
+\providecommand\TeXLive{\TeX{}Live\xspace}
+\providecommand\PSTricks{\textsf{PSTricks}\xspace}
+\let\pstricks\PSTricks
+\let\TikZ\tikzlogo
+\newcommand\TableauDocumentation{%
+ \begin{tblr}{width=\linewidth,colspec={X[c]X[c]X[c]X[c]X[c]X[c]},cells={font=\sffamily}}
+ {\LARGE \LaTeX} & & & & &\\
+ & {\LARGE \hologo{pdfLaTeX}} & & & & \\
+ & & {\LARGE \hologo{LuaLaTeX}} & & & \\
+ & & & {\LARGE \TikZ} & & \\
+ & & & & {\LARGE \TeXLive} & \\
+ & & & & & {\LARGE \hologo{MiKTeX}} \\
+ \end{tblr}
+}
+
+\usepackage{hyperref}
+\urlstyle{same}
+\hypersetup{pdfborder=0 0 0}
+\setlength{\parindent}{0pt}
+\definecolor{LightGray}{gray}{0.9}
+
+\usepackage{babel}
+\AddThinSpaceBeforeFootnotes
+\FrenchFootnotes
+
+\usepackage{listings}
+
+\usepackage{newverbs}
+\newverbcommand{\motcletex}{\color{cyan!75!black}}{}
+\newverbcommand{\packagetex}{\color{violet!75!black}}{}
+
+\tcbuselibrary{listingsutf8}
+\newtcblisting{DemoCode}[1][]{%
+ enhanced,width=0.95\linewidth,center,%
+ bicolor,size=title,%
+ colback=cyan!2!white,%
+ colbacklower=cyan!1!white,%
+ colframe=cyan!75!black,%
+ listing options={%
+ breaklines=true,%
+ breakatwhitespace=true,%
+ style=tcblatex,basicstyle=\small\ttfamily,%
+ tabsize=4,%
+ commentstyle={\itshape\color{gray}},
+ keywordstyle={\color{blue}},%
+ classoffset=0,%
+ keywords={},%
+ alsoletter={-},%
+ keywordstyle={\color{blue}},%
+ classoffset=1,%
+ alsoletter={-},%
+ morekeywords={center,right,justify,left,\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},%
+ keywordstyle={\color{orange}}
+ },%
+ #1
+}
+
+\tcbset{vignettes/.style={%
+ nobeforeafter,box align=base,boxsep=0pt,enhanced,sharp corners=all,rounded corners=southeast,%
+ boxrule=0.75pt,left=7pt,right=1pt,top=0pt,bottom=0.25pt,%
+ }
+}
+
+\tcbset{vignetteMaJ/.style={%
+ fontupper={\vphantom{pf}\footnotesize\ttfamily},
+ vignettes,colframe=purple!50!black,coltitle=white,colback=purple!10,%
+ overlay={\begin{tcbclipinterior}%
+ \fill[fill=purple!75]($(interior.south west)$) rectangle node[rotate=90]{\tiny \sffamily{\textcolor{black}{\scalebox{0.66}[0.66]{\textbf{MàJ}}}}} ($(interior.north west)+(5pt,0pt)$);%
+ \end{tcbclipinterior}}
+ }
+}
+
+\newcommand\Cle[1]{{\small\sffamily\textlangle \textcolor{orange}{#1}\textrangle}}
+\newcommand\cmaj[1]{\tcbox[vignetteMaJ]{#1}\xspace}
+
+\begin{document}
+
+\setlength{\aweboxleftmargin}{0.07\linewidth}
+\setlength{\aweboxcontentwidth}{0.93\linewidth}
+\setlength{\aweboxvskip}{8pt}
+
+\pagestyle{fancy}
+
+\thispagestyle{empty}
+
+\vspace{2cm}
+
+\begin{center}
+ \begin{minipage}{0.75\linewidth}
+ \begin{tcolorbox}[colframe=yellow,colback=yellow!15]
+ \begin{center}
+ \begin{tabular}{c}
+ {\Huge \texttt{postit} [fr]}\\
+ \\
+ {\LARGE Des petits Post-It,} \\
+ \\
+ {\LARGE avec \textsf{tcolorbox} ou \textsf{Ti\textit{k}Z}.} \\
+ \end{tabular}
+
+ \bigskip
+
+ {\small \texttt{Version \TPversion{} -- \TPdate}}
+ \end{center}
+ \end{tcolorbox}
+\end{minipage}
+\end{center}
+
+\begin{center}
+ \begin{tabular}{c}
+ \texttt{Cédric Pierquet}\\
+ {\ttfamily c pierquet -- at -- outlook . fr}\\
+ \texttt{\url{https://github.com/cpierquet/postit}}
+\end{tabular}
+\end{center}
+
+\vspace{0.25cm}
+
+{$\blacktriangleright$~~Placer et personnaliser des Post-It ou des \textit{mini-}Post-It.}
+
+\vspace{0.25cm}
+
+{$\blacktriangleright$~~Gestion de la taille, de l'inclinaison, de la décoration.}
+
+\vspace{1cm}
+
+\begin{PostIt}<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}]
+\lipsum[1][1-4]
+\end{PostIt}
+\hfill
+\begin{PostIt}[Hauteur=6cm,AlignementV=center,Couleur=pink,CouleurAttache=blue,Inclinaison=15,Coin,AlignementPostIt=center,Attache=Scotch]
+\lipsum[1][1-4]
+\end{PostIt}
+
+\vspace{0.5cm}
+
+%\hfill{}\textit{Merci à Denis Bitouzé et à Gilles Le Bourhis pour leurs retours et idées !}
+
+\smallskip
+
+\vfill
+
+\hrule
+
+\medskip
+
+\TableauDocumentation
+
+\medskip
+
+\hrule
+
+\medskip
+
+\newpage
+
+\phantomsection
+\hypertarget{matoc}{}
+
+\tableofcontents
+
+\vfill
+
+\section{Historique}
+
+\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.
+
+\verb| |~:~~~~Moteurs de rendu alternatif en \TikZ{} + Ajout d'un titre éventuel .
+
+\verb|v0.1.0|~:~~~~Version initiale.
+
+\newpage
+
+\section{Le package postit}
+
+\subsection{Introduction}
+
+\begin{noteblock}
+Le package propose de quoi afficher, dans son document \LaTeX, un Post-It (créé à l'aide de \packagetex!tcolorbox! ou de \packagetex!tikz!), avec la possibilité :
+
+\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.
+\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.
+\end{noteblock}
+
+\subsection{Chargement du package, packages utilisés}
+
+\begin{importantblock}
+Le package se charge, de manière classique, dans le préambule.
+
+Il n'existe pas d'option pour le package, et \packagetex!xcolor! n'est pas chargé.
+\end{importantblock}
+
+\begin{DemoCode}[listing only]
+\documentclass{article}
+\usepackage{postit}
+
+\end{DemoCode}
+
+\begin{noteblock}
+\packagetex!postit! charge les packages suivantes :
+
+\begin{itemize}
+ \item \packagetex!tcolorbox! avec la librairie \packagetex!tcbox.skins! ;
+ \item les librairies \packagetex!tikz! :
+ \begin{itemize}
+ \item \packagetex!tikz.calc! ;
+ \item \packagetex!tikz.decorations! ;
+ \item \packagetex!tikz.decorations.pathmorphing! ;
+ \end{itemize}
+ \item \packagetex!settobox!, \packagetex!xstring! et \packagetex!simplekv!.
+\end{itemize}
+
+Il est compatible avec les compilations usuelles en \textsf{latex}, \textsf{pdflatex}, \textsf{lualatex} ou \textsf{xelatex}.
+\end{noteblock}
+
+\subsection{Compatibilité}
+
+\begin{cautionblock}
+Si un autre package charge \packagetex!tcolorbox!, et notamment avec l'option \Cle{[most]}, il vaut mieux charger \packagetex!postit! après, afin d'éviter un \motcletex!option clash error...!.
+\end{cautionblock}
+
+\begin{DemoCode}[listing only]
+\documentclass{article}
+\usepackage[<librairies>]{tcolorbox}
+\usepackage{postit}
+...
+
+\end{DemoCode}
+
+\vfill~
+
+\pagebreak
+
+\section{Environnement Post-It}
+
+\subsection{Environnement et fonctionnement global}
+
+\begin{cautionblock}
+L'environnement dédié à la création du Post-It est \packagetex!PostIt!.
+
+Il fonctionne avec un système de clés, entre \texttt{[...]} et il est possible, entre \texttt{<...>} de spécifier des options à la \motcletex!tcbox!, en langage \textsf{tcbox} (inutile avec le rendu en \motcletex!tikz!) !
+\end{cautionblock}
+
+\begin{DemoCode}[listing only]
+\begin{PostIt}[clés]<options tcbox>
+...
+...
+\end{PostIt}
+\end{DemoCode}
+
+\begin{noteblock}
+Comme indiqué dans l'introduction, le Post-It est créé à l'aide d'un environnement \motcletex!tcbox! ou d'un environnement \motcletex!tikz!.
+
+La majorité des (multiples) paramètres d'une \motcletex!tcbox! et d'une figuure \motcletex!tikz! sont fixés par le code, mais il est possible de spécifier certaines caractéristiques esthétiques du Post-It !
+\end{noteblock}
+
+\begin{DemoCode}[]
+%sortie par défaut (rendu tcbox), avec un paragraphe issu du package lipsum
+\begin{PostIt}
+\lipsum[1][1-2]
+\end{PostIt}
+\end{DemoCode}
+
+\begin{DemoCode}[]
+%sortie rendu tikz, avec un paragraphe issu du package lipsum
+\begin{PostIt}[Rendu=tikz]
+ \lipsum[1][1-2]
+\end{PostIt}
+%sortie rendu tikzv2, avec un paragraphe issu du package lipsum
+\begin{PostIt}[Rendu=tikzv2]
+ \lipsum[1][1-2]
+\end{PostIt}
+\end{DemoCode}
+
+\begin{tipblock}
+Les éventuelles couleurs choisies devront être données de manière \textit{unique}, sans utiliser les \textit{mélanges} (avec \motcletex|CouleurA!...!CouleurB|) que propose le package \packagetex!xcolor!.
+
+Toutefois, toute couleur précédemment définie pourra être utilisée pour le Post-It.
+\end{tipblock}
+
+\begin{tipblock}
+Le Post-It créé pourra être intégré dans une \motcletex!minipage! ou un \motcletex!wrapstuff! si besoin.
+
+Pour l'alignement horizontal, il est conseillé d'utiliser des commandes dédiées comme \motcletex!\hfill! ou des environnements dédiés comme \motcletex!flush...!.
+\end{tipblock}
+
+\begin{warningblock}
+Avec une \textit{attache} qui "déborde" verticalement (rendu \textsf{tcbox}), il sera sans doute nécessaire d'ajuster l'espacement vertical précédant le Post-It pour éviter un éventuel chevauchement.
+\end{warningblock}
+
+\subsection{Clés et options}
+
+\begin{tipblock}
+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 \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}) ;
+
+ \hfill{}défaut : \Cle{auto}
+ \item \cmaj{0.1.1} \Cle{Rendu} : moteur du rendu parmi \Cle{tcbox / tikz / tikv2} ; \hfill{}défaut : \Cle{tcbox}
+ \item \Cle{Inclinaison} : inclinaison du Post-It ; \hfill{}défaut : \Cle{0}
+ \item \Cle{Ombre} : booléen pour afficher une ombre portée ; \hfill{}défaut : \Cle{true}
+ \item \Cle{Bordure} : booléen pour afficher une fine bordure ; \hfill{}défaut : \Cle{true}
+ \item \Cle{Coin} : booléen pour afficher un coin corné ; \hfill{}défaut : \Cle{false}
+ \item \cmaj{0.1.1} \Cle{Attache} : choix de la décoration, parmi \Cle{Trombone / Punaise / Non / Scotch} ;
+
+ \hfill{}défaut : \Cle{Punaise}
+ \item \Cle{CouleurAttache} : couleur de l'attache ; \hfill{}défaut : \Cle{red}
+ \item \Cle{DecalAttache} : décalage horizontal (sans unité, mais en cm) de l'attache par rapport à sa position initiale (au centre pour la punaise, à 1~cm du bord droit pour le trombone) ;
+
+ \hfill{}défaut : \Cle{0}
+ \item \cmaj{0.1.1} \Cle{Titre} : rajouter un titre (en 1ère ligne et/ou sous l'Attache) ; \hfill{}défaut : \Cle{vide}
+ \item \cmaj{0.1.1} \Cle{PoliceTitre} : police du titre ; \hfill{}défaut : \Cle{\textbackslash normalfont\textbackslash normalfont}
+ \item \cmaj{0.1.1} \Cle{ExtraMargeDroite} : rajoute (en rendu \packagetex!tikz!, et en cm) une marge à droite ;
+
+ \hfill{}défaut : \Cle{0cm}
+ \item \Cle{AlignementV} : gère l'alignement vertical dans le Post-It (parmi \Cle{top/center/bottom}) ;
+
+ \hfill{}défaut : \Cle{top}
+ \item \Cle{AlignementH} : gère l'alignement horizontal dans le Post-It (parmi \Cle{left/center/right/justify}) ;
+
+ \hfill{}défaut : \Cle{justify}
+ \item \Cle{AlignementPostIt} : gère l'alignement vertical global du Post-It (parmi \Cle{top/center/bottom}).
+
+ \hfill{}défaut : \Cle{bottom}
+\end{itemize}
+\vspace*{-\baselineskip}\leavevmode
+\end{tipblock}
+
+\begin{tipblock}
+Le second argument, optionnel et entre \texttt{<...>} correspond à des options spécifiques à passer à la \motcletex!tcolorbox!, en langage \textsf{tcbox} (inutile si le rendu est \motcletex!tikz!).
+
+Elles permettent de modifier localement des options non paramétrées par des clés présentées précédemment.
+\end{tipblock}
+
+\begin{DemoCode}[]
+\begin{PostIt}%moteur de rendu tcbox (défaut)
+ [Couleur=cyan,Attache=Trombone,Largeur=10cm,Inclinaison=10]<center,right=1.5cm>
+\lipsum[1][1-3]
+\end{PostIt}
+\end{DemoCode}
+
+\begin{DemoCode}[]
+\hfill\begin{PostIt}%moteur de rendu tikz
+ [Rendu=tikz,Couleur=violet,Largeur=9cm,Inclinaison=-10,Attache=Trombone,
+ CouleurAttache=black,ExtraMargeDroite=1cm,Titre={Petit Titre},
+ PoliceTitre={\color{white}\bfseries\small\sffamily}]
+\lipsum[1][1-3]
+\end{PostIt}\hfill~
+\end{DemoCode}
+
+\begin{DemoCode}[]
+\hfill\begin{PostIt}%moteur de rendu tikzv2
+ [Rendu=tikzv2,Couleur=orange,Largeur=9cm,Inclinaison=-10,Attache=Scotch, Titre={Essai},
+ PoliceTitre={\color{blue!50!black}\bfseries\itshape\small\ttfamily}]
+\lipsum[1][1-3]
+\end{PostIt}\hfill~
+\end{DemoCode}
+
+\pagebreak
+
+\subsection{Exemples}
+
+\begin{DemoCode}[]
+%usepackage{wrapstuff}
+\begin{wrapstuff}[r,top=1]
+\begin{PostIt}[Inclinaison=5,Coin,Couleur=pink,CouleurAttache=blue,Bordure=false]
+\lipsum[1][1-2]
+\end{PostIt}
+\end{wrapstuff}
+
+\lipsum[1]
+\end{DemoCode}
+
+\begin{DemoCode}[]
+%usepackage{wrapstuff}
+\begin{wrapstuff}[r,top=1]
+\begin{PostIt}[Inclinaison=5,Rendu=tikz,Couleur=pink, CouleurAttache=blue,Bordure=false]
+\lipsum[1][1-2]
+\end{PostIt}
+\end{wrapstuff}
+
+\lipsum[1]
+\end{DemoCode}
+
+\begin{DemoCode}[]
+%usepackage{wrapstuff}
+\begin{wrapstuff}[r,top=1]
+\begin{PostIt}[Inclinaison=5,Rendu=tikzv2,Attache=Scotch,Couleur=pink]
+\lipsum[1][1-2]
+\end{PostIt}
+\end{wrapstuff}
+
+\lipsum[1]
+\end{DemoCode}
+
+\begin{DemoCode}[]
+Un petit Post-It aligné à droite, et centré verticalement :
+%
+\hfill\begin{PostIt}[Inclinaison=-10,Couleur=orange,Largeur=5cm,Hauteur=5cm, AlignementV=center,Coin,CouleurAttache=yellow, DecalAttache=-1,AlignementPostIt=center]
+
+\textsf{\small\lipsum[1][1-2]}
+\[\mathsf{\displaystyle\sum_{k=1}^{n} k = \dfrac{n(n+1)}{2}}\]
+\end{PostIt}
+\end{DemoCode}
+
+%\begin{DemoCode}[]
+%Un petit Post-It aligné à droite, et centré verticalement :
+%%
+%\hfill\begin{PostIt}[Inclinaison=-10,Couleur=orange,Largeur=5cm,Hauteur=5cm, AlignementV=center,Rendu=tikz,Attache=Non,AlignementPostIt=center]
+%
+%\textsf{\small\lipsum[1][1-2]}
+%\[\mathsf{\displaystyle\sum_{k=1}^{n} k = \dfrac{n(n+1)}{2}}\]
+%\end{PostIt}
+%\end{DemoCode}
+%
+%\vfill~
+
+\pagebreak
+
+\section{Post-It simple, en ligne}
+
+\subsection{Commande et fonctionnement global}
+
+\begin{cautionblock}
+La commande dédiée à la création du \textit{mini-}Post-It est \motcletex!MiniPostIt!.
+
+Elle fonctionne sous forme autonome, avec uniquement la couleur en \Cle{option}.
+
+\smallskip
+
+Cette fois-ci le \textit{mini-} Post-It est créé à l'aide d'une commande \motcletex!tcbox!.
+
+\smallskip
+
+Les dimensions ne sont pas modifiables, et un \motcletex!\vphantom! est inséré au début de la \motcletex!tcbox! afin d'harmoniser la hauteur.
+\end{cautionblock}
+
+\begin{DemoCode}[listing only]
+\MiniPostIt(*)[couleur]{contenu}
+\end{DemoCode}
+
+\subsection{Arguments}
+
+\begin{noteblock}
+La version étoilée active l'ombre du \textit{mini-}Post-It.
+
+La couleur (\Cle{yellow}), est gérée par l'argument optionnel entre \texttt{[...]}.
+\end{noteblock}
+
+\subsection{Exemples}
+
+\begin{DemoCode}[]
+On va travailler sur une équation diophantienne du type $ax+by=c$.
+
+On va utiliser le \MiniPostIt*[orange]{théorème de Bezout}, le \MiniPostIt{théorème de Gauss} sans oublier la \MiniPostIt*[cyan]{réciproque}.
+
+Le schéma de résolution est classique, et assez simple à appréhender !
+\end{DemoCode}
+
+\pagebreak
+
+\section{Résumé des styles}
+
+\subsection{Moteur de rendu tcbox}
+
+\begin{DemoCode}[text only]
+\hfill\begin{PostIt}
+\texttt{Ombre/Épingle/Bordure}
+\end{PostIt}
+\begin{PostIt}[Ombre=false]
+\texttt{Épingle/Bordure}
+\end{PostIt}\hfill~
+
+\medskip
+
+\hfill\begin{PostIt}[Bordure=false]
+\texttt{Ombre/Épingle}
+\end{PostIt}
+\begin{PostIt}[Bordure=false,Ombre=false]
+\texttt{Épingle}
+\end{PostIt}\hfill~
+
+\medskip
+
+\hfill\begin{PostIt}[Attache=Trombone]
+\texttt{Ombre/Trombone/Bordure}\\
+~
+\end{PostIt}
+\begin{PostIt}[Attache=Scotch]
+\texttt{Ombre/Scotch/Bordure}\\
+~
+\end{PostIt}\hfill~
+
+\medskip
+
+\hfill\begin{PostIt}[Attache=Non]
+\texttt{Ombre/Bordure}
+\end{PostIt}
+\begin{PostIt}[Coin,Attache=Non]
+\texttt{Ombre/Bordure/Coin}
+\end{PostIt}\hfill~
+
+\vspace{1cm}
+
+\hfill\begin{PostIt}[Titre={Lipsum[1][1-4]},PoliceTitre={\large\sffamily},Inclinaison=5,Couleur=pink,Hauteur=6cm,Attache=Scotch,AlignementV=center,Coin]
+\lipsum[1][1-4]
+\end{PostIt}\hfill~
+\end{DemoCode}
+
+\pagebreak
+
+\subsection{Moteur de rendu tikz}
+
+\begin{DemoCode}[text only]
+\hfill\begin{PostIt}[Rendu=tikz]
+\texttt{Ombre/Épingle/Bordure}
+\end{PostIt}
+\begin{PostIt}[Ombre=false,Rendu=tikz]
+\texttt{Épingle/Bordure}
+\end{PostIt}\hfill~
+
+\medskip
+
+\hfill\begin{PostIt}[Bordure=false,Rendu=tikz]
+\texttt{Ombre/Épingle}
+\end{PostIt}
+\begin{PostIt}[Bordure=false,Ombre=false,Rendu=tikz]
+\texttt{Épingle}
+\end{PostIt}\hfill~
+
+\medskip
+
+\hfill\begin{PostIt}[Attache=Trombone,Rendu=tikz]
+\texttt{Ombre/Trombone/Bordure}\\
+~
+\end{PostIt}
+\begin{PostIt}[Attache=Scotch,Rendu=tikz]
+\texttt{Ombre/Scotch/Bordure}\\
+~
+\end{PostIt}\hfill~
+
+\medskip
+
+\hfill\begin{PostIt}[Attache=Non,Rendu=tikz]
+\texttt{Ombre/Bordure}
+\end{PostIt}\hfill~
+
+\vspace{1cm}
+
+\hfill\begin{PostIt}[Rendu=tikz,Titre={Lipsum[1][1-4]},PoliceTitre={\large\sffamily},Inclinaison=5,Couleur=pink,Hauteur=6cm,Attache=Scotch,AlignementV=center,Coin]
+\lipsum[1][1-4]
+\end{PostIt}\hfill~
+\end{DemoCode}
+
+\subsection{Moteur de rendu tikzv2}
+
+\begin{DemoCode}[text only]
+\hfill\begin{PostIt}[Rendu=tikzv2]
+\texttt{Ombre/Épingle/Bordure}
+\end{PostIt}
+\begin{PostIt}[Ombre=false,Rendu=tikzv2]
+\texttt{Épingle/Bordure}
+\end{PostIt}\hfill~
+
+\medskip
+
+\hfill\begin{PostIt}[Bordure=false,Rendu=tikzv2]
+\texttt{Ombre/Épingle}
+\end{PostIt}
+\begin{PostIt}[Bordure=false,Ombre=false,Rendu=tikzv2]
+\texttt{Épingle}
+\end{PostIt}\hfill~
+
+\medskip
+
+\hfill\begin{PostIt}[Attache=Trombone,Rendu=tikzv2]
+\texttt{Ombre/Trombone/Bordure}\\
+~
+\end{PostIt}
+\begin{PostIt}[Attache=Scotch,Rendu=tikzv2]
+\texttt{Ombre/Scotch/Bordure}\\
+~
+\end{PostIt}\hfill~
+
+\medskip
+
+\hfill\begin{PostIt}[Attache=Non,Rendu=tikzv2]
+\texttt{Ombre/Bordure}
+\end{PostIt}\hfill~
+
+\vspace{1cm}
+
+\hfill\begin{PostIt}[Rendu=tikzv2,Titre={Lipsum[1][1-4]},PoliceTitre={\large\sffamily},Inclinaison=5,Couleur=pink,Hauteur=6cm,Attache=Scotch,AlignementV=center,Coin]
+\lipsum[1][1-4]
+\end{PostIt}\hfill~
+\end{DemoCode}
+
+
+
+\end{document}
\ No newline at end of file
Property changes on: trunk/Master/texmf-dist/doc/latex/postit/postit-doc-fr.tex
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Deleted: trunk/Master/texmf-dist/doc/latex/postit/postit-doc.pdf
===================================================================
(Binary files differ)
Deleted: trunk/Master/texmf-dist/doc/latex/postit/postit-doc.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/postit/postit-doc.tex 2023-06-08 19:50:41 UTC (rev 67304)
+++ trunk/Master/texmf-dist/doc/latex/postit/postit-doc.tex 2023-06-08 21:01:56 UTC (rev 67305)
@@ -1,649 +0,0 @@
-% !TeX TXS-program:compile = txs:///arara
-% arara: pdflatex: {shell: yes, synctex: no, interaction: batchmode}
-% arara: pdflatex: {shell: yes, synctex: no, interaction: batchmode} if found('log', '(undefined references|Please rerun|Rerun to get)')
-
-\documentclass[french,a4paper,11pt]{article}
-\usepackage[margin=2cm,includefoot]{geometry}
-\def\TPversion{0.1.1}
-\def\TPdate{5 juin 2023}
-\usepackage[utf8]{inputenc}
-\usepackage[T1]{fontenc}
-\usepackage{amsmath,amssymb}
-\usepackage{postit}
-\usepackage{awesomebox}
-\usepackage{fontawesome5}
-\usepackage{footnote}
-\makesavenoteenv{tabular}
-\usepackage{enumitem}
-\usepackage{tabularray}
-\usepackage{wrapstuff}
-\usepackage{lipsum}
-\usepackage{fancyvrb}
-\usepackage{fancyhdr}
-\fancyhf{}
-\renewcommand{\headrulewidth}{0pt}
-\lfoot{\sffamily\small [postit]}
-\cfoot{\sffamily\small - \thepage{} -}
-\rfoot{\hyperlink{matoc}{\small\faArrowAltCircleUp[regular]}}
-
-%\usepackage{hvlogos}
-\usepackage{hologo}
-\providecommand\tikzlogo{Ti\textit{k}Z}
-\providecommand\TeXLive{\TeX{}Live\xspace}
-\providecommand\PSTricks{\textsf{PSTricks}\xspace}
-\let\pstricks\PSTricks
-\let\TikZ\tikzlogo
-\newcommand\TableauDocumentation{%
- \begin{tblr}{width=\linewidth,colspec={X[c]X[c]X[c]X[c]X[c]X[c]},cells={font=\sffamily}}
- {\LARGE \LaTeX} & & & & &\\
- & {\LARGE \hologo{pdfLaTeX}} & & & & \\
- & & {\LARGE \hologo{LuaLaTeX}} & & & \\
- & & & {\LARGE \TikZ} & & \\
- & & & & {\LARGE \TeXLive} & \\
- & & & & & {\LARGE \hologo{MiKTeX}} \\
- \end{tblr}
-}
-
-\usepackage{hyperref}
-\urlstyle{same}
-\hypersetup{pdfborder=0 0 0}
-\setlength{\parindent}{0pt}
-\definecolor{LightGray}{gray}{0.9}
-
-\usepackage{babel}
-\AddThinSpaceBeforeFootnotes
-\FrenchFootnotes
-
-\usepackage{listings}
-
-\usepackage{newverbs}
-\newverbcommand{\motcletex}{\color{cyan!75!black}}{}
-\newverbcommand{\packagetex}{\color{violet!75!black}}{}
-
-\tcbuselibrary{listingsutf8}
-\newtcblisting{DemoCode}[1][]{%
- enhanced,width=0.95\linewidth,center,%
- bicolor,size=title,%
- colback=cyan!2!white,%
- colbacklower=cyan!1!white,%
- colframe=cyan!75!black,%
- listing options={%
- breaklines=true,%
- breakatwhitespace=true,%
- style=tcblatex,basicstyle=\small\ttfamily,%
- tabsize=4,%
- commentstyle={\itshape\color{gray}},
- keywordstyle={\color{blue}},%
- classoffset=0,%
- keywords={},%
- alsoletter={-},%
- keywordstyle={\color{blue}},%
- classoffset=1,%
- alsoletter={-},%
- morekeywords={center,right,justify,left,\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},%
- keywordstyle={\color{orange}}
- },%
- #1
-}
-
-\tcbset{vignettes/.style={%
- nobeforeafter,box align=base,boxsep=0pt,enhanced,sharp corners=all,rounded corners=southeast,%
- boxrule=0.75pt,left=7pt,right=1pt,top=0pt,bottom=0.25pt,%
- }
-}
-
-\tcbset{vignetteMaJ/.style={%
- fontupper={\vphantom{pf}\footnotesize\ttfamily},
- vignettes,colframe=purple!50!black,coltitle=white,colback=purple!10,%
- overlay={\begin{tcbclipinterior}%
- \fill[fill=purple!75]($(interior.south west)$) rectangle node[rotate=90]{\tiny \sffamily{\textcolor{black}{\scalebox{0.66}[0.66]{\textbf{MàJ}}}}} ($(interior.north west)+(5pt,0pt)$);%
- \end{tcbclipinterior}}
- }
-}
-
-\newcommand\Cle[1]{{\small\sffamily\textlangle \textcolor{orange}{#1}\textrangle}}
-\newcommand\cmaj[1]{\tcbox[vignetteMaJ]{#1}\xspace}
-
-\begin{document}
-
-\setlength{\aweboxleftmargin}{0.07\linewidth}
-\setlength{\aweboxcontentwidth}{0.93\linewidth}
-\setlength{\aweboxvskip}{8pt}
-
-\pagestyle{fancy}
-
-\thispagestyle{empty}
-
-\vspace{2cm}
-
-\begin{center}
- \begin{minipage}{0.75\linewidth}
- \begin{tcolorbox}[colframe=yellow,colback=yellow!15]
- \begin{center}
- \begin{tabular}{c}
- {\Huge \texttt{postit}}\\
- \\
- {\LARGE Des petits Post-It,} \\
- \\
- {\LARGE avec \textsf{tcolorbox} ou \textsf{Ti\textit{k}Z}.} \\
- \end{tabular}
-
- \bigskip
-
- {\small \texttt{Version \TPversion{} -- \TPdate}}
- \end{center}
- \end{tcolorbox}
-\end{minipage}
-\end{center}
-
-\begin{center}
- \begin{tabular}{c}
- \texttt{Cédric Pierquet}\\
- {\ttfamily c pierquet -- at -- outlook . fr}\\
- \texttt{\url{https://github.com/cpierquet/postit}}
-\end{tabular}
-\end{center}
-
-\vspace{0.25cm}
-
-{$\blacktriangleright$~~Placer et personnaliser des Post-It ou des \textit{mini-}Post-It.}
-
-\vspace{0.25cm}
-
-{$\blacktriangleright$~~Gestion de la taille, de l'inclinaison, de la décoration.}
-
-\vspace{1cm}
-
-\begin{PostIt}<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}]
-\lipsum[1][1-4]
-\end{PostIt}
-\hfill
-\begin{PostIt}[Hauteur=6cm,AlignementV=center,Couleur=pink,Attache=Non,CouleurAttache=blue,Inclinaison=15,Coin,AlignementPostIt=center,Attache=Scotch]
-\lipsum[1][1-4]
-\end{PostIt}
-
-\vspace{0.5cm}
-
-%\hfill{}\textit{Merci à Denis Bitouzé et à Gilles Le Bourhis pour leurs retours et idées !}
-
-\smallskip
-
-\vfill
-
-\hrule
-
-\medskip
-
-\TableauDocumentation
-
-\medskip
-
-\hrule
-
-\medskip
-
-\newpage
-
-\phantomsection
-\hypertarget{matoc}{}
-
-\tableofcontents
-
-\vfill
-
-\section{Historique}
-
-\verb|v0.1.1|~:~~~~Ajout d'un \motcletex!\vphantom! pour les \textit{mini-}Post-It (hauteur \textit{uniforme}) + Correction de bugs.
-
-\verb| |~:~~~~Moteurs de rendu alternatif en \TikZ{} + Ajout d'un titre éventuel .
-
-\verb|v0.1.0|~:~~~~Version initiale.
-
-\newpage
-
-\section{Le package postit}
-
-\subsection{Introduction}
-
-\begin{noteblock}
-Le package propose de quoi afficher, dans son document \LaTeX, un Post-It (créé à l'aide de \packagetex!tcolorbox! ou de \packagetex!tikz!), avec la possibilité :
-
-\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.
-\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.
-\end{noteblock}
-
-\subsection{Chargement du package, packages utilisés}
-
-\begin{importantblock}
-Le package se charge, de manière classique, dans le préambule.
-
-Il n'existe pas d'option pour le package, et \packagetex!xcolor! n'est pas chargé.
-\end{importantblock}
-
-\begin{DemoCode}[listing only]
-\documentclass{article}
-\usepackage{postit}
-
-\end{DemoCode}
-
-\begin{noteblock}
-\packagetex!postit! charge les packages suivantes :
-
-\begin{itemize}
- \item \packagetex!tcolorbox! avec la librairie \packagetex!tcbox.skins! ;
- \item les librairies \packagetex!tikz! :
- \begin{itemize}
- \item \packagetex!tikz.calc! ;
- \item \packagetex!tikz.decorations! ;
- \item \packagetex!tikz.decorations.pathmorphing! ;
- \end{itemize}
- \item \packagetex!settobox!, \packagetex!xstring! et \packagetex!simplekv!.
-\end{itemize}
-
-Il est compatible avec les compilations usuelles en \textsf{latex}, \textsf{pdflatex}, \textsf{lualatex} ou \textsf{xelatex}.
-\end{noteblock}
-
-\subsection{Compatibilité}
-
-\begin{cautionblock}
-Si un autre package charge \packagetex!tcolorbox!, et notamment avec l'option \Cle{[most]}, il vaut mieux charger \packagetex!postit! après, afin d'éviter un \motcletex!option clash error...!.
-\end{cautionblock}
-
-\begin{DemoCode}[listing only]
-\documentclass{article}
-\usepackage[<librairies>]{tcolorbox}
-\usepackage{postit}
-...
-
-\end{DemoCode}
-
-\vfill~
-
-\pagebreak
-
-\section{Environnement Post-It}
-
-\subsection{Environnement et fonctionnement global}
-
-\begin{cautionblock}
-L'environnement dédié à la création du Post-It est \packagetex!PostIt!.
-
-Il fonctionne avec un système de clés, entre \texttt{[...]} et il est possible, entre \texttt{<...>} de spécifier des options à la \motcletex!tcbox!, en langage \textsf{tcbox} (inutile avec le rendu en \motcletex!tikz!) !
-\end{cautionblock}
-
-\begin{DemoCode}[listing only]
-\begin{PostIt}[clés]<options tcbox>
-...
-...
-\end{PostIt}
-\end{DemoCode}
-
-\begin{noteblock}
-Comme indiqué dans l'introduction, le Post-It est créé à l'aide d'un environnement \motcletex!tcbox! ou d'un environnement \motcletex!tikz!.
-
-La majorité des (multiples) paramètres d'une \motcletex!tcbox! et d'une figuure \motcletex!tikz! sont fixés par le code, mais il est possible de spécifier certaines caractéristiques esthétiques du Post-It !
-\end{noteblock}
-
-\begin{DemoCode}[]
-%sortie par défaut (rendu tcbox), avec un paragraphe issu du package lipsum
-\begin{PostIt}
-\lipsum[1][1-2]
-\end{PostIt}
-\end{DemoCode}
-
-\begin{DemoCode}[]
-%sortie rendu tikz, avec un paragraphe issu du package lipsum
-\begin{PostIt}[Rendu=tikz]
- \lipsum[1][1-2]
-\end{PostIt}
-%sortie rendu tikzv2, avec un paragraphe issu du package lipsum
-\begin{PostIt}[Rendu=tikzv2]
- \lipsum[1][1-2]
-\end{PostIt}
-\end{DemoCode}
-
-\begin{tipblock}
-Les éventuelles couleurs choisies devront être données de manière \textit{unique}, sans utiliser les \textit{mélanges} (avec \motcletex|CouleurA!...!CouleurB|) que propose le package \packagetex!xcolor!.
-
-Toutefois, toute couleur précédemment définie pourra être utilisée pour le Post-It.
-\end{tipblock}
-
-\begin{tipblock}
-Le Post-It créé pourra être intégré dans une \motcletex!minipage! ou un \motcletex!wrapstuff! si besoin.
-
-Pour l'alignement horizontal, il est conseillé d'utiliser des commandes dédiées comme \motcletex!\hfill! ou des environnements dédiés comme \motcletex!flush...!.
-\end{tipblock}
-
-\begin{warningblock}
-Avec une \textit{attache} qui "déborde" verticalement (rendu \textsf{tcbox}), il sera sans doute nécessaire d'ajuster l'espacement vertical précédant le Post-It pour éviter un éventuel chevauchement.
-\end{warningblock}
-
-\subsection{Clés et options}
-
-\begin{tipblock}
-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 \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}) ;
-
- \hfill{}défaut : \Cle{auto}
- \item \cmaj{0.1.1} \Cle{Rendu} : moteur du rendu parmi \Cle{tcbox / tikz / tikv2} ; \hfill{}défaut : \Cle{tcbox}
- \item \Cle{Inclinaison} : inclinaison du Post-It ; \hfill{}défaut : \Cle{0}
- \item \Cle{Ombre} : booléen pour afficher une ombre portée ; \hfill{}défaut : \Cle{true}
- \item \Cle{Bordure} : booléen pour afficher une fine bordure ; \hfill{}défaut : \Cle{true}
- \item \Cle{Coin} : booléen pour afficher un coin corné ; \hfill{}défaut : \Cle{false}
- \item \Cle{Attache} : choix de la décoration, parmi \Cle{Trombone / Punaise / Non} ;
-
- \hfill{}défaut : \Cle{Punaise}
- \item \Cle{CouleurAttache} : couleur de l'attache ; \hfill{}défaut : \Cle{red}
- \item \Cle{DecalAttache} : décalage horizontal (sans unité, mais en cm) de l'attache par rapport à sa position initiale (au centre pour la punaise, à 1~cm du bord droit pour le trombone) ;
-
- \hfill{}défaut : \Cle{0}
- \item \cmaj{0.1.1} \Cle{Titre} : rajouter un titre (en 1ère ligne et/ou sous l'Attache) ; \hfill{}défaut : \Cle{vide}
- \item \cmaj{0.1.1} \Cle{PoliceTitre} : police du titre ; \hfill{}défaut : \Cle{\textbackslash normalfont\textbackslash normalfont}
- \item \cmaj{0.1.1} \Cle{ExtraMargeDroite} : rajoute (en rendu \packagetex!tikz!, et en cm) une marge à droite ;
-
- \hfill{}défaut : \Cle{0cm}
- \item \Cle{AlignementV} : gère l'alignement vertical dans le Post-It (parmi \Cle{top/center/bottom}) ;
-
- \hfill{}défaut : \Cle{top}
- \item \Cle{AlignementH} : gère l'alignement horizontal dans le Post-It (parmi \Cle{left/center/right/justify}) ;
-
- \hfill{}défaut : \Cle{justify}
- \item \Cle{AlignementPostIt} : gère l'alignement vertical global du Post-It (parmi \Cle{top/center/bottom}).
-
- \hfill{}défaut : \Cle{bottom}
-\end{itemize}
-\vspace*{-\baselineskip}\leavevmode
-\end{tipblock}
-
-\begin{tipblock}
-Le second argument, optionnel et entre \texttt{<...>} correspond à des options spécifiques à passer à la \motcletex!tcolorbox!, en langage \textsf{tcbox} (inutile si le rendu est \motcletex!tikz!).
-
-Elles permettent de modifier localement des options non paramétrées par des clés présentées précédemment.
-\end{tipblock}
-
-\begin{DemoCode}[]
-\begin{PostIt}%moteur de rendu tcbox (défaut)
- [Couleur=cyan,Attache=Trombone,Largeur=10cm,Inclinaison=10]<center,right=1.5cm>
-\lipsum[1][1-3]
-\end{PostIt}
-\end{DemoCode}
-
-\begin{DemoCode}[]
-\hfill\begin{PostIt}%moteur de rendu tikz
- [Rendu=tikz,Couleur=violet,Largeur=9cm,Inclinaison=-10,Attache=Trombone,
- CouleurAttache=black,ExtraMargeDroite=1cm,Titre={Petit Titre},
- PoliceTitre={\color{white}\bfseries\small\sffamily}]
-\lipsum[1][1-3]
-\end{PostIt}\hfill~
-\end{DemoCode}
-
-\begin{DemoCode}[]
-\hfill\begin{PostIt}%moteur de rendu tikzv2
- [Rendu=tikzv2,Couleur=orange,Largeur=9cm,Inclinaison=-10,Attache=Scotch, Titre={Essai},
- PoliceTitre={\color{blue!50!black}\bfseries\itshape\small\ttfamily}]
-\lipsum[1][1-3]
-\end{PostIt}\hfill~
-\end{DemoCode}
-
-\pagebreak
-
-\subsection{Exemples}
-
-\begin{DemoCode}[]
-%usepackage{wrapstuff}
-\begin{wrapstuff}[r,top=1]
-\begin{PostIt}[Inclinaison=5,Coin,Couleur=pink,CouleurAttache=blue,Bordure=false]
-\lipsum[1][1-2]
-\end{PostIt}
-\end{wrapstuff}
-
-\lipsum[1]
-\end{DemoCode}
-
-\begin{DemoCode}[]
-%usepackage{wrapstuff}
-\begin{wrapstuff}[r,top=1]
-\begin{PostIt}[Inclinaison=5,Rendu=tikz,Couleur=pink, CouleurAttache=blue,Bordure=false]
-\lipsum[1][1-2]
-\end{PostIt}
-\end{wrapstuff}
-
-\lipsum[1]
-\end{DemoCode}
-
-\begin{DemoCode}[]
-%usepackage{wrapstuff}
-\begin{wrapstuff}[r,top=1]
-\begin{PostIt}[Inclinaison=5,Rendu=tikzv2,Attache=Scotch,Couleur=pink]
-\lipsum[1][1-2]
-\end{PostIt}
-\end{wrapstuff}
-
-\lipsum[1]
-\end{DemoCode}
-
-\begin{DemoCode}[]
-Un petit Post-It aligné à droite, et centré verticalement :
-%
-\hfill\begin{PostIt}[Inclinaison=-10,Couleur=orange,Largeur=5cm,Hauteur=5cm, AlignementV=center,Coin,CouleurAttache=yellow, DecalAttache=-1,AlignementPostIt=center]
-
-\textsf{\small\lipsum[1][1-2]}
-\[\mathsf{\displaystyle\sum_{k=1}^{n} k = \dfrac{n(n+1)}{2}}\]
-\end{PostIt}
-\end{DemoCode}
-
-%\begin{DemoCode}[]
-%Un petit Post-It aligné à droite, et centré verticalement :
-%%
-%\hfill\begin{PostIt}[Inclinaison=-10,Couleur=orange,Largeur=5cm,Hauteur=5cm, AlignementV=center,Rendu=tikz,Attache=Non,AlignementPostIt=center]
-%
-%\textsf{\small\lipsum[1][1-2]}
-%\[\mathsf{\displaystyle\sum_{k=1}^{n} k = \dfrac{n(n+1)}{2}}\]
-%\end{PostIt}
-%\end{DemoCode}
-%
-%\vfill~
-
-\pagebreak
-
-\section{Post-It simple, en ligne}
-
-\subsection{Commande et fonctionnement global}
-
-\begin{cautionblock}
-La commande dédiée à la création du \textit{mini-}Post-It est \texttt{MiniPostIt}.
-
-Elle fonctionne sous forme autonome, avec uniquement la couleur en \Cle{option}.
-
-\smallskip
-
-Cette fois-ci le \textit{mini-} Post-It est créé à l'aide d'une commande \motcletex!tcbox!.
-
-\smallskip
-
-Les dimensions ne sont pas modifiables, et un \motcletex!\vphantom! est inséré au début de la \motcletex!tcbox! afin d'harmoniser la hauteur.
-\end{cautionblock}
-
-\begin{DemoCode}[listing only]
-\MiniPostIt(*)[couleur]{contenu}
-\end{DemoCode}
-
-\subsection{Arguments}
-
-\begin{noteblock}
-La version étoilée active l'ombre du \textit{mini-}Post-It.
-
-La couleur (\Cle{yellow}), est gérée par l'argument optionnel entre \texttt{[...]}.
-\end{noteblock}
-
-\subsection{Exemples}
-
-\begin{DemoCode}[]
-On va travailler sur une équation diophantienne du type $ax+by=c$.
-
-On va utiliser le \MiniPostIt*[orange]{théorème de Bezout}, le \MiniPostIt{théorème de Gauss} sans oublier la \MiniPostIt*[cyan]{réciproque}.
-
-Le schéma de résolution est classique, et assez simple à appréhender !
-\end{DemoCode}
-
-\pagebreak
-
-\section{Résumé des styles}
-
-\subsection{Moteur de rendu tcbox}
-
-\begin{DemoCode}[text only]
-\hfill\begin{PostIt}
-\texttt{Ombre/Épingle/Bordure}
-\end{PostIt}
-\begin{PostIt}[Ombre=false]
-\texttt{Épingle/Bordure}
-\end{PostIt}\hfill~
-
-\medskip
-
-\hfill\begin{PostIt}[Bordure=false]
-\texttt{Ombre/Épingle}
-\end{PostIt}
-\begin{PostIt}[Bordure=false,Ombre=false]
-\texttt{Épingle}
-\end{PostIt}\hfill~
-
-\medskip
-
-\hfill\begin{PostIt}[Attache=Trombone]
-\texttt{Ombre/Trombone/Bordure}\\
-~
-\end{PostIt}
-\begin{PostIt}[Attache=Scotch]
-\texttt{Ombre/Scotch/Bordure}\\
-~
-\end{PostIt}\hfill~
-
-\medskip
-
-\hfill\begin{PostIt}[Attache=Non]
-\texttt{Ombre/Bordure}
-\end{PostIt}
-\begin{PostIt}[Coin,Attache=Non]
-\texttt{Ombre/Bordure/Coin}
-\end{PostIt}\hfill~
-
-\vspace{1cm}
-
-\hfill\begin{PostIt}[Titre={Lipsum[1][1-4]},PoliceTitre={\large\sffamily},Inclinaison=5,Couleur=pink,Hauteur=6cm,Attache=Scotch,AlignementV=center,Coin]
-\lipsum[1][1-4]
-\end{PostIt}\hfill~
-\end{DemoCode}
-
-\pagebreak
-
-\subsection{Moteur de rendu tikz}
-
-\begin{DemoCode}[text only]
-\hfill\begin{PostIt}[Rendu=tikz]
-\texttt{Ombre/Épingle/Bordure}
-\end{PostIt}
-\begin{PostIt}[Ombre=false,Rendu=tikz]
-\texttt{Épingle/Bordure}
-\end{PostIt}\hfill~
-
-\medskip
-
-\hfill\begin{PostIt}[Bordure=false,Rendu=tikz]
-\texttt{Ombre/Épingle}
-\end{PostIt}
-\begin{PostIt}[Bordure=false,Ombre=false,Rendu=tikz]
-\texttt{Épingle}
-\end{PostIt}\hfill~
-
-\medskip
-
-\hfill\begin{PostIt}[Attache=Trombone,Rendu=tikz]
-\texttt{Ombre/Trombone/Bordure}\\
-~
-\end{PostIt}
-\begin{PostIt}[Attache=Scotch,Rendu=tikz]
-\texttt{Ombre/Scotch/Bordure}\\
-~
-\end{PostIt}\hfill~
-
-\medskip
-
-\hfill\begin{PostIt}[Attache=Non,Rendu=tikz]
-\texttt{Ombre/Bordure}
-\end{PostIt}\hfill~
-
-\vspace{1cm}
-
-\hfill\begin{PostIt}[Rendu=tikz,Titre={Lipsum[1][1-4]},PoliceTitre={\large\sffamily},Inclinaison=5,Couleur=pink,Hauteur=6cm,Attache=Scotch,AlignementV=center,Coin]
-\lipsum[1][1-4]
-\end{PostIt}\hfill~
-\end{DemoCode}
-
-\subsection{Moteur de rendu tikzv2}
-
-\begin{DemoCode}[text only]
-\hfill\begin{PostIt}[Rendu=tikzv2]
-\texttt{Ombre/Épingle/Bordure}
-\end{PostIt}
-\begin{PostIt}[Ombre=false,Rendu=tikzv2]
-\texttt{Épingle/Bordure}
-\end{PostIt}\hfill~
-
-\medskip
-
-\hfill\begin{PostIt}[Bordure=false,Rendu=tikzv2]
-\texttt{Ombre/Épingle}
-\end{PostIt}
-\begin{PostIt}[Bordure=false,Ombre=false,Rendu=tikzv2]
-\texttt{Épingle}
-\end{PostIt}\hfill~
-
-\medskip
-
-\hfill\begin{PostIt}[Attache=Trombone,Rendu=tikzv2]
-\texttt{Ombre/Trombone/Bordure}\\
-~
-\end{PostIt}
-\begin{PostIt}[Attache=Scotch,Rendu=tikzv2]
-\texttt{Ombre/Scotch/Bordure}\\
-~
-\end{PostIt}\hfill~
-
-\medskip
-
-\hfill\begin{PostIt}[Attache=Non,Rendu=tikzv2]
-\texttt{Ombre/Bordure}
-\end{PostIt}\hfill~
-
-\vspace{1cm}
-
-\hfill\begin{PostIt}[Rendu=tikzv2,Titre={Lipsum[1][1-4]},PoliceTitre={\large\sffamily},Inclinaison=5,Couleur=pink,Hauteur=6cm,Attache=Scotch,AlignementV=center,Coin]
-\lipsum[1][1-4]
-\end{PostIt}\hfill~
-\end{DemoCode}
-
-
-
-\end{document}
\ No newline at end of file
Modified: trunk/Master/texmf-dist/tex/latex/postit/postit.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/postit/postit.sty 2023-06-08 19:50:41 UTC (rev 67304)
+++ trunk/Master/texmf-dist/tex/latex/postit/postit.sty 2023-06-08 21:01:56 UTC (rev 67305)
@@ -3,7 +3,8 @@
% or later, see http://www.latex-project.org/lppl.txtf
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{postit}[2023/06/05 0.1.1 Utiliser des post-it]
+\ProvidesPackage{postit}[2023/06/06 0.1.2 Display sticky notes in a doc]
+%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
@@ -30,6 +31,45 @@
\def\HauteurScotch{1}
\def\PostItBorder{0.1mm}
+%======Décorations
+%------Gestion du coin
+\NewDocumentCommand\CoinPostIt{ }{%
+ \path[line width=\PostItBorder,fill=\PostItCoul!66] ([yshift=3mm]interior.south east)--++(-0.4,-0.1)--++(0.1,-0.2);
+ \path[line width=\PostItBorder,draw=\PostItCoul!50!black,shorten <=-0.05mm,shorten >=-0.05mm,color=\PostItCoul!50!black] ([yshift=3mm]interior.south east)--++(-0.4,-0.1)--++(0.1,-0.2);
+}
+
+%------Gestion du trombone
+\NewDocumentCommand\TrombonePostIt{ }{%
+ \begin{scope}[shift={([xshift={-1cm+\PostItDeclClip cm}]frame.north east)},rotate=-15,scale={\PostItCoulScaleClip*0.55},line cap=round]
+ \draw[line width=0.81mm,draw=\PostItCoulClip!66] (0,0) --++ (0,0.0) arc (180:0:3.5mm) --++ (0,-1.75) arc (0:-180:3mm) --++ (0,1.25) ;
+ \draw[line width=0.27mm,draw=\PostItCoulClip!33] (0,0) --++ (0,0.0) arc (180:0:3.5mm) --++ (0,-1.75) arc (0:-180:3mm) --++ (0,1.25) ;
+ \end{scope}
+}
+
+%------Gestion du scotch
+\NewDocumentCommand\ScotchPostIt{ }{%
+ \begin{scope}[shift={([xshift=\PostItDeclClip cm]frame.north)},scale={\PostItCoulScaleClip*0.65},line cap=round,rotate=3]
+ \draw[thin,gray!50,fill=lightgray,fill opacity=0.75] ({-0.5*\LargeurStotch},{-0.5*\HauteurScotch}) to ({0.5*\LargeurStotch},{-0.5*\HauteurScotch}) decorate [decoration={zigzag,segment length=2pt,amplitude=0.5pt}] {to ({0.5*\LargeurStotch},{0.5*\HauteurScotch})} to ({-0.5*\LargeurStotch},{0.5*\HauteurScotch}) decorate [decoration={zigzag,segment length=2pt,amplitude=0.5pt}] {to cycle} ;
+ \end{scope}
+}
+
+%------Gestion de la punaise
+\NewDocumentCommand\EpinglePostIt{ }{%
+ \begin{scope}[shift={([xshift=\PostItDeclClip cm,yshift=-0.5cm]frame.north)},scale={\PostItCoulScaleClip*0.55},rotate=-40]
+ \begin{scope}[rotate=-35]
+ \draw[blue!10!gray,line cap=round,line width=2pt] (0,0) -- ++(90:0.85);
+ \fill[blue!10!gray,scale=0.5] (90:0.85) ellipse (.65cm and .3cm) ;
+ \fill[blue!10!gray,scale=0.5] (90:0.85) ++(0,0.4) ellipse (.2 and .4);
+ \fill[blue!10!gray,scale=0.5] (90:0.85) ++(0,0.8) ellipse (.4 and .3);
+ \end{scope}
+ \draw[line cap=round,line width=2pt] (0,0) -- ++(90:0.85);
+ \fill[ball color=\PostItCoulClip!66,scale=0.5] (90:0.85) ellipse (.65cm and .3cm) ;
+ \fill[ball color=\PostItCoulClip!66,scale=0.5] (90:0.85) ++(0,0.4) ellipse (.2 and .4);
+ \fill[ball color=\PostItCoulClip!66,scale=0.5] (90:0.85) ++(0,0.8) ellipse (.4 and .3);
+ \end{scope}
+}
+
+%======[FR]
%------Clés
\defKV[postit]{%
Largeur=\def\PostItLarg{#1},%
@@ -81,43 +121,6 @@
}%
}
-%------Gestion du coin
-\NewDocumentCommand\CoinPostIt{ }{%
- \path[line width=\PostItBorder,fill=\PostItCoul!66] ([yshift=3mm]interior.south east)--++(-0.4,-0.1)--++(0.1,-0.2);
- \path[line width=\PostItBorder,draw=\PostItCoul!50!black,shorten <=-0.05mm,shorten >=-0.05mm,color=\PostItCoul!50!black] ([yshift=3mm]interior.south east)--++(-0.4,-0.1)--++(0.1,-0.2);
-}
-
-%------Gestion du trombone
-\NewDocumentCommand\TrombonePostIt{ }{%
- \begin{scope}[shift={([xshift={-1cm+\PostItDeclClip cm}]frame.north east)},rotate=-15,scale={\PostItCoulScaleClip*0.55},line cap=round]
- \draw[line width=0.81mm,draw=\PostItCoulClip!66] (0,0) --++ (0,0.0) arc (180:0:3.5mm) --++ (0,-1.75) arc (0:-180:3mm) --++ (0,1.25) ;
- \draw[line width=0.27mm,draw=\PostItCoulClip!33] (0,0) --++ (0,0.0) arc (180:0:3.5mm) --++ (0,-1.75) arc (0:-180:3mm) --++ (0,1.25) ;
- \end{scope}
-}
-
-%------Gestion du scotch
-\NewDocumentCommand\ScotchPostIt{ }{%
- \begin{scope}[shift={([xshift=\PostItDeclClip cm]frame.north)},scale={\PostItCoulScaleClip*0.65},line cap=round,rotate=3]
- \draw[thin,gray!50,fill=lightgray,fill opacity=0.75] ({-0.5*\LargeurStotch},{-0.5*\HauteurScotch}) to ({0.5*\LargeurStotch},{-0.5*\HauteurScotch}) decorate [decoration={zigzag,segment length=2pt,amplitude=0.5pt}] {to ({0.5*\LargeurStotch},{0.5*\HauteurScotch})} to ({-0.5*\LargeurStotch},{0.5*\HauteurScotch}) decorate [decoration={zigzag,segment length=2pt,amplitude=0.5pt}] {to cycle} ;
- \end{scope}
-}
-
-%------Gestion de la punaise
-\NewDocumentCommand\EpinglePostIt{ }{%
- \begin{scope}[shift={([xshift=\PostItDeclClip cm,yshift=-0.5cm]frame.north)},scale={\PostItCoulScaleClip*0.55},rotate=-40]
- \begin{scope}[rotate=-35]
- \draw[blue!10!gray,line cap=round,line width=2pt] (0,0) -- ++(90:0.85);
- \fill[blue!10!gray,scale=0.5] (90:0.85) ellipse (.65cm and .3cm) ;
- \fill[blue!10!gray,scale=0.5] (90:0.85) ++(0,0.4) ellipse (.2 and .4);
- \fill[blue!10!gray,scale=0.5] (90:0.85) ++(0,0.8) ellipse (.4 and .3);
- \end{scope}
- \draw[line cap=round,line width=2pt] (0,0) -- ++(90:0.85);
- \fill[ball color=\PostItCoulClip!66,scale=0.5] (90:0.85) ellipse (.65cm and .3cm) ;
- \fill[ball color=\PostItCoulClip!66,scale=0.5] (90:0.85) ++(0,0.4) ellipse (.2 and .4);
- \fill[ball color=\PostItCoulClip!66,scale=0.5] (90:0.85) ++(0,0.8) ellipse (.4 and .3);
- \end{scope}
-}
-
%------Environnement principal
\NewDocumentEnvironment{PostIt}{ O{} D<>{} +b }%
{%
@@ -576,4 +579,493 @@
IfBooleanTF={#1}{ombreminipostit}{}
}
+%======[EN]
+
+%------Clés
+\defKV[postitnote]{%
+ Width=\def\PostItLarg{#1},%
+ Color=\def\PostItCoul{#1},%
+ PinColor=\def\PostItCoulClip{#1},%
+ PinScale=\def\PostItCoulScaleClip{#1},%
+ Rotate=\def\PostItIncline{#1},%
+ Height=\def\PostItHauteur{#1},%
+ PinShift=\def\PostItDeclClip{#1},%
+ Pin=\def\PostItDeco{#1},%
+ AlignV=\def\PostItAlignV{#1},%
+ AlignH=\def\PostItAlignH{#1},%
+ AlignPostIt=\def\PostItAlignPostIt{#1},%
+ Render=\def\PostItRender{#1},%
+ ExtraRightMargin=\def\PostItExtraMargin{#1},%
+ Title=\def\PostItTitre{#1},%
+ FontTitle=\def\PostItPoliceTitre{#1}
+}
+
+\setKVdefault[postitnote]{%
+ Width=6cm,%
+ Color=yellow,%
+ PinColor=red,%
+ Rotate=0,%
+ PinScale=1,%
+ Shadow=true,%
+ Height=auto,%
+ PinShift=0,%
+ Pin=Pushpin,%
+ AlignV=top,%
+ AlignH=justify,%
+ AlignPostIt=bottom,%
+ Border=true,%
+ Corner=false,%
+ Render=tcbox,%
+ ExtraRightMargin=0cm,%
+ Title={},%
+ FontTitle=\normalfont\normalsize
+}
+
+%------Style principal tcolorbox
+\tcbset{testpostitnote/.style={%
+ on line,enhanced,colframe=\PostItCoul!50!black,boxrule=\PostItBorder,width=\PostItLarg,sharp corners,halign=\PostItAlignH,valign=\PostItAlignV,%
+ %colback=\PostItCoul!50,%
+ finish={\CommandeDecoration},tikz={rotate=\PostItIncline,transform shape},%
+ box align=\PostItAlignPostIt,%
+ interior style={top color=\PostItCoul!50,bottom color=\PostItCoul!33},%
+ nobeforeafter
+ }%
+}
+
+%------Environnement principal
+\NewDocumentEnvironment{PostItNote}{ O{} D<>{} +b }%
+{%
+ \restoreKV[postitnote]%
+ \setKV[postitnote]{#1}%
+ \IfStrEq{\PostItRender}{tcbox}%
+ {%
+ %choix de la déco et paramètrage
+ \def\CommandeDecoration{\EpinglePostIt}%
+ \def\MarginOffsetV{4mm}%
+ \IfStrEq{\PostItDeco}{Paperclip}%
+ {\def\CommandeDecoration{\TrombonePostIt}\def\MarginOffsetV{0mm}}%
+ {}%
+ \IfStrEq{\PostItDeco}{Scotch}%
+ {\def\CommandeDecoration{\ScotchPostIt}\def\MarginOffsetV{1mm}}%
+ {}%
+ \IfStrEq{\PostItDeco}{None}%
+ {\def\CommandeDecoration{}\def\MarginOffsetV{0mm}}%
+ {}%
+ %cas de la bordure
+ \ifboolKV[postitnote]{Border}%
+ {%
+ \def\PostItBorder{0.1mm}%
+ \tcbset{bordure/.style={}}%
+ }%
+ {%
+ \def\PostItBorder{0mm}%
+ \tcbset{bordure/.style={frame hidden}}%
+ }%
+ %cas du coin
+ \ifboolKV[postitnote]{Corner}%
+ {%
+ \tcbset{coincoin/.style={rounded corners=southeast,arc is angular,arc=3mm,underlay={\CoinPostIt}}}%
+ }%
+ {%
+ \tcbset{coincoin/.style={}}%
+ }%
+ %en fonction de hauteur auto ou non
+ \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}]}%
+ }%
+ {%
+ \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}]}%
+ }%
+ \IfStrEq{\PostItTitre}{}%
+ {}%
+ {%
+ \hfill{}{\PostItPoliceTitre\PostItTitre}\hfill~\\%
+ }%
+ #3%
+ \end{tcolorbox}%
+ }{}%
+ \IfStrEq{\PostItRender}{tikz}%
+ {%
+ \StrDel{\PostItLarg}{cm}[\PostItLarg]%
+ \StrDel{\PostItExtraMargin}{cm}[\PostItExtraMargin]%
+ \def\LargeurTextePostIt{\fpeval{\PostItLarg-\MarginHGPostIt-\MarginHDPostIt}}%
+ \def\TextePostIt{%
+ \IfStrEq{\PostItTitre}{}{}{\hfill{}{\PostItPoliceTitre\PostItTitre}\hfill~\\}%
+ #3%
+ }%
+ \IfStrEq{\PostItHauteur}{auto}%
+ {%
+ \sbox{\maboitepostit}{\parbox{\LargeurTextePostIt cm}{\TextePostIt}}%
+ \settoboxtotalheight{\HauteurEssaiTexte}{\maboitepostit}%
+ \addtolength\HauteurEssaiTexte{\MarginVHPostIt}\addtolength\HauteurEssaiTexte{\MarginVBPostIt}%
+ \IfStrEq{\PostItDeco}{Scotch}%
+ {\addtolength\HauteurEssaiTexte{0.4cm}}%
+ {}%
+ \IfStrEq{\PostItDeco}{Paperclip}%
+ {\addtolength\HauteurEssaiTexte{0.2cm}}%
+ {}%
+ \IfStrEq{\PostItDeco}{Pushpin}%
+ {\addtolength\HauteurEssaiTexte{0.6cm}}%
+ {}%
+ \IfStrEq{\PostItDeco}{None}%
+ {\addtolength\HauteurEssaiTexte{0.2cm}}%
+ {}%
+ \def\hauteur{\the\HauteurEssaiTexte}%
+ }%
+ {%
+ \def\hauteur{\PostItHauteur}%
+ }%
+ \def\OptionTikzPostIt{current bounding box.south}%
+ \IfStrEq{\PostItAlignPostIt}{center}%
+ {\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]
+ %tracé
+ %ombre1/2/3
+ \ifboolKV[postitnote]{Shadow}%
+ {%
+ \draw[draw=none,fill=gray,semithick,fill=gray,fill opacity=0.5]
+ (0,0) --++ ({\PostItLarg+\PostItExtraMargin},0)
+ to[out=-90,in=104] ++ ($({0.15},{-\hauteur+0.15})+(\OffsetOmbreA,-\OffsetOmbreA)$)
+ to[out=182,in=-2] ++ ({-0.15-\PostItLarg-\PostItExtraMargin},{0.13})
+ -- cycle ;
+ \draw[draw=none,fill=gray!50!black,semithick,fill=gray!50!black,fill opacity=0.5]
+ (0,0) --++ ({\PostItLarg+\PostItExtraMargin},0)
+ to[out=-90,in=104] ++ ($({0.15},{-\hauteur+0.15})+(\OffsetOmbreB,-\OffsetOmbreB)$)
+ to[out=182,in=-2] ++ ({-0.15-\PostItLarg-\PostItExtraMargin},{0.13})
+ -- cycle ;
+ \draw[draw=none,fill=black,semithick,fill=black,fill opacity=0.5]
+ (0,0) --++ ({\PostItLarg+\PostItExtraMargin},0)
+ to[out=-90,in=104] ++ ($({0.15},{-\hauteur+0.15})+(\OffsetOmbreC,-\OffsetOmbreC)$)
+ to[out=182,in=-2] ++ ({-0.15-\PostItLarg-\PostItExtraMargin},{0.13})
+ -- cycle ;
+ }%
+ {}%
+ %postit
+ \ifboolKV[postitnote]{Shadow}
+ {%
+ \shadedraw[draw=\PostItCoul!50!black,line width=0.1mm,top color=\PostItCoul!50,bottom color=\PostItCoul!33]
+ (0,0) --++ ({\PostItLarg+\PostItExtraMargin},0)
+ to[out=-90,in=104] ++ ({0.15},{-\hauteur+0.15})
+ to[out=182,in=-2] ++ ({-0.15-\PostItLarg-\PostItExtraMargin},{0.13})
+ -- cycle ;
+ }%
+ {%
+ \shadedraw[draw=none,top color=\PostItCoul!50,bottom color=\PostItCoul!33]
+ (0,0) --++ ({\PostItLarg+\PostItExtraMargin},0)
+ to[out=-90,in=104] ++ ({0.15},{-\hauteur+0.15})
+ to[out=182,in=-2] ++ ({-0.15-\PostItLarg-\PostItExtraMargin},{0.13})
+ -- cycle ;
+ }%
+ \IfStrEq{\PostItHauteur}{auto}%
+ {%
+ \IfStrEq{\PostItDeco}{Pushpin}%
+ {%
+ \draw ({0.5*\PostItLarg},{-\MarginVHPostIt-0.4cm}) node[text width=\LargeurTextePostIt cm,rotate=\PostItIncline,below,align=\PostItAlignH,inner sep=0pt] {\TextePostIt} ;
+ }%
+ {}%
+ \IfStrEq{\PostItDeco}{None}%
+ {%
+ \draw ({0.5*\PostItLarg},{-\MarginVHPostIt}) node[text width=\LargeurTextePostIt cm,rotate=\PostItIncline,below,align=\PostItAlignH,inner sep=0pt] {\TextePostIt} ;
+ }%
+ {}%
+ \IfStrEq{\PostItDeco}{Paperclip}%
+ {%
+ \draw ({0.5*\PostItLarg},{-\MarginVHPostIt}) node[text width=\LargeurTextePostIt cm,rotate=\PostItIncline,below,align=\PostItAlignH,inner sep=0pt] {\TextePostIt} ;
+ }%
+ {}%
+ \IfStrEq{\PostItDeco}{Scotch}%
+ {%
+ \draw ({0.5*\PostItLarg},{-\MarginVHPostIt-0.2cm}) node[text width=\LargeurTextePostIt cm,rotate=\PostItIncline,below,align=\PostItAlignH,inner sep=0pt] {\TextePostIt} ;
+ }%
+ {}%
+ }%
+ {%
+ \IfStrEq{\PostItAlignV}{top}
+ {%
+ \IfStrEq{\PostItDeco}{Pushpin}%
+ {%
+ \draw ({0.5*\PostItLarg},{-\MarginVHPostIt-0.4cm}) node[text width=\LargeurTextePostIt cm,rotate=\PostItIncline,below,align=\PostItAlignH,inner sep=0pt] {\TextePostIt} ;
+ }%
+ {}%
+ \IfStrEq{\PostItDeco}{None}%
+ {%
+ \draw ({0.5*\PostItLarg},{-\MarginVHPostIt}) node[text width=\LargeurTextePostIt cm,rotate=\PostItIncline,below,align=\PostItAlignH,inner sep=0pt] {\TextePostIt} ;
+ }%
+ {}%
+ \IfStrEq{\PostItDeco}{Paperclip}%
+ {%
+ \draw ({0.5*\PostItLarg},{-\MarginVHPostIt}) node[text width=\LargeurTextePostIt cm,rotate=\PostItIncline,below,align=\PostItAlignH,inner sep=0pt] {\TextePostIt} ;
+ }%
+ {}%
+ \IfStrEq{\PostItDeco}{Scotch}%
+ {%
+ \draw ({0.5*\PostItLarg},{-\MarginVHPostIt-0.2cm}) node[text width=\LargeurTextePostIt cm,rotate=\PostItIncline,below,align=\PostItAlignH,inner sep=0pt] {\TextePostIt} ;
+ }%
+ {}%
+ }%
+ {}%
+ \IfStrEq{\PostItAlignV}{center}
+ {%
+ \IfStrEq{\PostItDeco}{Pushpin}%
+ {%
+ \draw ({0.5*\PostItLarg},{-0.5*\hauteur-\MarginVHPostIt-0.2cm}) node[text width=\LargeurTextePostIt cm,rotate=\PostItIncline,align=\PostItAlignH,inner sep=0pt] {\TextePostIt} ;
+ }%
+ {}%
+ \IfStrEq{\PostItDeco}{None}%
+ {%
+ \draw ({0.5*\PostItLarg},{-0.5*\hauteur}) node[text width=\LargeurTextePostIt cm,rotate=\PostItIncline,align=\PostItAlignH,inner sep=0pt] {\TextePostIt} ;
+ }%
+ {}%
+ \IfStrEq{\PostItDeco}{Paperclip}%
+ {%
+ \draw ({0.5*\PostItLarg},{-0.5*\hauteur}) node[text width=\LargeurTextePostIt cm,rotate=\PostItIncline,align=\PostItAlignH,inner sep=0pt] {\TextePostIt} ;
+ }%
+ {}%
+ \IfStrEq{\PostItDeco}{Scotch}%
+ {%
+ \draw ({0.5*\PostItLarg},{-0.5*\hauteur}) node[text width=\LargeurTextePostIt cm,rotate=\PostItIncline,align=\PostItAlignH,inner sep=0pt] {\TextePostIt} ;
+ }%
+ {}%
+ }%
+ {}%
+ \IfStrEq{\PostItAlignV}{bottom}
+ {%
+ \draw ({0.5*\PostItLarg},{-\hauteur}) node[text width=\LargeurTextePostIt cm,rotate=\PostItIncline,above=0.6cm,align=\PostItAlignH,inner sep=0pt] {\TextePostIt} ;
+ }%
+ {}%
+ }%
+ %affichage de la punaise
+ \IfStrEq{\PostItDeco}{Pushpin}%
+ {%
+ \begin{scope}[shift={(0.5*\PostItLarg+0.5*\PostItExtraMargin+\PostItDeclClip,-0.49)},scale={0.55},rotate=-40]
+ \begin{scope}[rotate=-35]
+ \draw[blue!10!gray,line cap=round,line width=2pt] (0,0) -- ++(90:0.85);
+ \fill[blue!10!gray,scale=0.5] (90:0.85) ellipse (.65cm and .3cm) ;
+ \fill[blue!10!gray,scale=0.5] (90:0.85) ++(0,0.4) ellipse (.2 and .4);
+ \fill[blue!10!gray,scale=0.5] (90:0.85) ++(0,0.8) ellipse (.4 and .3);
+ \end{scope}
+ \draw[line cap=round,line width=2pt] (0,0) -- ++(90:0.85);
+ \fill[ball color=\PostItCoulClip!66,scale=0.5] (90:0.85) ellipse (.65cm and .3cm) ;
+ \fill[ball color=\PostItCoulClip!66,scale=0.5] (90:0.85) ++(0,0.4) ellipse (.2 and .4);
+ \fill[ball color=\PostItCoulClip!66,scale=0.5] (90:0.85) ++(0,0.8) ellipse (.4 and .3);
+ \end{scope}
+ }%
+ {}%
+ %affichage du trombone
+ \IfStrEq{\PostItDeco}{Paperclip}%
+ {%
+ \begin{scope}[shift={(\PostItLarg+\PostItExtraMargin-1+\PostItDeclClip,0)},rotate=-15,scale={\PostItCoulScaleClip*0.55},line cap=round]
+ \draw[line width=0.81mm,draw=\PostItCoulClip!66] (0,0) --++ (0,0.0) arc (180:0:3.5mm) --++ (0,-1.75) arc (0:-180:3mm) --++ (0,1.25) ;
+ \draw[line width=0.27mm,draw=\PostItCoulClip!33] (0,0) --++ (0,0.0) arc (180:0:3.5mm) --++ (0,-1.75) arc (0:-180:3mm) --++ (0,1.25) ;
+ \end{scope}
+ }%
+ {}%
+ %affichage du scotch
+ \IfStrEq{\PostItDeco}{Scotch}%
+ {%
+ \begin{scope}[shift={(0.5*\PostItLarg+0.5*\PostItExtraMargin+\PostItDeclClip,0)},scale={0.65},rotate=3,line cap=round]
+ \draw[thin,gray!50,fill=lightgray,fill opacity=0.75] ({-0.5*\LargeurStotch},{-0.5*\HauteurScotch}) to ({0.5*\LargeurStotch},{-0.5*\HauteurScotch}) decorate [decoration={zigzag,segment length=2pt,amplitude=0.5pt}] {to ({0.5*\LargeurStotch},{0.5*\HauteurScotch})} to ({-0.5*\LargeurStotch},{0.5*\HauteurScotch}) decorate [decoration={zigzag,segment length=2pt,amplitude=0.5pt}] {to cycle} ;
+ \end{scope}
+ }%
+ {}%
+ \end{tikzpicture}%
+ }{}%
+ \IfStrEq{\PostItRender}{tikzv2}%
+ {%
+ \StrDel{\PostItLarg}{cm}[\PostItLarg]%
+ \StrDel{\PostItExtraMargin}{cm}[\PostItExtraMargin]%
+ \def\LargeurTextePostIt{\fpeval{\PostItLarg-\MarginHGPostIt-\MarginHDPostIt}}%
+ \def\TextePostIt{%
+ \IfStrEq{\PostItTitre}{}{}{\hfill{}{\PostItPoliceTitre\PostItTitre}\hfill~\\}%
+ #3%
+ }%
+ \IfStrEq{\PostItHauteur}{auto}%
+ {%
+ \sbox{\maboitepostit}{\parbox{\LargeurTextePostIt cm}{\TextePostIt}}%
+ \settoboxtotalheight{\HauteurEssaiTexte}{\maboitepostit}%
+ \addtolength\HauteurEssaiTexte{\MarginVHPostIt}\addtolength\HauteurEssaiTexte{\MarginVBPostIt}%
+ \IfStrEq{\PostItDeco}{Scotch}%
+ {\addtolength\HauteurEssaiTexte{0.4cm}}%
+ {}%
+ \IfStrEq{\PostItDeco}{Paperclip}%
+ {\addtolength\HauteurEssaiTexte{0.2cm}}%
+ {}%
+ \IfStrEq{\PostItDeco}{Pushpin}%
+ {\addtolength\HauteurEssaiTexte{0.6cm}}%
+ {}%
+ \IfStrEq{\PostItDeco}{None}%
+ {\addtolength\HauteurEssaiTexte{0.2cm}}%
+ {}%
+ \def\hauteur{\the\HauteurEssaiTexte}%
+ }%
+ {%
+ \def\hauteur{\PostItHauteur}%
+ }%
+ \def\OptionTikzPostIt{current bounding box.south}%
+ \IfStrEq{\PostItAlignPostIt}{center}%
+ {\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]
+ %tracé
+ %ombre1/2/3
+ \ifboolKV[postitnote]{Shadow}%
+ {%
+ \draw[draw=none,fill=gray,semithick,fill=gray,fill opacity=0.5]
+ (0,0) --++ ({\PostItLarg+\PostItExtraMargin},0)
+ to[out=-90,in=91] ++ ($({0.05},{-\hauteur-0.05})+(2pt,-2pt)$)
+ --++ ($({-\PostItLarg-\PostItExtraMargin-0.1},{0})+(-4pt,0)$)
+ to[out=89,in=-90] (0,0) ;
+ \draw[draw=none,fill=gray!50!black,semithick,fill=gray!50!black,fill opacity=0.5]
+ (0,0) --++ ({\PostItLarg+\PostItExtraMargin},0)
+ to[out=-90,in=91] ++ ($({0.05},{-\hauteur-0.05})+(1.25pt,-1.25pt)$)
+ --++ ($({-\PostItLarg-\PostItExtraMargin-0.1},{0})+(-2.5pt,0)$)
+ to[out=89,in=-90] (0,0) ;
+ \draw[draw=none,fill=black,semithick,fill=black,fill opacity=0.5]
+ (0,0) --++ ({\PostItLarg+\PostItExtraMargin},0)
+ to[out=-90,in=91] ++ ($({0.05},{-\hauteur-0.05})+(0.5pt,-0.5pt)$)
+ --++ ($({-\PostItLarg-\PostItExtraMargin-0.1},{0})+(-1pt,0)$)
+ to[out=89,in=-90] (0,0) ;
+ }%
+ {}%
+ %postit
+ \ifboolKV[postitnote]{Border}
+ {%
+ \shadedraw[draw=\PostItCoul!50!black,line width=0.1mm,top color=\PostItCoul!50,bottom color=\PostItCoul!33]
+ (0,0) --++ ({\PostItLarg+\PostItExtraMargin},0)
+ to[out=-90,in=91] ++ ({0.05},{-\hauteur-0.05})
+ --++ ({-\PostItLarg-\PostItExtraMargin-0.1},{0})
+ to[out=89,in=-90] (0,0) ;
+ }%
+ {%
+ \shadedraw[draw=none,top color=\PostItCoul!50,bottom color=\PostItCoul!33]
+ (0,0) --++ ({\PostItLarg+\PostItExtraMargin},0)
+ to[out=-90,in=91] ++ ({0.05},{-\hauteur-0.05})
+ --++ ({-\PostItLarg-\PostItExtraMargin-0.1},{0})
+ to[out=89,in=-90] (0,0) ;
+ }%
+ \IfStrEq{\PostItHauteur}{auto}%
+ {%
+ \IfStrEq{\PostItDeco}{Pushpin}%
+ {%
+ \draw ({0.5*\PostItLarg},{-\MarginVHPostIt-0.4cm}) node[text width=\LargeurTextePostIt cm,rotate=\PostItIncline,below,align=\PostItAlignH,inner sep=0pt] {\TextePostIt} ;
+ }%
+ {}%
+ \IfStrEq{\PostItDeco}{None}%
+ {%
+ \draw ({0.5*\PostItLarg},{-\MarginVHPostIt}) node[text width=\LargeurTextePostIt cm,rotate=\PostItIncline,below,align=\PostItAlignH,inner sep=0pt] {\TextePostIt} ;
+ }%
+ {}%
+ \IfStrEq{\PostItDeco}{Paperclip}%
+ {%
+ \draw ({0.5*\PostItLarg},{-\MarginVHPostIt}) node[text width=\LargeurTextePostIt cm,rotate=\PostItIncline,below,align=\PostItAlignH,inner sep=0pt] {\TextePostIt} ;
+ }%
+ {}%
+ \IfStrEq{\PostItDeco}{Scotch}%
+ {%
+ \draw ({0.5*\PostItLarg},{-\MarginVHPostIt-0.2cm}) node[text width=\LargeurTextePostIt cm,rotate=\PostItIncline,below,align=\PostItAlignH,inner sep=0pt] {\TextePostIt} ;
+ }%
+ {}%
+ }%
+ {%
+ \IfStrEq{\PostItAlignV}{top}
+ {%
+ \IfStrEq{\PostItDeco}{Pushpin}%
+ {%
+ \draw ({0.5*\PostItLarg},{-\MarginVHPostIt-0.4cm}) node[text width=\LargeurTextePostIt cm,rotate=\PostItIncline,below,align=\PostItAlignH,inner sep=0pt] {\TextePostIt} ;
+ }%
+ {}%
+ \IfStrEq{\PostItDeco}{None}%
+ {%
+ \draw ({0.5*\PostItLarg},{-\MarginVHPostIt}) node[text width=\LargeurTextePostIt cm,rotate=\PostItIncline,below,align=\PostItAlignH,inner sep=0pt] {\TextePostIt} ;
+ }%
+ {}%
+ \IfStrEq{\PostItDeco}{Paperclip}%
+ {%
+ \draw ({0.5*\PostItLarg},{-\MarginVHPostIt}) node[text width=\LargeurTextePostIt cm,rotate=\PostItIncline,below,align=\PostItAlignH,inner sep=0pt] {\TextePostIt} ;
+ }%
+ {}%
+ \IfStrEq{\PostItDeco}{Scotch}%
+ {%
+ \draw ({0.5*\PostItLarg},{-\MarginVHPostIt-0.2cm}) node[text width=\LargeurTextePostIt cm,rotate=\PostItIncline,below,align=\PostItAlignH,inner sep=0pt] {\TextePostIt} ;
+ }%
+ {}%
+ }%
+ {}%
+ \IfStrEq{\PostItAlignV}{center}
+ {%
+ \IfStrEq{\PostItDeco}{Pushpin}%
+ {%
+ \draw ({0.5*\PostItLarg},{-0.5*\hauteur-\MarginVHPostIt-0.2cm}) node[text width=\LargeurTextePostIt cm,rotate=\PostItIncline,align=\PostItAlignH,inner sep=0pt] {\TextePostIt} ;
+ }%
+ {}%
+ \IfStrEq{\PostItDeco}{None}%
+ {%
+ \draw ({0.5*\PostItLarg},{-0.5*\hauteur}) node[text width=\LargeurTextePostIt cm,rotate=\PostItIncline,align=\PostItAlignH,inner sep=0pt] {\TextePostIt} ;
+ }%
+ {}%
+ \IfStrEq{\PostItDeco}{Paperclip}%
+ {%
+ \draw ({0.5*\PostItLarg},{-0.5*\hauteur}) node[text width=\LargeurTextePostIt cm,rotate=\PostItIncline,align=\PostItAlignH,inner sep=0pt] {\TextePostIt} ;
+ }%
+ {}%
+ \IfStrEq{\PostItDeco}{Scotch}%
+ {%
+ \draw ({0.5*\PostItLarg},{-0.5*\hauteur}) node[text width=\LargeurTextePostIt cm,rotate=\PostItIncline,align=\PostItAlignH,inner sep=0pt] {\TextePostIt} ;
+ }%
+ {}%
+ }%
+ {}%
+ \IfStrEq{\PostItAlignV}{bottom}
+ {%
+ \draw ({0.5*\PostItLarg},{-\hauteur}) node[text width=\LargeurTextePostIt cm,rotate=\PostItIncline,above=0.6cm,align=\PostItAlignH,inner sep=0pt] {\TextePostIt} ;
+ }%
+ {}%
+ }%
+ %affichage de la punaise
+ \IfStrEq{\PostItDeco}{Pushpin}%
+ {%
+ \begin{scope}[shift={(0.5*\PostItLarg+0.5*\PostItExtraMargin+\PostItDeclClip,-0.49)},scale={0.55},rotate=-40]
+ \begin{scope}[rotate=-35]
+ \draw[blue!10!gray,line cap=round,line width=2pt] (0,0) -- ++(90:0.85);
+ \fill[blue!10!gray,scale=0.5] (90:0.85) ellipse (.65cm and .3cm) ;
+ \fill[blue!10!gray,scale=0.5] (90:0.85) ++(0,0.4) ellipse (.2 and .4);
+ \fill[blue!10!gray,scale=0.5] (90:0.85) ++(0,0.8) ellipse (.4 and .3);
+ \end{scope}
+ \draw[line cap=round,line width=2pt] (0,0) -- ++(90:0.85);
+ \fill[ball color=\PostItCoulClip!66,scale=0.5] (90:0.85) ellipse (.65cm and .3cm) ;
+ \fill[ball color=\PostItCoulClip!66,scale=0.5] (90:0.85) ++(0,0.4) ellipse (.2 and .4);
+ \fill[ball color=\PostItCoulClip!66,scale=0.5] (90:0.85) ++(0,0.8) ellipse (.4 and .3);
+ \end{scope}
+ }%
+ {}%
+ %affichage du trombone
+ \IfStrEq{\PostItDeco}{Paperclip}%
+ {%
+ \begin{scope}[shift={(\PostItLarg+\PostItExtraMargin-1+\PostItDeclClip,0)},rotate=-15,scale={\PostItCoulScaleClip*0.55},line cap=round]
+ \draw[line width=0.81mm,draw=\PostItCoulClip!66] (0,0) --++ (0,0.0) arc (180:0:3.5mm) --++ (0,-1.75) arc (0:-180:3mm) --++ (0,1.25) ;
+ \draw[line width=0.27mm,draw=\PostItCoulClip!33] (0,0) --++ (0,0.0) arc (180:0:3.5mm) --++ (0,-1.75) arc (0:-180:3mm) --++ (0,1.25) ;
+ \end{scope}
+ }%
+ {}%
+ %affichage du scotch
+ \IfStrEq{\PostItDeco}{Scotch}%
+ {%
+ \begin{scope}[shift={(0.5*\PostItLarg+0.5*\PostItExtraMargin+\PostItDeclClip,0)},scale={0.65},rotate=3,line cap=round]
+ \draw[thin,gray!50,fill=lightgray,fill opacity=0.75] ({-0.5*\LargeurStotch},{-0.5*\HauteurScotch}) to ({0.5*\LargeurStotch},{-0.5*\HauteurScotch}) decorate [decoration={zigzag,segment length=2pt,amplitude=0.5pt}] {to ({0.5*\LargeurStotch},{0.5*\HauteurScotch})} to ({-0.5*\LargeurStotch},{0.5*\HauteurScotch}) decorate [decoration={zigzag,segment length=2pt,amplitude=0.5pt}] {to cycle} ;
+ \end{scope}
+ }%
+ {}%
+ \end{tikzpicture}%
+ }{}%
+}%
+{}%
+
\endinput
\ No newline at end of file
More information about the tex-live-commits
mailing list.