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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
|
%%% Testing:basic functionality
\documentclass{article}
\usepackage[absolute,showboxes]{textpos}
\setlength{\TPHorizModule}{30mm}
\setlength{\TPVertModule}{\TPHorizModule}
\textblockorigin{10mm}{10mm} % start everything near the top-left corner
\setlength{\parindent}{0pt}
\pagestyle{empty}
\textblockcolour{red} % should have no effect, since {color} not loaded
\begin{document}
\begin{textblock}{4}(0,0)
% make a grid on the page
\lineskip=0pt % abut boxes directly
\setbox1=\hbox to \TPHorizModule{\hfill \vrule height \TPVertModule}
\setbox0=\vbox to \TPVertModule{\noindent\copy1\copy1 \copy1 \vss\hrule}
\copy0
\copy0
\copy0
\copy0
\end{textblock}
\begin{textblock}{3}(0,0)
\{3\}(0,0)
\end{textblock}
\begin{textblock}{2}(2,1)
\textblocklabel{block two}
\{2\}(2,1)
\end{textblock}
\begin{textblock}{3}[0.5,0.5](3,3)
\{3\}[0.5,0.5](3,3)
\end{textblock}
\begin{textblock}{2.5}(3,3)
\{2.5\}(3,3)
\end{textblock}
\begin{textblock}{3.5}(1.5,1.5)
\{3.5\}(1.5,1.5)
\end{textblock}
\begin{textblock*}{5cm}(25mm,50mm)
\{5cm\}(25mm,50mm)
\end{textblock*}
\begin{textblock*}{284.52756pt}[0.5,0.5](50.0mm,2.5cm)
\{284.52756pt\}[0.5,0.5](50.0mm,2.5cm)
\end{textblock*}
\TPReferencePosition{0.5,0.5}
\begin{textblock}{1}(2,4)
\{1\}(2,4)\hfil\break (refpos [0.5,0.5])
\end{textblock}
% The following is for testing the _experimental_ (in v1.9) discardcontent=true mode
% \TPoptions{discardcontent=true}
% Here is content
\end{document}
|