summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/snaptodo/test/before_after.tex
blob: 99552464e22faa4008b2fa997a847685b8ae1914 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39

\documentclass{article}

\usepackage{snaptodo}

\begin{document}

\marginparsep=48pt
\marginparwidth=72pt

\section{Before todo notes}

We the People of the United States, in Order to form a more perfect Union,
establish Justice, insure domestic Tranquility, provide for the common defence,
promote the general Welfare, and secure the Blessings of Liberty to ourselves
and our Posterity, do ordain and establish this Constitution for the United
States of America.

\def\todoexample{%
	\pgfmathtruncatemacro\wc{round(1+rnd*10)}%
	\todo{%
		\foreach\w in{1,...,\wc}{%
			\pgfmathsetmacro\l{1+rnd*10}%
			\rule{\l pt}{1ex}
		}%
	},
}
\catcode`\,=\active
\let,=\todoexample

\section{After todo notes}

We the People of the United States, in Order to form a more perfect Union,
establish Justice, insure domestic Tranquility, provide for the common defence,
promote the general Welfare, and secure the Blessings of Liberty to ourselves
and our Posterity, do ordain and establish this Constitution for the United
States of America.

\end{document}