| 1 |
% !TeX TXS-program:compile = txs:///arara |
| 2 |
% arara: pdflatex: {shell: yes, synctex: no, interaction: batchmode} |
| 3 |
% arara: pdflatex: {shell: yes, synctex: no, interaction: batchmode} if found('log', '(undefined references|Please rerun|Rerun to get)') |
| 4 |
|
| 5 |
\documentclass[french,a4paper,11pt]{article} |
| 6 |
\usepackage[margin=2cm,includefoot]{geometry} |
| 7 |
\def\TPversion{0.1.5} |
| 8 |
\def\TPdate{29 juillet 2025} |
| 9 |
\usepackage[utf8]{inputenc} |
| 10 |
\usepackage[T1]{fontenc} |
| 11 |
\usepackage{amsmath,amssymb} |
| 12 |
\usepackage{postit} |
| 13 |
\usepackage{awesomebox} |
| 14 |
\usepackage{fontawesome5} |
| 15 |
\usepackage{footnote} |
| 16 |
\makesavenoteenv{tabular} |
| 17 |
\usepackage{enumitem} |
| 18 |
\usepackage{tabularray} |
| 19 |
\usepackage{wrapstuff} |
| 20 |
\usepackage{lipsum} |
| 21 |
\usepackage{fancyvrb} |
| 22 |
\usepackage{fancyhdr} |
| 23 |
\fancyhf{} |
| 24 |
\renewcommand{\headrulewidth}{0pt} |
| 25 |
\lfoot{\sffamily\small [postit]} |
| 26 |
\cfoot{\sffamily\small - \thepage{} -} |
| 27 |
\rfoot{\hyperlink{matoc}{\small\faArrowAltCircleUp[regular]}} |
| 28 |
|
| 29 |
%\usepackage{hvlogos} |
| 30 |
\usepackage{hologo} |
| 31 |
\providecommand\tikzlogo{Ti\textit{k}Z} |
| 32 |
\providecommand\TeXLive{\TeX{}Live\xspace} |
| 33 |
\providecommand\PSTricks{\textsf{PSTricks}\xspace} |
| 34 |
\let\pstricks\PSTricks |
| 35 |
\let\TikZ\tikzlogo |
| 36 |
\newcommand\TableauDocumentation{% |
| 37 |
\begin{tblr}{width=\linewidth,colspec={X[c]X[c]X[c]X[c]X[c]X[c]},cells={font=\sffamily}} |
| 38 |
{\LARGE \LaTeX} & & & & &\\ |
| 39 |
& {\LARGE \hologo{pdfLaTeX}} & & & & \\ |
| 40 |
& & {\LARGE \hologo{LuaLaTeX}} & & & \\ |
| 41 |
& & & {\LARGE \TikZ} & & \\ |
| 42 |
& & & & {\LARGE \TeXLive} & \\ |
| 43 |
& & & & & {\LARGE \hologo{MiKTeX}} \\ |
| 44 |
\end{tblr} |
| 45 |
} |
| 46 |
|
| 47 |
\usepackage{hyperref} |
| 48 |
\urlstyle{same} |
| 49 |
\hypersetup{pdfborder=0 0 0} |
| 50 |
\setlength{\parindent}{0pt} |
| 51 |
\definecolor{LightGray}{gray}{0.9} |
| 52 |
|
| 53 |
\usepackage{babel} |
| 54 |
\AddThinSpaceBeforeFootnotes |
| 55 |
\FrenchFootnotes |
| 56 |
|
| 57 |
\usepackage{listings} |
| 58 |
|
| 59 |
\usepackage{newverbs} |
| 60 |
\newverbcommand{\motcletex}{\color{cyan!75!black}}{} |
| 61 |
\newverbcommand{\packagetex}{\color{violet!75!black}}{} |
| 62 |
|
| 63 |
\tcbuselibrary{listingsutf8} |
| 64 |
\newtcblisting{DemoCode}[1][]{% |
| 65 |
enhanced,width=0.95\linewidth,center,% |
| 66 |
bicolor,size=title,% |
| 67 |
colback=cyan!2!white,% |
| 68 |
colbacklower=cyan!1!white,% |
| 69 |
colframe=cyan!75!black,% |
| 70 |
listing options={% |
| 71 |
breaklines=true,% |
| 72 |
breakatwhitespace=true,% |
| 73 |
style=tcblatex,basicstyle=\small\ttfamily,% |
| 74 |
tabsize=4,% |
| 75 |
commentstyle={\itshape\color{gray}}, |
| 76 |
keywordstyle={\color{blue}},% |
| 77 |
classoffset=0,% |
| 78 |
keywords={},% |
| 79 |
alsoletter={-},% |
| 80 |
keywordstyle={\color{blue}},% |
| 81 |
classoffset=1,% |
| 82 |
alsoletter={-},% |
| 83 |
morekeywords={center,justify,\lipsum},% |
| 84 |
keywordstyle={\color{violet}},% |
| 85 |
classoffset=2,% |
| 86 |
alsoletter={-},% |
| 87 |
morekeywords={PostIt,\MiniPostIt},% |
| 88 |
keywordstyle={\color{green!50!black}},% |
| 89 |
classoffset=3,% |
| 90 |
morekeywords={Couleur,CouleurAttache,Attache,Largeur,Hauteur,Inclinaison,Ombre,Coin,DecalAttache,AlignementH,AlignementV,AlignementPostIt,Bordure,ExtraMargeDroite,Rendu,Titre,PoliceTitre,RappelPostIt},% |
| 91 |
keywordstyle={\color{orange}} |
| 92 |
},% |
| 93 |
#1 |
| 94 |
} |
| 95 |
|
| 96 |
\tcbset{vignettes/.style={% |
| 97 |
nobeforeafter,box align=base,boxsep=0pt,enhanced,sharp corners=all,rounded corners=southeast,% |
| 98 |
boxrule=0.75pt,left=7pt,right=1pt,top=0pt,bottom=0.25pt,% |
| 99 |
} |
| 100 |
} |
| 101 |
|
| 102 |
\tcbset{vignetteMaJ/.style={% |
| 103 |
fontupper={\vphantom{pf}\footnotesize\ttfamily}, |
| 104 |
vignettes,colframe=purple!50!black,coltitle=white,colback=purple!10,% |
| 105 |
overlay={\begin{tcbclipinterior}% |
| 106 |
\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)$);% |
| 107 |
\end{tcbclipinterior}} |
| 108 |
} |
| 109 |
} |
| 110 |
|
| 111 |
\newcommand\Cle[1]{{\small\sffamily\textlangle \textcolor{orange}{#1}\textrangle}} |
| 112 |
\newcommand\cmaj[1]{\tcbox[vignetteMaJ]{#1}\xspace} |
| 113 |
|
| 114 |
\begin{document} |
| 115 |
|
| 116 |
\setlength{\aweboxleftmargin}{0.07\linewidth} |
| 117 |
\setlength{\aweboxcontentwidth}{0.93\linewidth} |
| 118 |
\setlength{\aweboxvskip}{8pt} |
| 119 |
|
| 120 |
\pagestyle{fancy} |
| 121 |
|
| 122 |
\thispagestyle{empty} |
| 123 |
|
| 124 |
\vspace{2cm} |
| 125 |
|
| 126 |
\begin{center} |
| 127 |
\begin{minipage}{0.75\linewidth} |
| 128 |
\begin{tcolorbox}[colframe=yellow,colback=yellow!15] |
| 129 |
\begin{center} |
| 130 |
\begin{tabular}{c} |
| 131 |
{\Huge \texttt{postit} [fr]}\\ |
| 132 |
\\ |
| 133 |
{\LARGE Des petits Post-It,} \\ |
| 134 |
\\ |
| 135 |
{\LARGE avec \textsf{tcolorbox} ou \textsf{Ti\textit{k}Z}.} \\ |
| 136 |
\end{tabular} |
| 137 |
|
| 138 |
\bigskip |
| 139 |
|
| 140 |
{\small \texttt{Version \TPversion{} -- \TPdate}} |
| 141 |
\end{center} |
| 142 |
\end{tcolorbox} |
| 143 |
\end{minipage} |
| 144 |
\end{center} |
| 145 |
|
| 146 |
\begin{center} |
| 147 |
\begin{tabular}{c} |
| 148 |
\texttt{Cédric Pierquet}\\ |
| 149 |
{\ttfamily c pierquet -- at -- outlook . fr}\\ |
| 150 |
\texttt{\url{https://forge.apps.education.fr/pierquetcedric/packages-latex}}\\ |
| 151 |
\texttt{\url{https://github.com/cpierquet/latex-packages/tree/main/postit}} |
| 152 |
\end{tabular} |
| 153 |
\end{center} |
| 154 |
|
| 155 |
\vspace{0.25cm} |
| 156 |
|
| 157 |
{$\blacktriangleright$~~Placer/personnaliser/nommer des Post-It ou des \textit{mini-}Post-It.} |
| 158 |
|
| 159 |
\vspace{0.25cm} |
| 160 |
|
| 161 |
{$\blacktriangleright$~~Gestion de la taille, de l'inclinaison, de la décoration.} |
| 162 |
|
| 163 |
\vspace{1cm} |
| 164 |
|
| 165 |
\begin{PostIt}[RappelPostIt=PI1]<center> |
| 166 |
Ceci est un petit Post-It ! Pour rappeler par exemple que \[(a+b)^2=a^2+2ab+b^2.\] |
| 167 |
\end{PostIt} |
| 168 |
|
| 169 |
\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] |
| 170 |
\lipsum[1][1-4] |
| 171 |
|
| 172 |
\end{PostIt} |
| 173 |
\hfill |
| 174 |
\begin{PostIt}[Hauteur=6cm,AlignementV=center,Couleur=pink,CouleurAttache=blue,Inclinaison=15,Coin,AlignementPostIt=center,Attache=Scotch,RappelPostIt=PI3] |
| 175 |
\lipsum[1][1-4] |
| 176 |
\end{PostIt} |
| 177 |
|
| 178 |
\begin{tikzpicture}[remember picture,overlay] |
| 179 |
\draw[very thick,->,>=latex] (PI1-S)to[out=-90,in=90](PI2-N) ; |
| 180 |
\draw[very thick,lime,densely dashed,->,>=latex] (PI2-E)to[out=0,in=180](PI3-S-O) ; |
| 181 |
\end{tikzpicture} |
| 182 |
|
| 183 |
\vspace{0.5cm} |
| 184 |
|
| 185 |
%\hfill{}\textit{Merci à Denis Bitouzé et à Gilles Le Bourhis pour leurs retours et idées !} |
| 186 |
|
| 187 |
\smallskip |
| 188 |
|
| 189 |
\vfill |
| 190 |
|
| 191 |
\hrule |
| 192 |
|
| 193 |
\medskip |
| 194 |
|
| 195 |
\TableauDocumentation |
| 196 |
|
| 197 |
\medskip |
| 198 |
|
| 199 |
\hrule |
| 200 |
|
| 201 |
\medskip |
| 202 |
|
| 203 |
\newpage |
| 204 |
|
| 205 |
\phantomsection |
| 206 |
\hypertarget{matoc}{} |
| 207 |
|
| 208 |
\tableofcontents |
| 209 |
|
| 210 |
\vfill |
| 211 |
|
| 212 |
\section{Historique} |
| 213 |
|
| 214 |
\verb|v0.1.5|~:~~~~Meilleure gestion des espaces. |
| 215 |
|
| 216 |
\verb|v0.1.4|~:~~~~Meilleure gestion de l'alignement horizontal. |
| 217 |
|
| 218 |
\verb|v0.1.3|~:~~~~Les Post-It ont désormais un nom pour réutilisation ultérieure. |
| 219 |
|
| 220 |
\verb|v0.1.2|~:~~~~Ajout des clés en langue anglaise. |
| 221 |
|
| 222 |
\verb|v0.1.1|~:~~~~Ajout d'un \motcletex!\vphantom! pour les \textit{mini-}Post-It (hauteur \textit{uniforme}) + Correction de bugs. |
| 223 |
|
| 224 |
\verb| |~:~~~~Moteurs de rendu alternatif en \TikZ{} + Ajout d'un titre éventuel . |
| 225 |
|
| 226 |
\verb|v0.1.0|~:~~~~Version initiale. |
| 227 |
|
| 228 |
\newpage |
| 229 |
|
| 230 |
\section{Le package postit} |
| 231 |
|
| 232 |
\subsection{Introduction} |
| 233 |
|
| 234 |
\begin{noteblock} |
| 235 |
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é : |
| 236 |
|
| 237 |
\begin{itemize} |
| 238 |
\item de spécifier les dimensions, la couleur ; |
| 239 |
\item de rajouter une \textit{attache} comme un trombone ou une punaise ; |
| 240 |
\item de personnaliser les bordure et le coin ; |
| 241 |
\item réutiliser des points d'ancrage du Post-It pour décorations ultérieures. |
| 242 |
\end{itemize} |
| 243 |
|
| 244 |
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. |
| 245 |
\end{noteblock} |
| 246 |
|
| 247 |
\subsection{Chargement du package, packages utilisés} |
| 248 |
|
| 249 |
\begin{importantblock} |
| 250 |
Le package se charge, de manière classique, dans le préambule. |
| 251 |
|
| 252 |
Il n'existe pas d'option pour le package, et \packagetex!xcolor! n'est pas chargé. |
| 253 |
\end{importantblock} |
| 254 |
|
| 255 |
\begin{DemoCode}[listing only] |
| 256 |
\documentclass{article} |
| 257 |
\usepackage{postit} |
| 258 |
|
| 259 |
\end{DemoCode} |
| 260 |
|
| 261 |
\begin{noteblock} |
| 262 |
\packagetex!postit! charge les packages suivantes : |
| 263 |
|
| 264 |
\begin{itemize} |
| 265 |
\item \packagetex!tcolorbox! avec la librairie \packagetex!tcbox.skins! ; |
| 266 |
\item les librairies \packagetex!tikz! : |
| 267 |
\begin{itemize} |
| 268 |
\item \packagetex!tikz.calc! ; |
| 269 |
\item \packagetex!tikz.babel! ; |
| 270 |
\item \packagetex!tikz.decorations! ; |
| 271 |
\item \packagetex!tikz.decorations.pathmorphing! ; |
| 272 |
\end{itemize} |
| 273 |
\item \packagetex!settobox!, \packagetex!xstring!, \packagetex!varwidth! et \packagetex!simplekv!. |
| 274 |
\end{itemize} |
| 275 |
|
| 276 |
Il est compatible avec les compilations usuelles en \textsf{latex}, \textsf{pdflatex}, \textsf{lualatex} ou \textsf{xelatex}. |
| 277 |
\end{noteblock} |
| 278 |
|
| 279 |
\subsection{Compatibilité} |
| 280 |
|
| 281 |
\begin{cautionblock} |
| 282 |
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...!. |
| 283 |
\end{cautionblock} |
| 284 |
|
| 285 |
\begin{DemoCode}[listing only] |
| 286 |
\documentclass{article} |
| 287 |
\usepackage[<librairies>]{tcolorbox} |
| 288 |
\usepackage{postit} |
| 289 |
... |
| 290 |
|
| 291 |
\end{DemoCode} |
| 292 |
|
| 293 |
\vfill~ |
| 294 |
|
| 295 |
\pagebreak |
| 296 |
|
| 297 |
\section{Environnement Post-It} |
| 298 |
|
| 299 |
\subsection{Environnement et fonctionnement global} |
| 300 |
|
| 301 |
\begin{cautionblock} |
| 302 |
L'environnement dédié à la création du Post-It est \packagetex!PostIt!. |
| 303 |
|
| 304 |
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!) ! |
| 305 |
\end{cautionblock} |
| 306 |
|
| 307 |
\begin{DemoCode}[listing only] |
| 308 |
\begin{PostIt}[clés]<options tcbox> |
| 309 |
... |
| 310 |
... |
| 311 |
\end{PostIt} |
| 312 |
\end{DemoCode} |
| 313 |
|
| 314 |
\begin{noteblock} |
| 315 |
Comme indiqué dans l'introduction, le Post-It est créé à l'aide d'un environnement \motcletex!tcbox! ou d'un environnement \motcletex!tikz!. |
| 316 |
|
| 317 |
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 ! |
| 318 |
\end{noteblock} |
| 319 |
|
| 320 |
\begin{DemoCode}[] |
| 321 |
%sortie par défaut (rendu tcbox), avec un paragraphe issu du package lipsum |
| 322 |
\begin{PostIt} |
| 323 |
\lipsum[1][1-2] |
| 324 |
\end{PostIt} |
| 325 |
\end{DemoCode} |
| 326 |
|
| 327 |
\begin{DemoCode}[] |
| 328 |
%sortie rendu tikz, avec un paragraphe issu du package lipsum |
| 329 |
\begin{PostIt}[Rendu=tikz] |
| 330 |
\lipsum[1][1-2] |
| 331 |
\end{PostIt} |
| 332 |
%sortie rendu tikzv2, avec un paragraphe issu du package lipsum |
| 333 |
\begin{PostIt}[Rendu=tikzv2] |
| 334 |
\lipsum[1][1-2] |
| 335 |
\end{PostIt} |
| 336 |
\end{DemoCode} |
| 337 |
|
| 338 |
\begin{tipblock} |
| 339 |
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!. |
| 340 |
|
| 341 |
Toutefois, toute couleur précédemment définie pourra être utilisée pour le Post-It. |
| 342 |
\end{tipblock} |
| 343 |
|
| 344 |
\begin{tipblock} |
| 345 |
Le Post-It créé pourra être intégré dans une \motcletex!minipage! ou un \motcletex!wrapstuff! si besoin. |
| 346 |
|
| 347 |
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...!. |
| 348 |
\end{tipblock} |
| 349 |
|
| 350 |
\begin{warningblock} |
| 351 |
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. |
| 352 |
\end{warningblock} |
| 353 |
|
| 354 |
\subsection{Clés et options} |
| 355 |
|
| 356 |
\begin{tipblock} |
| 357 |
Le premier argument, optionnel et entre \texttt{[...]}, propose les \Cle{clés} suivantes : |
| 358 |
|
| 359 |
\begin{itemize} |
| 360 |
\item \cmaj{0.1.3} \Cle{RappelPostIt} : nom (pour du code \TikZ{} ultérieur) du Post-It ; \hfill{}défaut : \Cle{PostIt} |
| 361 |
\item \Cle{Largeur} : largeur (en cm) du Post-It ; \hfill{}défaut : \Cle{6cm} |
| 362 |
\item \Cle{Couleur} : couleur du Post-It (la bordure sera plus foncée) ; \hfill{}défaut : \Cle{yellow} |
| 363 |
\item \Cle{Hauteur} : hauteur (en cm si déclarée) du Post-It (par défaut elle est \textit{automatique}) ; |
| 364 |
|
| 365 |
\hfill{}défaut : \Cle{auto} |
| 366 |
\item \cmaj{0.1.1} \Cle{Rendu} : moteur du rendu parmi \Cle{tcbox / tikz / tikv2} ; \hfill{}défaut : \Cle{tcbox} |
| 367 |
\item \Cle{Inclinaison} : inclinaison du Post-It ; \hfill{}défaut : \Cle{0} |
| 368 |
\item \Cle{Ombre} : booléen pour afficher une ombre portée ; \hfill{}défaut : \Cle{true} |
| 369 |
\item \Cle{Bordure} : booléen pour afficher une fine bordure ; \hfill{}défaut : \Cle{true} |
| 370 |
\item \Cle{Coin} : booléen pour afficher un coin corné ; \hfill{}défaut : \Cle{false} |
| 371 |
\item \cmaj{0.1.1} \Cle{Attache} : choix de la décoration, parmi \Cle{Trombone / Punaise / Non / Scotch} ; |
| 372 |
|
| 373 |
\hfill{}défaut : \Cle{Punaise} |
| 374 |
\item \Cle{CouleurAttache} : couleur de l'attache ; \hfill{}défaut : \Cle{red} |
| 375 |
\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) ; |
| 376 |
|
| 377 |
\hfill{}défaut : \Cle{0} |
| 378 |
\item \cmaj{0.1.1} \Cle{Titre} : rajouter un titre (en 1ère ligne et/ou sous l'Attache) ; \hfill{}défaut : \Cle{vide} |
| 379 |
\item \cmaj{0.1.1} \Cle{PoliceTitre} : police du titre ; \hfill{}défaut : \Cle{\textbackslash normalfont\textbackslash normalfont} |
| 380 |
\item \cmaj{0.1.1} \Cle{ExtraMargeDroite} : rajoute (en rendu \packagetex!tikz!, et en cm) une marge à droite ; |
| 381 |
|
| 382 |
\hfill{}défaut : \Cle{0cm} |
| 383 |
\item \Cle{AlignementV} : gère l'alignement vertical dans le Post-It (parmi \Cle{top/center/bottom}) ; |
| 384 |
|
| 385 |
\hfill{}défaut : \Cle{top} |
| 386 |
\item \Cle{AlignementH} : gère l'alignement horizontal dans le Post-It (parmi \Cle{left/center/right/justify}) ; |
| 387 |
|
| 388 |
\hfill{}défaut : \Cle{justify} |
| 389 |
\item \Cle{AlignementPostIt} : gère l'alignement vertical global du Post-It (parmi \Cle{top/center/bottom}). |
| 390 |
|
| 391 |
\hfill{}défaut : \Cle{bottom} |
| 392 |
\end{itemize} |
| 393 |
\vspace*{-\baselineskip}\leavevmode |
| 394 |
\end{tipblock} |
| 395 |
|
| 396 |
\begin{tipblock} |
| 397 |
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!). |
| 398 |
|
| 399 |
Elles permettent de modifier localement des options non paramétrées par des clés présentées précédemment. |
| 400 |
\end{tipblock} |
| 401 |
|
| 402 |
\subsection{Fonctionnement des points d'ancrage} |
| 403 |
|
| 404 |
\begin{tipblock} |
| 405 |
En plus du Post-It, le package \packagetex!postit! crée huit points d'ancrage pour le Post-It, qui seront nommés : |
| 406 |
|
| 407 |
\begin{itemize} |
| 408 |
\item \motcletex!(<nom>-N)!, \motcletex!(<nom>-E)!, \motcletex!(<nom>-S)! et \motcletex!(<nom>-O)! pour les points Nord/Est/Sud/Ouest ; |
| 409 |
\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. |
| 410 |
\end{itemize} |
| 411 |
\end{tipblock} |
| 412 |
|
| 413 |
\begin{DemoCode}[] |
| 414 |
\begin{center} |
| 415 |
\begin{PostIt}[Inclinaison=10,Attache=Non,Rendu=tikz,RappelPostIt=MaPetiteNote1] |
| 416 |
\lipsum[1][1-2] |
| 417 |
\end{PostIt} |
| 418 |
\end{center} |
| 419 |
\end{DemoCode} |
| 420 |
|
| 421 |
\begin{tikzpicture}[remember picture,overlay] |
| 422 |
\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} |
| 423 |
{% |
| 424 |
\draw[draw=blue,fill=red] (MaPetiteNote1-\dir) circle[radius=2pt] node[text=gray,\pos,font=\scriptsize\ttfamily] {MaPetiteNote1-\dir};% |
| 425 |
} |
| 426 |
\end{tikzpicture} |
| 427 |
|
| 428 |
\begin{DemoCode}[] |
| 429 |
\begin{PostIt}[RappelPostIt=NoteY]<center> |
| 430 |
Ceci est un petit Post-It ! Pour rappeler par exemple que \[(a+b)^2=a^2+2ab+b^2.\] |
| 431 |
\end{PostIt}\\ |
| 432 |
\begin{PostIt}[Rendu=tikz,Largeur=8cm,Couleur=blue,Inclinaison=-5,RappelPostIt=NoteZ] |
| 433 |
\lipsum[1][1-2] |
| 434 |
\end{PostIt} |
| 435 |
|
| 436 |
\begin{tikzpicture}[remember picture,overlay] |
| 437 |
\draw[very thick,->,>=latex] (NoteY-S)to[out=-90,in=90](NoteZ-N) ; |
| 438 |
\end{tikzpicture} |
| 439 |
\end{DemoCode} |
| 440 |
|
| 441 |
\subsection{Exemples} |
| 442 |
|
| 443 |
\begin{DemoCode}[] |
| 444 |
\begin{PostIt}%moteur de rendu tcbox (défaut) |
| 445 |
[Couleur=cyan,Attache=Trombone,Largeur=10cm,Inclinaison=10]<center,right=1.5cm> |
| 446 |
\lipsum[1][1-3] |
| 447 |
\end{PostIt} |
| 448 |
\end{DemoCode} |
| 449 |
|
| 450 |
\begin{DemoCode}[] |
| 451 |
\hfill\begin{PostIt}%moteur de rendu tikz |
| 452 |
[Rendu=tikz,Couleur=violet,Largeur=9cm,Inclinaison=-10,Attache=Trombone, |
| 453 |
CouleurAttache=black,ExtraMargeDroite=1cm,Titre={Petit Titre}, |
| 454 |
PoliceTitre={\color{white}\bfseries\small\sffamily}] |
| 455 |
\lipsum[1][1-3] |
| 456 |
\end{PostIt}\hfill~ |
| 457 |
\end{DemoCode} |
| 458 |
|
| 459 |
\begin{DemoCode}[] |
| 460 |
\hfill\begin{PostIt}%moteur de rendu tikzv2 |
| 461 |
[Rendu=tikzv2,Couleur=orange,Largeur=9cm,Inclinaison=-10,Attache=Scotch, Titre={Essai}, |
| 462 |
PoliceTitre={\color{blue!50!black}\bfseries\itshape\small\ttfamily}] |
| 463 |
\lipsum[1][1-3] |
| 464 |
\end{PostIt}\hfill~ |
| 465 |
\end{DemoCode} |
| 466 |
|
| 467 |
\begin{DemoCode}[] |
| 468 |
%usepackage{wrapstuff} |
| 469 |
\begin{wrapstuff}[r,top=1] |
| 470 |
\begin{PostIt}[Inclinaison=5,Coin,Couleur=pink,CouleurAttache=blue,Bordure=false] |
| 471 |
\lipsum[1][1-2] |
| 472 |
\end{PostIt} |
| 473 |
\end{wrapstuff} |
| 474 |
|
| 475 |
\lipsum[1] |
| 476 |
\end{DemoCode} |
| 477 |
|
| 478 |
\begin{DemoCode}[] |
| 479 |
%usepackage{wrapstuff} |
| 480 |
\begin{wrapstuff}[r,top=1] |
| 481 |
\begin{PostIt}[Inclinaison=5,Rendu=tikz,Couleur=pink, CouleurAttache=blue,Bordure=false] |
| 482 |
\lipsum[1][1-2] |
| 483 |
\end{PostIt} |
| 484 |
\end{wrapstuff} |
| 485 |
|
| 486 |
\lipsum[1] |
| 487 |
\end{DemoCode} |
| 488 |
|
| 489 |
\begin{DemoCode}[] |
| 490 |
%usepackage{wrapstuff} |
| 491 |
\begin{wrapstuff}[r,top=1] |
| 492 |
\begin{PostIt}[Inclinaison=5,Rendu=tikzv2,Attache=Scotch,Couleur=pink] |
| 493 |
\lipsum[1][1-2] |
| 494 |
\end{PostIt} |
| 495 |
\end{wrapstuff} |
| 496 |
|
| 497 |
\lipsum[1] |
| 498 |
\end{DemoCode} |
| 499 |
|
| 500 |
\begin{DemoCode}[] |
| 501 |
Un petit Post-It aligné à droite, et centré verticalement : |
| 502 |
% |
| 503 |
\hfill\begin{PostIt}[Inclinaison=-10,Couleur=orange,Largeur=5cm,Hauteur=5cm, AlignementV=center,Coin,CouleurAttache=yellow, DecalAttache=-1,AlignementPostIt=center] |
| 504 |
|
| 505 |
\textsf{\small\lipsum[1][1-2]} |
| 506 |
\[\mathsf{\displaystyle\sum_{k=1}^{n} k = \dfrac{n(n+1)}{2}}\] |
| 507 |
\end{PostIt} |
| 508 |
\end{DemoCode} |
| 509 |
|
| 510 |
%\begin{DemoCode}[] |
| 511 |
%Un petit Post-It aligné à droite, et centré verticalement : |
| 512 |
%% |
| 513 |
%\hfill\begin{PostIt}[Inclinaison=-10,Couleur=orange,Largeur=5cm,Hauteur=5cm, AlignementV=center,Rendu=tikz,Attache=Non,AlignementPostIt=center] |
| 514 |
% |
| 515 |
%\textsf{\small\lipsum[1][1-2]} |
| 516 |
%\[\mathsf{\displaystyle\sum_{k=1}^{n} k = \dfrac{n(n+1)}{2}}\] |
| 517 |
%\end{PostIt} |
| 518 |
%\end{DemoCode} |
| 519 |
% |
| 520 |
%\vfill~ |
| 521 |
|
| 522 |
\pagebreak |
| 523 |
|
| 524 |
\section{Post-It simple, en ligne} |
| 525 |
|
| 526 |
\subsection{Commande et fonctionnement global} |
| 527 |
|
| 528 |
\begin{cautionblock} |
| 529 |
La commande dédiée à la création du \textit{mini-}Post-It est \motcletex!MiniPostIt!. |
| 530 |
|
| 531 |
Elle fonctionne sous forme autonome, avec uniquement la couleur en \Cle{option}. |
| 532 |
|
| 533 |
\smallskip |
| 534 |
|
| 535 |
Cette fois-ci le \textit{mini-} Post-It est créé à l'aide d'une commande \motcletex!tcbox!. |
| 536 |
|
| 537 |
\smallskip |
| 538 |
|
| 539 |
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. |
| 540 |
\end{cautionblock} |
| 541 |
|
| 542 |
\begin{DemoCode}[listing only] |
| 543 |
\MiniPostIt(*)[couleur]{contenu} |
| 544 |
\end{DemoCode} |
| 545 |
|
| 546 |
\subsection{Arguments} |
| 547 |
|
| 548 |
\begin{noteblock} |
| 549 |
La version étoilée active l'ombre du \textit{mini-}Post-It. |
| 550 |
|
| 551 |
La couleur (\Cle{yellow}), est gérée par l'argument optionnel entre \texttt{[...]}. |
| 552 |
\end{noteblock} |
| 553 |
|
| 554 |
\subsection{Exemples} |
| 555 |
|
| 556 |
\begin{DemoCode}[] |
| 557 |
On va travailler sur une équation diophantienne du type $ax+by=c$. |
| 558 |
|
| 559 |
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}. |
| 560 |
|
| 561 |
Le schéma de résolution est classique, et assez simple à appréhender ! |
| 562 |
\end{DemoCode} |
| 563 |
|
| 564 |
\pagebreak |
| 565 |
|
| 566 |
\section{Résumé des styles} |
| 567 |
|
| 568 |
\subsection{Moteur de rendu tcbox} |
| 569 |
|
| 570 |
\begin{DemoCode}[text only] |
| 571 |
\hfill\begin{PostIt} |
| 572 |
\texttt{Ombre/Épingle/Bordure} |
| 573 |
\end{PostIt} |
| 574 |
\begin{PostIt}[Ombre=false] |
| 575 |
\texttt{Épingle/Bordure} |
| 576 |
\end{PostIt}\hfill~ |
| 577 |
|
| 578 |
\medskip |
| 579 |
|
| 580 |
\hfill\begin{PostIt}[Bordure=false] |
| 581 |
\texttt{Ombre/Épingle} |
| 582 |
\end{PostIt} |
| 583 |
\begin{PostIt}[Bordure=false,Ombre=false] |
| 584 |
\texttt{Épingle} |
| 585 |
\end{PostIt}\hfill~ |
| 586 |
|
| 587 |
\medskip |
| 588 |
|
| 589 |
\hfill\begin{PostIt}[Attache=Trombone] |
| 590 |
\texttt{Ombre/Trombone/Bordure}\\ |
| 591 |
~ |
| 592 |
\end{PostIt} |
| 593 |
\begin{PostIt}[Attache=Scotch] |
| 594 |
\texttt{Ombre/Scotch/Bordure}\\ |
| 595 |
~ |
| 596 |
\end{PostIt}\hfill~ |
| 597 |
|
| 598 |
\medskip |
| 599 |
|
| 600 |
\hfill\begin{PostIt}[Attache=Non] |
| 601 |
\texttt{Ombre/Bordure} |
| 602 |
\end{PostIt} |
| 603 |
\begin{PostIt}[Coin,Attache=Non] |
| 604 |
\texttt{Ombre/Bordure/Coin} |
| 605 |
\end{PostIt}\hfill~ |
| 606 |
|
| 607 |
\vspace{1cm} |
| 608 |
|
| 609 |
\hfill\begin{PostIt}[Titre={Lipsum[1][1-4]},PoliceTitre={\large\sffamily},Inclinaison=5,Couleur=pink,Hauteur=6cm,Attache=Scotch,AlignementV=center,Coin] |
| 610 |
\lipsum[1][1-4] |
| 611 |
\end{PostIt}\hfill~ |
| 612 |
\end{DemoCode} |
| 613 |
|
| 614 |
\pagebreak |
| 615 |
|
| 616 |
\subsection{Moteur de rendu tikz} |
| 617 |
|
| 618 |
\begin{DemoCode}[text only] |
| 619 |
\hfill\begin{PostIt}[Rendu=tikz] |
| 620 |
\texttt{Ombre/Épingle/Bordure} |
| 621 |
\end{PostIt} |
| 622 |
\begin{PostIt}[Ombre=false,Rendu=tikz] |
| 623 |
\texttt{Épingle/Bordure} |
| 624 |
\end{PostIt}\hfill~ |
| 625 |
|
| 626 |
\medskip |
| 627 |
|
| 628 |
\hfill\begin{PostIt}[Bordure=false,Rendu=tikz] |
| 629 |
\texttt{Ombre/Épingle} |
| 630 |
\end{PostIt} |
| 631 |
\begin{PostIt}[Bordure=false,Ombre=false,Rendu=tikz] |
| 632 |
\texttt{Épingle} |
| 633 |
\end{PostIt}\hfill~ |
| 634 |
|
| 635 |
\medskip |
| 636 |
|
| 637 |
\hfill\begin{PostIt}[Attache=Trombone,Rendu=tikz] |
| 638 |
\texttt{Ombre/Trombone/Bordure}\\ |
| 639 |
~ |
| 640 |
\end{PostIt} |
| 641 |
\begin{PostIt}[Attache=Scotch,Rendu=tikz] |
| 642 |
\texttt{Ombre/Scotch/Bordure}\\ |
| 643 |
~ |
| 644 |
\end{PostIt}\hfill~ |
| 645 |
|
| 646 |
\medskip |
| 647 |
|
| 648 |
\hfill\begin{PostIt}[Attache=Non,Rendu=tikz] |
| 649 |
\texttt{Ombre/Bordure} |
| 650 |
\end{PostIt}\hfill~ |
| 651 |
|
| 652 |
\vspace{1cm} |
| 653 |
|
| 654 |
\hfill\begin{PostIt}[Rendu=tikz,Titre={Lipsum[1][1-4]},PoliceTitre={\large\sffamily},Inclinaison=5,Couleur=pink,Hauteur=6cm,Attache=Scotch,AlignementV=center,Coin] |
| 655 |
\lipsum[1][1-4] |
| 656 |
\end{PostIt}\hfill~ |
| 657 |
\end{DemoCode} |
| 658 |
|
| 659 |
\subsection{Moteur de rendu tikzv2} |
| 660 |
|
| 661 |
\begin{DemoCode}[text only] |
| 662 |
\hfill\begin{PostIt}[Rendu=tikzv2] |
| 663 |
\texttt{Ombre/Épingle/Bordure} |
| 664 |
\end{PostIt} |
| 665 |
\begin{PostIt}[Ombre=false,Rendu=tikzv2] |
| 666 |
\texttt{Épingle/Bordure} |
| 667 |
\end{PostIt}\hfill~ |
| 668 |
|
| 669 |
\medskip |
| 670 |
|
| 671 |
\hfill\begin{PostIt}[Bordure=false,Rendu=tikzv2] |
| 672 |
\texttt{Ombre/Épingle} |
| 673 |
\end{PostIt} |
| 674 |
\begin{PostIt}[Bordure=false,Ombre=false,Rendu=tikzv2] |
| 675 |
\texttt{Épingle} |
| 676 |
\end{PostIt}\hfill~ |
| 677 |
|
| 678 |
\medskip |
| 679 |
|
| 680 |
\hfill\begin{PostIt}[Attache=Trombone,Rendu=tikzv2] |
| 681 |
\texttt{Ombre/Trombone/Bordure}\\ |
| 682 |
~ |
| 683 |
\end{PostIt} |
| 684 |
\begin{PostIt}[Attache=Scotch,Rendu=tikzv2] |
| 685 |
\texttt{Ombre/Scotch/Bordure}\\ |
| 686 |
~ |
| 687 |
\end{PostIt}\hfill~ |
| 688 |
|
| 689 |
\medskip |
| 690 |
|
| 691 |
\hfill\begin{PostIt}[Attache=Non,Rendu=tikzv2] |
| 692 |
\texttt{Ombre/Bordure} |
| 693 |
\end{PostIt}\hfill~ |
| 694 |
|
| 695 |
\vspace{1cm} |
| 696 |
|
| 697 |
\hfill\begin{PostIt}[Rendu=tikzv2,Titre={Lipsum[1][1-4]},PoliceTitre={\large\sffamily},Inclinaison=5,Couleur=pink,Hauteur=6cm,Attache=Scotch,AlignementV=center,Coin] |
| 698 |
\lipsum[1][1-4] |
| 699 |
\end{PostIt}\hfill~ |
| 700 |
\end{DemoCode} |
| 701 |
|
| 702 |
|
| 703 |
|
| 704 |
\end{document} |