| 1 |
%%% Testing: floats |
| 2 |
|
| 3 |
\documentclass{article} |
| 4 |
|
| 5 |
\usepackage[showboxes]{textpos} |
| 6 |
\setlength{\parindent}{0pt} |
| 7 |
|
| 8 |
\begin{document} |
| 9 |
|
| 10 |
\listoffigures |
| 11 |
|
| 12 |
Here is some text. |
| 13 |
\marginpar{\dots with a marginal note} |
| 14 |
|
| 15 |
\begin{figure} |
| 16 |
Hello, this is a normal figure |
| 17 |
\caption[short normal 1]{\label{normal1}long normal 1} |
| 18 |
\end{figure} |
| 19 |
|
| 20 |
\begin{textblock}{5}(0,5) |
| 21 |
In this document we have figures~\ref{figa} and~\ref{figb}. |
| 22 |
\end{textblock} |
| 23 |
|
| 24 |
\tracingcommands=2 \tracingmacros=2 |
| 25 |
\begin{textblock}{5}(1,6) |
| 26 |
Here is a figure. |
| 27 |
\begin{figure} |
| 28 |
Text |
| 29 |
\caption[short textblock caption]{This is the first textblock figure (with short)} |
| 30 |
\label{figa} |
| 31 |
\end{figure} |
| 32 |
\end{textblock} |
| 33 |
\tracingcommands=0 \tracingmacros=0 |
| 34 |
|
| 35 |
\begin{textblock}{5}(2,7) |
| 36 |
Here is another figure.%error: \marginpar{\dots and a marginpar in block} |
| 37 |
% perhaps the following ought to be OK |
| 38 |
%\begin{minipage}{4cm} Hello minipage\marginpar{ping!}\end{minipage} |
| 39 |
\begin{figure} |
| 40 |
More text |
| 41 |
\caption{\label{figb}This is the second textblock figure (no short)} |
| 42 |
\end{figure} |
| 43 |
\end{textblock} |
| 44 |
|
| 45 |
\begin{textblock}{5}(3,8) |
| 46 |
We can still refer to figures~\ref{figb} and~\ref{figa}. |
| 47 |
\end{textblock} |
| 48 |
|
| 49 |
Here is text, just before the outer figure. |
| 50 |
\begin{figure} |
| 51 |
\hrule |
| 52 |
This is another normal figure |
| 53 |
\hrule |
| 54 |
\caption[short normal 2]{\label{figc}This is the final figure, with short} |
| 55 |
\end{figure} |
| 56 |
|
| 57 |
\end{document} |