File: t8.tex

package info (click to toggle)
texlive-extra 2016.20170123-5
  • links: PTS
  • area: main
  • in suites: stretch
  • size: 2,578,600 kB
  • ctags: 25,000
  • sloc: perl: 139,711; python: 20,370; makefile: 14,165; sh: 10,734; ansic: 7,723; xml: 4,202; java: 3,567; csh: 1,129; ruby: 938; lisp: 630; awk: 163; tcl: 142; sed: 36; pascal: 25; cpp: 18; haskell: 5
file content (57 lines) | stat: -rw-r--r-- 1,347 bytes parent folder | download | duplicates (10)
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
51
52
53
54
55
56
57
%%% Testing: floats

\documentclass{article}

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

\begin{document}

\listoffigures

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

\begin{figure}
Hello, this is a normal figure
\caption[short normal 1]{\label{normal1}long normal 1}
\end{figure}

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

\tracingcommands=2 \tracingmacros=2
\begin{textblock}{5}(1,6)
  Here is a figure.
  \begin{figure}
  Text
  \caption[short textblock caption]{This is the first textblock figure (with short)}
  \label{figa}
  \end{figure}
\end{textblock}
\tracingcommands=0 \tracingmacros=0

\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 textblock figure (no short)}
  \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
This is another normal figure
\hrule
\caption[short normal 2]{\label{figc}This is the final figure, with short}
\end{figure}

\end{document}