| 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[english,a4paper,11pt]{article} |
| 6 |
\usepackage[margin=2cm,includefoot]{geometry} |
| 7 |
\def\TPversion{0.1.5} |
| 8 |
\def\TPdate{29/07/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 |
\usepackage{xspace} |
| 32 |
\providecommand\tikzlogo{Ti\textit{k}Z} |
| 33 |
\providecommand\TeXLive{\TeX{}Live\xspace} |
| 34 |
\providecommand\PSTricks{\textsf{PSTricks}\xspace} |
| 35 |
\let\pstricks\PSTricks |
| 36 |
\let\TikZ\tikzlogo |
| 37 |
\newcommand\TableauDocumentation{% |
| 38 |
\begin{tblr}{width=\linewidth,colspec={X[c]X[c]X[c]X[c]X[c]X[c]},cells={font=\sffamily}} |
| 39 |
{\LARGE \LaTeX} & & & & &\\ |
| 40 |
& {\LARGE \hologo{pdfLaTeX}} & & & & \\ |
| 41 |
& & {\LARGE \hologo{LuaLaTeX}} & & & \\ |
| 42 |
& & & {\LARGE \TikZ} & & \\ |
| 43 |
& & & & {\LARGE \TeXLive} & \\ |
| 44 |
& & & & & {\LARGE \hologo{MiKTeX}} \\ |
| 45 |
\end{tblr} |
| 46 |
} |
| 47 |
|
| 48 |
\usepackage{hyperref} |
| 49 |
\urlstyle{same} |
| 50 |
\hypersetup{pdfborder=0 0 0} |
| 51 |
\setlength{\parindent}{0pt} |
| 52 |
\definecolor{LightGray}{gray}{0.9} |
| 53 |
|
| 54 |
\usepackage{babel} |
| 55 |
%\AddThinSpaceBeforeFootnotes |
| 56 |
%\FrenchFootnotes |
| 57 |
|
| 58 |
\usepackage{listings} |
| 59 |
|
| 60 |
\usepackage{newverbs} |
| 61 |
\newverbcommand{\motcletex}{\color{cyan!75!black}}{} |
| 62 |
\newverbcommand{\packagetex}{\color{violet!75!black}}{} |
| 63 |
|
| 64 |
\tcbuselibrary{listingsutf8} |
| 65 |
\newtcblisting{DemoCode}[1][]{% |
| 66 |
enhanced,width=0.95\linewidth,center,% |
| 67 |
bicolor,size=title,% |
| 68 |
colback=cyan!2!white,% |
| 69 |
colbacklower=cyan!1!white,% |
| 70 |
colframe=cyan!75!black,% |
| 71 |
listing options={% |
| 72 |
breaklines=true,% |
| 73 |
breakatwhitespace=true,% |
| 74 |
style=tcblatex,basicstyle=\small\ttfamily,% |
| 75 |
tabsize=4,% |
| 76 |
commentstyle={\itshape\color{gray}}, |
| 77 |
keywordstyle={\color{blue}},% |
| 78 |
classoffset=0,% |
| 79 |
keywords={},% |
| 80 |
alsoletter={-},% |
| 81 |
keywordstyle={\color{blue}},% |
| 82 |
classoffset=1,% |
| 83 |
alsoletter={-},% |
| 84 |
morekeywords={center,right,justify,left,\lipsum},% |
| 85 |
keywordstyle={\color{violet}},% |
| 86 |
classoffset=2,% |
| 87 |
alsoletter={-},% |
| 88 |
morekeywords={PostItNote,\MiniPostIt},% |
| 89 |
keywordstyle={\color{green!50!black}},% |
| 90 |
classoffset=3,% |
| 91 |
morekeywords={Color,PinColor,Pin,Width,Hieght,Rotate,Shadow,Corner,PinShift,AlignH,AlignV,AlignPostIt,Border,ExtraRightMargin,Render,Title,FontTitle,StorePostIt},% |
| 92 |
keywordstyle={\color{orange}} |
| 93 |
},% |
| 94 |
#1 |
| 95 |
} |
| 96 |
|
| 97 |
\tcbset{vignettes/.style={% |
| 98 |
nobeforeafter,box align=base,boxsep=0pt,enhanced,sharp corners=all,rounded corners=southeast,% |
| 99 |
boxrule=0.75pt,left=7pt,right=1pt,top=0pt,bottom=0.25pt,% |
| 100 |
} |
| 101 |
} |
| 102 |
|
| 103 |
\tcbset{vignetteMaJ/.style={% |
| 104 |
fontupper={\vphantom{pf}\footnotesize\ttfamily}, |
| 105 |
vignettes,colframe=purple!50!black,coltitle=white,colback=purple!10,% |
| 106 |
overlay={\begin{tcbclipinterior}% |
| 107 |
\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)$);% |
| 108 |
\end{tcbclipinterior}} |
| 109 |
} |
| 110 |
} |
| 111 |
|
| 112 |
\newcommand\Cle[1]{{\small\sffamily\textlangle \textcolor{orange}{#1}\textrangle}} |
| 113 |
\newcommand\cmaj[1]{\tcbox[vignetteMaJ]{#1}\xspace} |
| 114 |
|
| 115 |
\begin{document} |
| 116 |
|
| 117 |
\setlength{\aweboxleftmargin}{0.07\linewidth} |
| 118 |
\setlength{\aweboxcontentwidth}{0.93\linewidth} |
| 119 |
\setlength{\aweboxvskip}{8pt} |
| 120 |
|
| 121 |
\pagestyle{fancy} |
| 122 |
|
| 123 |
\thispagestyle{empty} |
| 124 |
|
| 125 |
\vspace{2cm} |
| 126 |
|
| 127 |
\begin{center} |
| 128 |
\begin{minipage}{0.75\linewidth} |
| 129 |
\begin{tcolorbox}[colframe=yellow,colback=yellow!15] |
| 130 |
\begin{center} |
| 131 |
\begin{tabular}{c} |
| 132 |
{\Huge \texttt{postit} [en]}\\ |
| 133 |
\\ |
| 134 |
{\LARGE Small Post-It notes,} \\ |
| 135 |
\\ |
| 136 |
{\LARGE with \textsf{tcolorbox} or \textsf{Ti\textit{k}Z}.} \\ |
| 137 |
\end{tabular} |
| 138 |
|
| 139 |
\bigskip |
| 140 |
|
| 141 |
{\small \texttt{Version \TPversion{} -- \TPdate}} |
| 142 |
\end{center} |
| 143 |
\end{tcolorbox} |
| 144 |
\end{minipage} |
| 145 |
\end{center} |
| 146 |
|
| 147 |
\begin{center} |
| 148 |
\begin{tabular}{c} |
| 149 |
\texttt{Cédric Pierquet}\\ |
| 150 |
{\ttfamily c pierquet -- at -- outlook . fr}\\ |
| 151 |
\texttt{\url{https://forge.apps.education.fr/pierquetcedric/packages-latex}}\\ |
| 152 |
\texttt{\url{https://github.com/cpierquet/latex-packages/tree/main/postit}} |
| 153 |
\end{tabular} |
| 154 |
\end{center} |
| 155 |
|
| 156 |
\vspace{0.25cm} |
| 157 |
|
| 158 |
{$\blacktriangleright$~~Display and customize Post-It or \textit{mini-}Post-It.} |
| 159 |
|
| 160 |
\vspace{0.25cm} |
| 161 |
|
| 162 |
{$\blacktriangleright$~~Custom width, height, rotation, decoration\ldots} |
| 163 |
|
| 164 |
\vspace{1cm} |
| 165 |
|
| 166 |
\begin{PostItNote}[StorePostIt=PI1]<center> |
| 167 |
This is a small Post-It ! For example \[(a+b)^2=a^2+2ab+b^2.\] |
| 168 |
\end{PostItNote} |
| 169 |
|
| 170 |
\begin{PostItNote}[Render=tikz,Width=8cm,Color=orange,Pin=Paperclip,PinColor=blue,Rotate=-5,AlignPostIt=center,Title={- With a title -},FontTitle={\color{blue!50!black}\bfseries\small\sffamily},StorePostIt=PI2] |
| 171 |
\lipsum[1][1-4] |
| 172 |
\end{PostItNote} |
| 173 |
\hfill |
| 174 |
\begin{PostItNote}[Height=6cm,AlignV=center,Color=pink,Pin=Scotch,Rotate=15,Corner,AlignPostIt=center,StorePostIt=PI3] |
| 175 |
\lipsum[1][1-4] |
| 176 |
\end{PostItNote} |
| 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-W) ; |
| 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{History} |
| 213 |
|
| 214 |
\verb|v0.1.5|~:~~~~Bugfix with spacing. |
| 215 |
|
| 216 |
\verb|v0.1.4|~:~~~~Bugfix with horizontal alignment. |
| 217 |
|
| 218 |
\verb|v0.1.3|~:~~~~Nodes for anchor points. |
| 219 |
|
| 220 |
\verb|v0.1.2|~:~~~~English version. |
| 221 |
|
| 222 |
\verb|v0.1.1|~:~~~~\motcletex!\vphantom! for \textit{mini-}Post-It + Bugfixes + \TikZ{} rendering + optional title . |
| 223 |
|
| 224 |
\verb|v0.1.0|~:~~~~Initial version. |
| 225 |
|
| 226 |
\newpage |
| 227 |
|
| 228 |
\section{The package postit} |
| 229 |
|
| 230 |
\subsection{Introduction} |
| 231 |
|
| 232 |
\begin{noteblock} |
| 233 |
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 : |
| 234 |
|
| 235 |
\begin{itemize} |
| 236 |
\item change dimensions or color ; |
| 237 |
\item use pin deocration like Paperclip, Pushpin or Scotch ; |
| 238 |
\item customize border and/or corner ; |
| 239 |
\item use anchor points for each Post-It. |
| 240 |
\end{itemize} |
| 241 |
|
| 242 |
The package propose a command to display \textit{mini-}Post-It (created with \motcletex!tcbox!), with color and shadow customization. |
| 243 |
\end{noteblock} |
| 244 |
|
| 245 |
\subsection{Loading of the package, and option} |
| 246 |
|
| 247 |
\begin{importantblock} |
| 248 |
The package Scrabble loads within the preamble. |
| 249 |
|
| 250 |
There's no option, and \packagetex!xcolor! isn't loaded. |
| 251 |
\end{importantblock} |
| 252 |
|
| 253 |
\begin{DemoCode}[listing only] |
| 254 |
\documentclass{article} |
| 255 |
\usepackage{postit} |
| 256 |
|
| 257 |
\end{DemoCode} |
| 258 |
|
| 259 |
\begin{noteblock} |
| 260 |
\packagetex!postit! loads the following packages and libraries : |
| 261 |
|
| 262 |
\begin{itemize} |
| 263 |
\item \packagetex!tcolorbox! with library \packagetex!tcbox.skins! ; |
| 264 |
\item \packagetex!tikz! libraries : |
| 265 |
\begin{itemize} |
| 266 |
\item \packagetex!tikz.calc! ; |
| 267 |
\item \packagetex!tikz.babel! ; |
| 268 |
\item \packagetex!tikz.decorations! ; |
| 269 |
\item \packagetex!tikz.decorations.pathmorphing! ; |
| 270 |
\end{itemize} |
| 271 |
\item \packagetex!settobox!, \packagetex!xstring!, \packagetex!varwidth! and \packagetex!simplekv!. |
| 272 |
\end{itemize} |
| 273 |
|
| 274 |
It’s mostly compatible with \textsf{latex}, \textsf{pdflatex}, \textsf{lualatex} or \textsf{xelatex} compilation ! |
| 275 |
\end{noteblock} |
| 276 |
|
| 277 |
\subsection{Compatibility} |
| 278 |
|
| 279 |
\begin{cautionblock} |
| 280 |
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...!. |
| 281 |
\end{cautionblock} |
| 282 |
|
| 283 |
\begin{DemoCode}[listing only] |
| 284 |
\documentclass{article} |
| 285 |
\usepackage[<librairies>]{tcolorbox} |
| 286 |
\usepackage{postit} |
| 287 |
... |
| 288 |
|
| 289 |
\end{DemoCode} |
| 290 |
|
| 291 |
\vfill~ |
| 292 |
|
| 293 |
\pagebreak |
| 294 |
|
| 295 |
\section{Post-It Environment} |
| 296 |
|
| 297 |
\subsection{Environment} |
| 298 |
|
| 299 |
\begin{cautionblock} |
| 300 |
The environment to display a Post-It note is \packagetex!PostItNote!. |
| 301 |
|
| 302 |
It works with keys, between \texttt{[...]} and, with \texttt{<...>}, it's possible to parse options to the \motcletex!tcbox! (not necessary with \motcletex!tikz!) ! |
| 303 |
\end{cautionblock} |
| 304 |
|
| 305 |
\begin{DemoCode}[listing only] |
| 306 |
\begin{PostIt}[keys]<options tcbox> |
| 307 |
... |
| 308 |
... |
| 309 |
\end{PostIt} |
| 310 |
\end{DemoCode} |
| 311 |
|
| 312 |
\begin{noteblock} |
| 313 |
As mentioned in the introduction, the Post-It note is create with a \motcletex!tcbox! or a \motcletex!tikzpicture!. |
| 314 |
|
| 315 |
Most of the \motcletex!tcbox!/\motcletex!tikzpicture! parameters are fixed by the code, but some of them are configurable ! |
| 316 |
\end{noteblock} |
| 317 |
|
| 318 |
\begin{DemoCode}[] |
| 319 |
%default rendering (tcbox), with lipsum paragraph |
| 320 |
\begin{PostItNote} |
| 321 |
\lipsum[1][1-2] |
| 322 |
\end{PostItNote} |
| 323 |
\end{DemoCode} |
| 324 |
|
| 325 |
\begin{DemoCode}[] |
| 326 |
%tikz rendering, with lipsum paragraph |
| 327 |
\begin{PostItNote}[Render=tikz] |
| 328 |
\lipsum[1][1-2] |
| 329 |
\end{PostItNote} |
| 330 |
%tikzv2 rendering, with lipsum paragraph |
| 331 |
\begin{PostItNote}[Render=tikzv2] |
| 332 |
\lipsum[1][1-2] |
| 333 |
\end{PostItNote} |
| 334 |
\end{DemoCode} |
| 335 |
|
| 336 |
\begin{tipblock} |
| 337 |
The colors must be used as \textit{single}, without \textit{mixes} (with \motcletex|CouleurA!...!CouleurB|) proposed by \packagetex!xcolor!. |
| 338 |
|
| 339 |
|
| 340 |
However, every predefined color can be used within the Post-It. |
| 341 |
\end{tipblock} |
| 342 |
|
| 343 |
\begin{tipblock} |
| 344 |
The Post-It can be used with a \motcletex!minipage! or a \motcletex!wrapstuff! if needed. |
| 345 |
|
| 346 |
For horizontal alignment, \motcletex!\hfill! or \motcletex!flush...! can be used. |
| 347 |
\end{tipblock} |
| 348 |
|
| 349 |
\begin{warningblock} |
| 350 |
With a overlapping pin and the \textsf{tcbox} rendering, a vertical spacing before can be necessary, like \motcletex!\vspace! or \motcletex!\bigskip!\ldots |
| 351 |
\end{warningblock} |
| 352 |
|
| 353 |
\subsection{Keys and options} |
| 354 |
|
| 355 |
\begin{tipblock} |
| 356 |
The first argument, mandatory and between \texttt{[...]}, proposes the following \Cle{keys} : |
| 357 |
|
| 358 |
\begin{itemize} |
| 359 |
\item \cmaj{0.1.3} \Cle{StorePostIt} : name (for further \TikZ{} code) of the Post-It ; \hfill{}default : \Cle{PostIt} |
| 360 |
\item \Cle{Width} : width (in cm) of the Post-It ; \hfill{}default : \Cle{6cm} |
| 361 |
\item \Cle{Color} : color of the Post-It (border is a bit darker) ; \hfill{}default : \Cle{yellow} |
| 362 |
\item \Cle{Height} : height (in cm, if needed) of the Post-It (\textit{automatic} by default) ; |
| 363 |
|
| 364 |
\hfill{}default : \Cle{auto} |
| 365 |
\item \cmaj{0.1.1} \Cle{Render} : engine, within \Cle{tcbox / tikz / tikv2} ; \hfill{}default : \Cle{tcbox} |
| 366 |
\item \Cle{Rotation} : rotation of the Post-It ; \hfill{}default : \Cle{0} |
| 367 |
\item \Cle{Shadow} : boolean for shadow ; \hfill{}default : \Cle{true} |
| 368 |
\item \Cle{Border} : boolean for a thin border ; \hfill{}default : \Cle{true} |
| 369 |
\item \Cle{Corner} : boolean to the corner decoration (\motcletex!tcbox!) ; \hfill{}default : \Cle{false} |
| 370 |
\item \Cle{Pin} : decoration, within \Cle{Paperclip / Pushpin / None / Scotch} ; |
| 371 |
|
| 372 |
\hfill{}default : \Cle{Pushpin} |
| 373 |
\item \Cle{PinColor} : color of the pin ; \hfill{}default : \Cle{red} |
| 374 |
\item \Cle{PinsShift} : horizontal shift (without unity, but in cm) of the original position of the pin \hfill{}default : \Cle{0} |
| 375 |
\item \cmaj{0.1.1} \Cle{Title} : add a title (1st line and/or under the pin) ; \hfill{}default : \Cle{empty} |
| 376 |
\item \cmaj{0.1.1} \Cle{Fonttitle} : font of the title ; \hfill{}default : \Cle{\textbackslash normalfont\textbackslash normalfont} |
| 377 |
\item \cmaj{0.1.1} \Cle{ExtraRightMargin} : add (with \packagetex!tikz! rendering, and in cm) à right margin ; |
| 378 |
|
| 379 |
\hfill{}default : \Cle{0cm} |
| 380 |
\item \Cle{AlignV} : vertical alignment in the Post-It (within \Cle{top/center/bottom}) ; |
| 381 |
|
| 382 |
\hfill{}default : \Cle{top} |
| 383 |
\item \Cle{AlignH} : horizontal alignment in the Post-It (within \Cle{left/center/right/justify}) ; |
| 384 |
|
| 385 |
\hfill{}default : \Cle{justify} |
| 386 |
\item \Cle{AlignPostIt} : vertical alignemnt of the Post-It (within \Cle{top/center/bottom}). |
| 387 |
|
| 388 |
\hfill{}default : \Cle{bottom} |
| 389 |
\end{itemize} |
| 390 |
\vspace*{-\baselineskip}\leavevmode |
| 391 |
\end{tipblock} |
| 392 |
|
| 393 |
\begin{tipblock} |
| 394 |
The second argument, optional and between \texttt{<...>} is used to parse options to the \motcletex!tcolorbox!. |
| 395 |
|
| 396 |
They can be used to modify locally options not present in the keys. |
| 397 |
\end{tipblock} |
| 398 |
|
| 399 |
\subsection{Anchor points} |
| 400 |
|
| 401 |
\begin{tipblock} |
| 402 |
Some anchor points are created with the code : |
| 403 |
|
| 404 |
\begin{itemize} |
| 405 |
\item \motcletex!(<name>-N)!, \motcletex!(<name>-E)!, \motcletex!(<name>-S)! et \motcletex!(<name>-W)! for North/East/South/West ; |
| 406 |
\item \motcletex!(<name>-N-W)!, \motcletex!(<name>-N-E)!, \motcletex!(<name>-S-E)! and \motcletex!(<name>-S-W)! for North East/North West/\ldots. |
| 407 |
\end{itemize} |
| 408 |
\end{tipblock} |
| 409 |
|
| 410 |
\begin{DemoCode}[] |
| 411 |
\begin{center} |
| 412 |
\begin{PostItNote}[Rotate=10,Pin=None,Render=tikz,StorePostIt=MySmallNote1] |
| 413 |
\lipsum[1][1-2] |
| 414 |
\end{PostItNote} |
| 415 |
\end{center} |
| 416 |
\end{DemoCode} |
| 417 |
|
| 418 |
\begin{tikzpicture}[remember picture,overlay] |
| 419 |
\foreach \dir/\pos in {N-W/above left,N/above,N-E/above right,E/right, S-E/below right,S/below,S-W/below left,W/left} |
| 420 |
{% |
| 421 |
\draw[draw=blue,fill=red] (MySmallNote1-\dir) circle[radius=2pt] node[text=gray,\pos,font=\scriptsize\ttfamily] {MySmallNote1-\dir};% |
| 422 |
} |
| 423 |
\end{tikzpicture} |
| 424 |
|
| 425 |
\begin{DemoCode}[] |
| 426 |
\begin{PostItNote}[StorePostIt=NoteY]<center> |
| 427 |
This is a small Post-It ! For example \[(a+b)^2=a^2+2ab+b^2.\] |
| 428 |
\end{PostItNote}\\ |
| 429 |
\begin{PostItNote}[Render=tikz,Width=8cm,Color=blue,Rotate=-5,StorePostIt=NoteZ] |
| 430 |
\lipsum[1][1-2] |
| 431 |
\end{PostItNote} |
| 432 |
|
| 433 |
\begin{tikzpicture}[remember picture,overlay] |
| 434 |
\draw[very thick,->,>=latex] (NoteY-S)to[out=-90,in=90](NoteZ-N) ; |
| 435 |
\end{tikzpicture} |
| 436 |
\end{DemoCode} |
| 437 |
|
| 438 |
\subsection{Examples} |
| 439 |
|
| 440 |
\begin{DemoCode}[] |
| 441 |
\begin{PostItNote}%tcbox rendering |
| 442 |
[Color=cyan,Pin=Paperclip,Width=10cm,Rotate=10]<center,right=1.5cm> |
| 443 |
\lipsum[1][1-3] |
| 444 |
\end{PostItNote} |
| 445 |
\end{DemoCode} |
| 446 |
|
| 447 |
\begin{DemoCode}[] |
| 448 |
\hfill\begin{PostItNote}%tikz rendering |
| 449 |
[Render=tikz,Color=violet,Width=9cm,Rotate=-10,Pin=Paperclip, |
| 450 |
PinColor=black,ExtraRightMargin=1cm,Title={Small title}, |
| 451 |
FontTitle={\color{white}\bfseries\small\sffamily}] |
| 452 |
\lipsum[1][1-3] |
| 453 |
\end{PostItNote}\hfill~ |
| 454 |
\end{DemoCode} |
| 455 |
|
| 456 |
\begin{DemoCode}[] |
| 457 |
\hfill\begin{PostItNote}%tikzv2 rendering |
| 458 |
[Render=tikzv2,Color=orange,Width=9cm,rotate=-10,Pin=Scotch, Title={Try}, |
| 459 |
FontTitle={\color{blue!50!black}\bfseries\itshape\small\ttfamily}] |
| 460 |
\lipsum[1][1-3] |
| 461 |
\end{PostItNote}\hfill~ |
| 462 |
\end{DemoCode} |
| 463 |
|
| 464 |
\begin{DemoCode}[] |
| 465 |
%usepackage{wrapstuff} |
| 466 |
\begin{wrapstuff}[r,top=1] |
| 467 |
\begin{PostItNote}[Rotate=5,Corner,Color=pink,PinkColor=blue,Border=false] |
| 468 |
\lipsum[1][1-2] |
| 469 |
\end{PostItNote} |
| 470 |
\end{wrapstuff} |
| 471 |
|
| 472 |
\lipsum[1] |
| 473 |
\end{DemoCode} |
| 474 |
|
| 475 |
\begin{DemoCode}[] |
| 476 |
%usepackage{wrapstuff} |
| 477 |
\begin{wrapstuff}[r,top=1] |
| 478 |
\begin{PostItNote}[Rotate=5,Render=tikz,Color=pink, PinkColor=blue,Border=false] |
| 479 |
\lipsum[1][1-2] |
| 480 |
\end{PostItNote} |
| 481 |
\end{wrapstuff} |
| 482 |
|
| 483 |
\lipsum[1] |
| 484 |
\end{DemoCode} |
| 485 |
|
| 486 |
\begin{DemoCode}[] |
| 487 |
%usepackage{wrapstuff} |
| 488 |
\begin{wrapstuff}[r,top=1] |
| 489 |
\begin{PostItNote}[Rotate=5,Render=tikzv2,Pin=Scotch,Color=pink] |
| 490 |
\lipsum[1][1-2] |
| 491 |
\end{PostItNote} |
| 492 |
\end{wrapstuff} |
| 493 |
|
| 494 |
\lipsum[1] |
| 495 |
\end{DemoCode} |
| 496 |
|
| 497 |
\begin{DemoCode}[] |
| 498 |
A small Post-It, and vertically aligned : |
| 499 |
% |
| 500 |
\hfill\begin{PostItNote}[Rotate=-10,Color=orange,Width=5cm,Height=5cm, AlignV=center,Corner,PinColor=yellow, PinShift=-1,AlignPostIt=center] |
| 501 |
|
| 502 |
\textsf{\small\lipsum[1][1-2]} |
| 503 |
\[\mathsf{\displaystyle\sum_{k=1}^{n} k = \dfrac{n(n+1)}{2}}\] |
| 504 |
\end{PostItNote} |
| 505 |
\end{DemoCode} |
| 506 |
|
| 507 |
\pagebreak |
| 508 |
|
| 509 |
\section{Simple inline Post-It Note} |
| 510 |
|
| 511 |
\subsection{Command} |
| 512 |
|
| 513 |
\begin{cautionblock} |
| 514 |
The inline \textit{mini-}Post-It note is \motcletex!MiniPostIt!. |
| 515 |
|
| 516 |
The only optional parameter for the \motcletex!tcbox! Post-It is the color. |
| 517 |
|
| 518 |
\smallskip |
| 519 |
|
| 520 |
Dimensions can't be changed, a \motcletex!\vphantom! is inserted at beginning to prevent different heights. |
| 521 |
\end{cautionblock} |
| 522 |
|
| 523 |
\begin{DemoCode}[listing only] |
| 524 |
\MiniPostIt(*)[color]{text} |
| 525 |
\end{DemoCode} |
| 526 |
|
| 527 |
\subsection{Arguments} |
| 528 |
|
| 529 |
\begin{noteblock} |
| 530 |
The starred version show the shadow of the \textit{mini-}Post-It. |
| 531 |
|
| 532 |
The color (\Cle{yellow}), is the only optional argument, between \texttt{[...]}. |
| 533 |
\end{noteblock} |
| 534 |
|
| 535 |
\subsection{Examples} |
| 536 |
|
| 537 |
\begin{DemoCode}[] |
| 538 |
To solve Diophantine equations, we can use \MiniPostIt*[orange]{Bézout's thoerem}, and \MiniPostIt{Gauss' theorem}, with the \MiniPostIt*[cyan]{reciprocal}. |
| 539 |
|
| 540 |
It's classic and good to know ! |
| 541 |
\end{DemoCode} |
| 542 |
|
| 543 |
\pagebreak |
| 544 |
|
| 545 |
\section{Gallery of styles} |
| 546 |
|
| 547 |
\subsection{Render by tcbox} |
| 548 |
|
| 549 |
\begin{DemoCode}[text only] |
| 550 |
\hfill\begin{PostItNote} |
| 551 |
\texttt{Shadow/PushPin/Border} |
| 552 |
\end{PostItNote} |
| 553 |
\begin{PostIt}[Shadow=false] |
| 554 |
\texttt{Pin/Border} |
| 555 |
\end{PostIt}\hfill~ |
| 556 |
|
| 557 |
\medskip |
| 558 |
|
| 559 |
\hfill\begin{PostItNote}[Border=false] |
| 560 |
\texttt{Shadow/Pushpin} |
| 561 |
\end{PostItNote} |
| 562 |
\begin{PostItNote}[Border=false,Shadow=false] |
| 563 |
\texttt{Pushpin} |
| 564 |
\end{PostItNote}\hfill~ |
| 565 |
|
| 566 |
\medskip |
| 567 |
|
| 568 |
\hfill\begin{PostItNote}[Pin=Paperclip] |
| 569 |
\texttt{Shadow/Paperclip/Border}\\ |
| 570 |
~ |
| 571 |
\end{PostItNote} |
| 572 |
\begin{PostItNote}[Pin=Scotch] |
| 573 |
\texttt{Shadow/Scotch/Border}\\ |
| 574 |
~ |
| 575 |
\end{PostItNote}\hfill~ |
| 576 |
|
| 577 |
\medskip |
| 578 |
|
| 579 |
\hfill\begin{PostItNote}[Pin=None] |
| 580 |
\texttt{Shadow/Border} |
| 581 |
\end{PostItNote} |
| 582 |
\begin{PostItNote}[Corner,Pin=None] |
| 583 |
\texttt{Shadow/Border/Corner} |
| 584 |
\end{PostItNote}\hfill~ |
| 585 |
|
| 586 |
\vspace{1cm} |
| 587 |
|
| 588 |
\hfill\begin{PostItNote}[Title={Lipsum[1][1-4]},FontTitle={\large\sffamily},Rotate=5,Color=pink,Height=6cm,Pin=Scotch,AlignV=center,Corner] |
| 589 |
\lipsum[1][1-4] |
| 590 |
\end{PostItNote}\hfill~ |
| 591 |
\end{DemoCode} |
| 592 |
|
| 593 |
\pagebreak |
| 594 |
|
| 595 |
\subsection{Render by tikz} |
| 596 |
|
| 597 |
\begin{DemoCode}[text only] |
| 598 |
\hfill\begin{PostItNote}[Render=tikz] |
| 599 |
\texttt{Shadow/Pushpin/Border} |
| 600 |
\end{PostItNote} |
| 601 |
\begin{PostItNote}[Shadow=false,Render=tikz] |
| 602 |
\texttt{Pushpin/Border} |
| 603 |
\end{PostItNote}\hfill~ |
| 604 |
|
| 605 |
\medskip |
| 606 |
|
| 607 |
\hfill\begin{PostItNote}[Border=false,Render=tikz] |
| 608 |
\texttt{Shadow/Pushpin} |
| 609 |
\end{PostItNote} |
| 610 |
\begin{PostItNote}[Border=false,Shadow=false,Render=tikz] |
| 611 |
\texttt{Pushpin} |
| 612 |
\end{PostItNote}\hfill~ |
| 613 |
|
| 614 |
\medskip |
| 615 |
|
| 616 |
\hfill\begin{PostItNote}[Pin=Paperclip,Render=tikz] |
| 617 |
\texttt{Shadow/Paperclip/Border}\\ |
| 618 |
~ |
| 619 |
\end{PostItNote} |
| 620 |
\begin{PostItNote}[Pin=Scotch,Render=tikz] |
| 621 |
\texttt{Shadow/Scotch/Border}\\ |
| 622 |
~ |
| 623 |
\end{PostItNote}\hfill~ |
| 624 |
|
| 625 |
\medskip |
| 626 |
|
| 627 |
\hfill\begin{PostItNote}[Pin=None,Render=tikz] |
| 628 |
\texttt{Shadow/Border} |
| 629 |
\end{PostItNote}\hfill~ |
| 630 |
|
| 631 |
\vspace{1cm} |
| 632 |
|
| 633 |
\hfill\begin{PostItNote}[Render=tikz,Title={Lipsum[1][1-4]},FontTitle={\large\sffamily},Rotate=5,Color=pink,Height=6cm,Pin=Scotch,AlignV=center,Corner] |
| 634 |
\lipsum[1][1-4] |
| 635 |
\end{PostItNote}\hfill~ |
| 636 |
\end{DemoCode} |
| 637 |
|
| 638 |
\subsection{Render by tikzv2} |
| 639 |
|
| 640 |
\begin{DemoCode}[text only] |
| 641 |
\hfill\begin{PostItNote}[Render=tikzv2] |
| 642 |
\texttt{Shadow/Pushpin/Border} |
| 643 |
\end{PostItNote} |
| 644 |
\begin{PostItNote}[Shadow=false,Render=tikzv2] |
| 645 |
\texttt{Pushpin/Border} |
| 646 |
\end{PostItNote}\hfill~ |
| 647 |
|
| 648 |
\medskip |
| 649 |
|
| 650 |
\hfill\begin{PostItNote}[Border=false,Render=tikzv2] |
| 651 |
\texttt{Shadow/Pushpin} |
| 652 |
\end{PostItNote} |
| 653 |
\begin{PostItNote}[Border=false,Shadow=false,Render=tikzv2] |
| 654 |
\texttt{Pushpin} |
| 655 |
\end{PostItNote}\hfill~ |
| 656 |
|
| 657 |
\medskip |
| 658 |
|
| 659 |
\hfill\begin{PostItNote}[Pin=Paperclip,Render=tikzv2] |
| 660 |
\texttt{Shadow/Paperclip/Border}\\ |
| 661 |
~ |
| 662 |
\end{PostItNote} |
| 663 |
\begin{PostItNote}[Pin=Scotch,Render=tikzv2] |
| 664 |
\texttt{Shadow/Scotch/Border}\\ |
| 665 |
~ |
| 666 |
\end{PostItNote}\hfill~ |
| 667 |
|
| 668 |
\medskip |
| 669 |
|
| 670 |
\hfill\begin{PostItNote}[Pin=None,Render=tikzv2] |
| 671 |
\texttt{Shadow/Border} |
| 672 |
\end{PostItNote}\hfill~ |
| 673 |
|
| 674 |
\vspace{1cm} |
| 675 |
|
| 676 |
\hfill\begin{PostItNote}[Render=tikzv2,Title={Lipsum[1][1-4]},FontTitle={\large\sffamily},Rotate=5,Color=pink,Height=6cm,Pin=Scotch,AlignV=center,Corner] |
| 677 |
\lipsum[1][1-4] |
| 678 |
\end{PostItNote}\hfill~ |
| 679 |
\end{DemoCode} |
| 680 |
|
| 681 |
\end{document} |