summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/textpos/t/t4.tex
blob: fa712d1eb8ba6d6eba3a4d75f4057c88ee65d181 (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
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
67
68
69
70
71
72
73
%%% Testing:colours
\documentclass{article}

\newif\ifdebug
\debugfalse

%\usepackage[absolute,showboxes]{textpos}
\ifdebug
\usepackage[showboxes]{textpos}
\else
\usepackage{textpos}
\fi

\def\t#1#2{\ifdebug #2\else #1\fi}

\usepackage{color}

\setlength{\TPHorizModule}{30mm}
\setlength{\TPVertModule}{\TPHorizModule}
%\textblockorigin{10mm}{10mm} % start everything near the top-left corner

\setlength{\parindent}{0pt}
\pagestyle{empty}

\def\bigstrut{\hrule height 2ex depth 2ex width 0pt }

\begin{document}

\definecolor{Pink}{rgb}{1.0,0.8,0.8}
\definecolor{Blue}{rgb}{0.8,0.8,1.0}
\definecolor{Yellow}{rgb}{0.8,0.8,0.0}

\textcolor{Blue}{\t{a1}{Hello}}
{\color{Yellow} \t{a2}{There}}

\textblockcolour{Pink}

\begin{textblock}{3}(0,0)
\t{b}{\{3\}(0,0) Pink}
\end{textblock}

\begin{textblock}{2}(2,1)
\textblocklabel{block two}
\textblockcolour{Blue}
\t{c}{\{2\}(2,1) Blue}
\end{textblock}

\begin{textblock}{3}[0.5,0.5](3,3)
\bigstrut
\t{d}{\{3\}[0.5,0.5](3,3)
  \textcolor{Yellow}{\t{e}{Yellow}}
  \t{d2}{on Pink}}
\end{textblock}

\begin{textblock}{2.5}(3,3)
\tekstblokkulur{}
\t{f}{\{2.5\}(3,3)}
\textcolor{Yellow}{\t{g}{No colour}}
\end{textblock}

\begin{textblock}{3.5}(1.5,1.5)
\t{h}{\{3.5\}(1.5,1.5) Pink}
\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*}

\end{document}