Debian Codegraph @

texmf-dist/doc/latex/dpfloat/dpfloat.tex

raw
1 \documentclass[pagesize=auto]{scrartcl}
2
3 \usepackage{fixltx2e}
4 \usepackage{etex}
5 \usepackage{lmodern}
6 \usepackage[T1]{fontenc}
7 \usepackage{textcomp}
8 \usepackage{microtype}
9 \usepackage{hyperref}
10
11 \newcommand*{\mail}[1]{\href{mailto:#1}{\texttt{#1}}}
12 \newcommand*{\pkg}[1]{\textsf{#1}}
13
14 \areaset{14cm}{22.5cm}
15 \addtokomafont{title}{\rmfamily}
16
17 \title{The \pkg{dpfloat} package}
18 \subtitle{Formatting double-page floats in \LaTeX}
19 \author{Jim Fox, \mail{[email protected]}}
20 \date{2006/10/05}
21
22
23 \begin{document}
24
25 \maketitle
26
27 \noindent
28 You sometimes want to format two, full-page figures or tables to appear
29 side-by-side in an opened book. The first figure must be on the left (even
30 page) and the second figure must appear on the right (odd page).
31
32 \LaTeX\ provides no way to assure that two consecutive figures will come out
33 this way. This double-page float package, \pkg{dpfloat.sty}, allows you to specify
34 that a float must appear on an even page, and thereby allows you to format a
35 double-page figure.
36
37 \bigskip
38
39 You format a double-page figure by formatting two consecutive, full-page
40 figures, specifying that the first must appear on a left page. The other
41 will follow on the right page.
42
43 It looks something like this:
44
45 \small
46 \noindent
47 \begin{verbatim}
48 \documentclass{...}
49
50 \usepackage{dpfloat}
51
52 \begin{document}
53
54 ...
55
56 % a double-page figure
57
58 \begin{figure}[p]% will be the left-side figure
59 \begin{leftfullpage}
60 This is the left side figure
61 \end{leftfullpage}
62 \end{figure}
63 \begin{figure}[p]% will be the right-side figure
64 \begin{fullpage}
65 This is the right side figure
66 \end{fullpage}
67 \end{figure}
68
69 % end of the figure
70
71 ...
72
73 \end{document}
74 \end{verbatim}
75
76 \end{document}