summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/textpos/niepraschk-eso-pic.tex
diff options
context:
space:
mode:
authorNorbert Preining <preining@logic.at>2008-01-17 07:37:48 +0000
committerNorbert Preining <preining@logic.at>2008-01-17 07:37:48 +0000
commitf68c780d6454f39b2b65fd74df409817b7c2fe8b (patch)
tree251ae19c12f7a2cc2da35b008f9559f499ca58d2 /Master/texmf-dist/doc/latex/textpos/niepraschk-eso-pic.tex
parent3ad540de17823d46730b0ded939b821a7ed0918a (diff)
update textpos from ctan
git-svn-id: svn://tug.org/texlive/trunk@6283 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/latex/textpos/niepraschk-eso-pic.tex')
-rw-r--r--Master/texmf-dist/doc/latex/textpos/niepraschk-eso-pic.tex87
1 files changed, 87 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/textpos/niepraschk-eso-pic.tex b/Master/texmf-dist/doc/latex/textpos/niepraschk-eso-pic.tex
new file mode 100644
index 00000000000..10be9ec8af9
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/textpos/niepraschk-eso-pic.tex
@@ -0,0 +1,87 @@
+
+% Rolf Niepraschk, nieprasck@ptb.de, 2002-11-24
+% A funny demo for `textpos' with a backgroundgrid from `eso-pic'.
+\documentclass[a4paper,draft]{article}
+
+%\usepackage[absolute,showboxes]{textpos}
+\usepackage[absolute]{textpos}
+\usepackage[colorgrid,texcoord]{eso-pic}[2002/11/16]
+\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}