diff options
author | Karl Berry <karl@freefriends.org> | 2006-01-09 00:49:07 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2006-01-09 00:49:07 +0000 |
commit | 007f67a693e4d031fd3d792df8e4d5f43e2cb2e7 (patch) | |
tree | 90d17e00e572ecb1e24764b6f29c80e098b08d29 /Master/texmf-dist/doc/latex/textpos/t/t2.tex | |
parent | 950209b26f70aa87ed07c54f82a95b6f03b7c3a0 (diff) |
doc/latex
git-svn-id: svn://tug.org/texlive/trunk@84 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/latex/textpos/t/t2.tex')
-rw-r--r-- | Master/texmf-dist/doc/latex/textpos/t/t2.tex | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/textpos/t/t2.tex b/Master/texmf-dist/doc/latex/textpos/t/t2.tex new file mode 100644 index 00000000000..be52319c5a4 --- /dev/null +++ b/Master/texmf-dist/doc/latex/textpos/t/t2.tex @@ -0,0 +1,43 @@ +%%% Testing:interaction with calc +\documentclass{article} + +\usepackage[absolute,showboxes]{textpos} +\usepackage{calc,ifthen} + +\setlength\TPHorizModule{1mm} +\setlength\TPVertModule{\TPHorizModule} +\newcounter{MYCOUNT} + +\setlength\parindent{0pt}\pagestyle{empty} + +\begin{document} + +% Set origin to 10mm,10mm +\textblockorigin{56.9055pt-10mm}{0pt+1cm} +% Box at (10mm,10mm) +\begin{textblock*}{25mm*2}(10mm,10mm) +\{25mm*2\}(10mm,10mm) +\end{textblock*} +% Box at (15mm,15mm) +\begin{textblock*}{10mm+14cm}(3\TPHorizModule*5,10\TPVertModule+5mm) +\verb^{10mm+14cm}(3\TPHorizModule*5,10\TPVertModule+5mm)^ +\end{textblock*} + + +\whiledo{\value{MYCOUNT} < 5}% +{ + \textblockorigin{0mm + 20mm * \value{MYCOUNT}}{55mm * \value{MYCOUNT}} + \begin{textblock}{100}(10,10)% + \begin{minipage}[b][50mm][t]{\linewidth} + Text \hfill Text \par \vfill Text \hfill Text\par + \end{minipage} + \end{textblock}% + \stepcounter{MYCOUNT} +} + +\def\tick#1{\vrule height 0pt depth #1pt} +\def\\{\hbox to 1cm{\hfil\tick4\hfil\tick8}} +\vbox{\hrule\hbox{\tick8\\\\\\\\\\\\\\\\\\\\}} + + +\end{document} |