Debian Codegraph @

texmf-dist/doc/latex/textpos/examples/t2.tex

raw
1 %%% Testing:interaction with calc
2 \documentclass{article}
3
4 \usepackage[absolute,showboxes]{textpos}
5 \usepackage{calc,ifthen}
6
7 \setlength\TPHorizModule{1mm}
8 \setlength\TPVertModule{\TPHorizModule}
9 \newcounter{MYCOUNT}
10
11 \setlength\parindent{0pt}\pagestyle{empty}
12
13 \begin{document}
14
15 % Set origin to 10mm,10mm
16 \textblockorigin{56.9055pt-10mm}{0pt+1cm}
17 % Box at (10mm,10mm)
18 \begin{textblock*}{25mm*2}(10mm,10mm)
19 \{25mm*2\}(10mm,10mm)
20 \end{textblock*}
21 % Box at (15mm,15mm)
22 \begin{textblock*}{10mm+14cm}(3\TPHorizModule*5,10\TPVertModule+5mm)
23 \verb^{10mm+14cm}(3\TPHorizModule*5,10\TPVertModule+5mm)^
24 \end{textblock*}
25
26
27 \whiledo{\value{MYCOUNT} < 5}%
28 {
29 \textblockorigin{0mm + 20mm * \value{MYCOUNT}}{55mm * \value{MYCOUNT}}
30 \begin{textblock}{100}(10,10)%
31 \begin{minipage}[b][50mm][t]{\linewidth}
32 Text \hfill Text \par \vfill Text \hfill Text\par
33 \end{minipage}
34 \end{textblock}%
35 \stepcounter{MYCOUNT}
36 }
37
38 \def\tick#1{\vrule height 0pt depth #1pt}
39 \def\\{\hbox to 1cm{\hfil\tick4\hfil\tick8}}
40 \vbox{\hrule\hbox{\tick8\\\\\\\\\\\\\\\\\\\\}}
41
42
43 \end{document}