summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/textpos/examples/t8.tex
blob: c86083410a9504423e3e127cfcd4510de999628b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
%%% Testing: floats

\documentclass{article}

\usepackage[showboxes]{textpos}
\setlength{\parindent}{0pt}

\begin{document}

\listoffigures

Here is some text.
\marginpar{\dots with a marginal note}

\begin{textblock}{5}(0,5)
In this document we have figures~\ref{figa} and~\ref{figb}.
\end{textblock}

\begin{textblock}{5}(1,6)
  Here is a figure.
  \begin{figure}
  Text
  \caption[this is figure 1]{This is the first figure}
  \label{figa}
  \end{figure}
\end{textblock}

\begin{textblock}{5}(2,7)
  Here is another figure.%error: \marginpar{\dots and a marginpar in block}
  % perhaps the following ought to be OK
  %\begin{minipage}{4cm} Hello minipage\marginpar{ping!}\end{minipage}
  \begin{figure}
  More text
  \caption{\label{figb}This is the second figure}
  \end{figure}
\end{textblock}

\begin{textblock}{5}(3,8)
  We can still refer to figures~\ref{figb} and~\ref{figa}.
\end{textblock}

Here is text, just before the outer figure.
\begin{figure}
\hrule
Figure Text
\hrule
\caption[final figure]{\label{figc}This is the final figure}
\end{figure}

\end{document}