| 1 |
\documentclass{article} |
| 2 |
\usepackage{snaptodo} |
| 3 |
\begin{document} |
| 4 |
|
| 5 |
\section{Before snaptodo} |
| 6 |
|
| 7 |
We the People of the United States, in Order to form a more perfect |
| 8 |
Union, establish Justice, insure domestic Tranquility, provide for the |
| 9 |
common defence, promote the general Welfare, and secure the Blessings of |
| 10 |
Liberty to ourselves and our Posterity, do ordain and establish this |
| 11 |
Constitution for the United States of America. |
| 12 |
|
| 13 |
\def\snaptodoexample{% |
| 14 |
\pgfmathtruncatemacro\wc{round(5+rnd*10)}% |
| 15 |
\snaptodo[block rise=5em]{% |
| 16 |
\foreach\w in{1,...,\wc}{% |
| 17 |
\pgfmathsetmacro\l{0.5+rnd*2.5}% |
| 18 |
\rule{\l em}{0.5em} |
| 19 |
}% |
| 20 |
}, |
| 21 |
} |
| 22 |
\catcode`\,=\active |
| 23 |
\let,=\snaptodoexample |
| 24 |
|
| 25 |
\section{After snaptodo} |
| 26 |
|
| 27 |
We the People of the United States, in Order to form a more perfect |
| 28 |
Union, establish Justice, insure domestic Tranquility, provide for the |
| 29 |
common defence, promote the general Welfare, and secure the Blessings of |
| 30 |
Liberty to ourselves and our Posterity, do ordain and establish this |
| 31 |
Constitution for the United States of America. |
| 32 |
|
| 33 |
\end{document} |