summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/textpos/examples/t1.tex
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2020-09-27 03:01:57 +0000
committerNorbert Preining <norbert@preining.info>2020-09-27 03:01:57 +0000
commitac0ae0fcbd5ee121e6b9134cced71d961e30ed68 (patch)
treec31e710c55632d9c6d0d0b4771e7a28d8c46b3de /macros/latex/contrib/textpos/examples/t1.tex
parent66ebd4914b367eb00a52ce5d5bb51f695101931b (diff)
CTAN sync 202009270301
Diffstat (limited to 'macros/latex/contrib/textpos/examples/t1.tex')
-rw-r--r--macros/latex/contrib/textpos/examples/t1.tex24
1 files changed, 14 insertions, 10 deletions
diff --git a/macros/latex/contrib/textpos/examples/t1.tex b/macros/latex/contrib/textpos/examples/t1.tex
index 8cb8bfc45f..9ec75f092d 100644
--- a/macros/latex/contrib/textpos/examples/t1.tex
+++ b/macros/latex/contrib/textpos/examples/t1.tex
@@ -14,16 +14,7 @@
\begin{document}
-\begin{textblock}{4}(0,0)
- % make a grid on the page
- \lineskip=0pt % abut boxes directly
- \setbox1=\hbox to \TPHorizModule{\hfill \vrule height \TPVertModule}
- \setbox0=\vbox to \TPVertModule{\noindent\copy1\copy1 \copy1 \vss\hrule}
- \copy0
- \copy0
- \copy0
- \copy0
-\end{textblock}
+\TPShowGrid{4}{4}
\begin{textblock}{3}(0,0)
\{3\}(0,0)
@@ -38,6 +29,19 @@
\{3\}[0.5,0.5](3,3)
\end{textblock}
+\begin{textblock}{1}[0,0](4,2)
+[0,0]
+\end{textblock}
+\begin{textblock}{1}[0,1](4,2)
+[0,1]
+\end{textblock}
+\begin{textblock}{1}[1,0](4,2)
+[1,0]
+\end{textblock}
+\begin{textblock}{1}[1,1](4,2)
+\hfill [1,1] % push this to the right of the box
+\end{textblock}
+
\begin{textblock}{2.5}(3,3)
\{2.5\}(3,3)
\end{textblock}