summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/textpos/examples/t10.tex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2016-06-09 22:53:55 +0000
committerKarl Berry <karl@freefriends.org>2016-06-09 22:53:55 +0000
commit29b2df230459512a0f73e5769a1cfc16e4125510 (patch)
tree7ace3eb84f9786277a63ea0d04585d170d44d897 /Master/texmf-dist/doc/latex/textpos/examples/t10.tex
parent96152b37515359e17b9cbe19a6186cec57a15eda (diff)
textpos (8jun16)
git-svn-id: svn://tug.org/texlive/trunk@41331 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/latex/textpos/examples/t10.tex')
-rw-r--r--Master/texmf-dist/doc/latex/textpos/examples/t10.tex46
1 files changed, 46 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/textpos/examples/t10.tex b/Master/texmf-dist/doc/latex/textpos/examples/t10.tex
new file mode 100644
index 00000000000..3c8677353d8
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/textpos/examples/t10.tex
@@ -0,0 +1,46 @@
+%%% Testing:interactions between (x,y)-positioning and \TPMargin
+% See https://bitbucket.org/nxg/textpos/issues/3/
+% Thanks to Richard Schreiber for the report and initial test code.
+
+\documentclass{minimal}
+\usepackage[top=0mm,bottom=0mm,left=0mm,right=0mm,a5paper]{geometry}
+\usepackage{color}
+\usepackage[absolute,showboxes]{textpos}
+
+\parindent0mm
+\begin{document}
+
+\textblockrulecolour{magenta}
+\TPGrid[0mm,0mm]{6}{9}%
+\TPMargin{5mm}%
+
+\null\vskip 4cm
+\noindent \hrule width 2\TPHorizModule
+\smallskip
+\hbox to 2\TPHorizModule{$\leftarrow$\hfil two units wide\hfil $\rightarrow$}
+
+\begin{textblock}{2}(0,0)
+ This box is top-left.
+ The top and left margin lines touch the edge of the page.
+\end{textblock}
+
+\begin{textblock}{2}[0,1](0,9)
+ This box should sit at the bottom left.
+ The box should be two units wide, and the text correspondingly narrower.
+ The bottom and left margin lines should touch the edge of the page.
+\end{textblock}
+
+\TPMargin*{5mm}
+\begin{textblock}{2}[1,0](6,0)
+ This box should sit at the top right of the page, and the text
+ should be two units wide. The top and right margin lines should be
+ off the page.
+\end{textblock}
+
+\TPMargin{0mm}%
+\begin{textblock}{2}[1,1](6,9)
+ This box sits at the bottom right edge.
+ The text and box are two units wide.
+ The bottom and right margin lines touch the edge of the page.
+\end{textblock}
+\end{document}