summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/textpos/examples
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2022-07-24 03:01:20 +0000
committerNorbert Preining <norbert@preining.info>2022-07-24 03:01:20 +0000
commit0f0d64a55eba3def343d043b6d6c60158e6362c1 (patch)
treeaf65bc1098aa67745651270c2c2f36a699058c9e /macros/latex/contrib/textpos/examples
parentfcd380d0a9f42e14bfc55d8ea92e93fe0b7b48b9 (diff)
CTAN sync 202207240301
Diffstat (limited to 'macros/latex/contrib/textpos/examples')
-rw-r--r--macros/latex/contrib/textpos/examples/README.examples8
-rw-r--r--macros/latex/contrib/textpos/examples/t3.tex1
-rw-r--r--macros/latex/contrib/textpos/examples/t7.tex1
-rw-r--r--macros/latex/contrib/textpos/examples/t9.tex16
4 files changed, 21 insertions, 5 deletions
diff --git a/macros/latex/contrib/textpos/examples/README.examples b/macros/latex/contrib/textpos/examples/README.examples
index 16b23fb697..a08234e645 100644
--- a/macros/latex/contrib/textpos/examples/README.examples
+++ b/macros/latex/contrib/textpos/examples/README.examples
@@ -2,10 +2,12 @@ The t?.tex files in this directory are intended as regression tests,
rather than strictly as examples. They nonetheless serve to illustrate
some of what textpos can do.
-Not all of them actually work, as regression tests, right now, but
-this is because when comparing binary formats such as .dvi files,
+The later test files explain within the file what they are supposed to
+look like. The t*-correct.pdf are visually correct versions.
+
+These don't really work as regression tests right now.
+This is because when comparing binary formats such as .dvi files,
it's not always completely obvious what counts as a significant
change. Any comments and suggestions would be welcome.
Norman
-2006 September 2
diff --git a/macros/latex/contrib/textpos/examples/t3.tex b/macros/latex/contrib/textpos/examples/t3.tex
index 1768033b74..3ce54e2e39 100644
--- a/macros/latex/contrib/textpos/examples/t3.tex
+++ b/macros/latex/contrib/textpos/examples/t3.tex
@@ -1,3 +1,4 @@
+%%% Testing:interaction with fancybox
%From Wybo@Servalys.Nl Fri Jun 28 14:28:41 2002
%From: Wybo Dekker <Wybo@Servalys.Nl>
%To: Norman@Astro.Gla.Ac.Uk
diff --git a/macros/latex/contrib/textpos/examples/t7.tex b/macros/latex/contrib/textpos/examples/t7.tex
index 6deceeff77..b6f89056d6 100644
--- a/macros/latex/contrib/textpos/examples/t7.tex
+++ b/macros/latex/contrib/textpos/examples/t7.tex
@@ -1,3 +1,4 @@
+%%% Testing:interaction with \newpage
\documentclass{article}
%\usepackage[showboxes]{textpos}
diff --git a/macros/latex/contrib/textpos/examples/t9.tex b/macros/latex/contrib/textpos/examples/t9.tex
index b86cf38892..fec9ccbce7 100644
--- a/macros/latex/contrib/textpos/examples/t9.tex
+++ b/macros/latex/contrib/textpos/examples/t9.tex
@@ -7,6 +7,8 @@
\TPHorizModule=1cm
\TPVertModule=1cm
+\usepackage{color}
+
\begin{document}
Here is some text, which appears in the body of the page.
@@ -57,11 +59,21 @@ This text should appear surrounded by a box, level with, but along from, `Text 2
\end{textblock}
\newpage
-\TPoptions{absolute=true}
+\TPoptions{absolute=true,overlay=true} % the overlay option is ignored
+
+Page 3. Page 3. Page 3. Page 3. Page 3. Page 3. Page 3. Page 3.
+Page 3. Page 3. Page 3. Page 3. Page 3. Page 3. Page 3. Page 3.
-Page 3.
\begin{textblock}{5}(0,0)
This text appears at the extreme top-left of page three.
\end{textblock}
+\textblockcolour{yellow}
+\begin{textblock}{5}(4,4.5)
+ This text appears at (4,5). It appears \emph{below} the text: that
+ is, the \texttt{overlay=true} option is currently ignored (this
+ might potentially change in future, but I've no current plans to
+ implement that).
+\end{textblock}
+
\end{document}