summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/textpos/niepraschk-eso-pic.tex
blob: 775941b990a3fd52a1ec3434a7f63b6fd561af91 (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
74
75
76
77
78
79
80
81
82
83
84
85
86
87

% Rolf Niepraschk <Rolf.Niepraschk@gmx.de>, 2009-10-10
% A funny demo for `textpos' with a backgroundgrid from `eso-pic'.
\documentclass[a4paper,draft]{article}

\usepackage[colorgrid,texcoord]{eso-pic}[2002/11/16]
%\usepackage[absolute,showboxes]{textpos}
\usepackage[absolute]{textpos}
\usepackage{calc}

\newcommand\StartX{25mm} \newcommand\StartY{40mm}
\newcommand\Wi{160mm} \newcommand\Wii{40mm} \newcommand\Wiii{60mm}
\newcommand\Hi{20mm}  \newcommand\Hii{100mm}

\pagestyle{empty}

\begin{document}

\textblockorigin{0cm}{0cm}

\begin{textblock*}{\Wi}(\StartX,\StartY)%
  \noindent\colorbox[rgb]{0,0,1}{%
    \begin{minipage}[c][\Hi-2\fboxsep][c]{\linewidth-2\fboxsep}%
      \centering\Huge\textbf{FOO}%
    \end{minipage}}% 
\end{textblock*}

\begin{textblock*}{\Wii}(\StartX,\StartY+20mm)%
  \noindent\colorbox[rgb]{0,1,0}{%
    \begin{minipage}[c][\Hii-2\fboxsep][c]{\linewidth-2\fboxsep}%
      \centering\Huge\textbf{BAR}%
    \end{minipage}}% 
\end{textblock*}

\begin{textblock*}{\Wii}(\StartX+\Wi-\Wii,\StartY+20mm)%
  \noindent\colorbox[rgb]{1,1,0}{%
    \begin{minipage}[c][\Hii-2\fboxsep][c]{\linewidth-2\fboxsep}%
      \centering\Huge\textbf{BAR}%
    \end{minipage}}% 
\end{textblock*}

\begin{textblock*}{\Wi}(\StartX,\Wi)%
  \noindent\colorbox[rgb]{1,0,1}{%
    \begin{minipage}[c][\Hi-2\fboxsep][c]{\linewidth-2\fboxsep}%
      \centering\Huge\textbf{FOO}%
    \end{minipage}}% 
\end{textblock*}

\begin{textblock*}{\Wiii}(75mm,70mm)%
  \setlength\fboxrule{2pt}%
  \noindent\fbox{%
    \begin{minipage}{\linewidth-2\fboxsep-2\fboxrule}%
      \Large\itshape
      Text Text Text Text Text  
      Text Text Text Text Text 
      Text Text Text Text Text 
      Text Text Text Text Text 
      Text Text Text Text Text 
      Text Text Text Text Text 
      Text Text Text Text Text   
    \end{minipage}}% 
\end{textblock*}

\begin{textblock*}{\Wiii}(75mm,130mm)%
  \setlength\fboxrule{2pt}%
  \noindent\fbox{%
    \begin{minipage}[c][\Hi-2\fboxsep-2\fboxrule]%
      {\linewidth-2\fboxsep-2\fboxrule}%
      \centering\Huge\textbf{\LaTeX}   
    \end{minipage}}% 
\end{textblock*}

\begin{textblock*}{\Wi}(\StartX,\StartY+160mm)%
  \noindent\colorbox[rgb]{0,1,1}{%
    \begin{minipage}[c][\Hi-2\fboxsep][c]{\linewidth-2\fboxsep}%
      \centering\Huge\textbf{FOOBAR}%
    \end{minipage}}% 
\end{textblock*}

\begin{textblock*}{\Wi}(\StartX,\StartY+200mm)%
  \noindent\colorbox[rgb]{1,0,0}{%
    \begin{minipage}[c][\Hi-2\fboxsep][c]{\linewidth-2\fboxsep}%
      \centering\Huge\textbf{BAZ}%
    \end{minipage}}% 
\end{textblock*}

\end{document}