Debian Codegraph @

texmf-dist/doc/latex/hvfloat/wide1s2c.tex

raw
1 \documentclass[twocolumn,DIV=12]{scrartcl}
2 %% $Id: sub-right2s2c.tex 72 2021-05-02 11:40:10Z herbert $
3
4 \input{preamble.ltx}
5 \usepackage{ragged2e}
6 \usepackage{showframe}
7 \setlength\columnseprule{0.4pt}
8
9 \usepackage{marginnote}
10 \let\Lkeyword\texttt
11 \let\Lkeyset\texttt
12 \def\Ldim#1{\texttt{\textbackslash#1}}
13
14 \begin{document}
15 \title{Example for fullpage floats}
16 \author{Herbert Voß}
17 \maketitle
18
19 \tableofcontents
20
21 \textcolor{black!40}{\blindtext}
22
23 \textcolor{black!40}{\blindtext}
24
25 \section{File \texttt{\jobname}}
26
27 With the optional argument \Lkeyword{wide} the width of the defined \Ldim{marginparwidth} is
28 added to the allowed horizontal width of the float.
29
30 The code for figure \ref{fig:70}:
31 \begin{lstlisting}
32 \hvFloat[wide,nonFloat,
33 capPos=right,
34 capVPos=top,
35 objectPos=left,
36 ]{figure}{\includegraphics[width=0.75\linewidth]{images/CTAN}}{%
37 Caption at top right beside the float and object position left and
38 the option \texttt{wide}.}{fig:70}
39 \end{lstlisting}
40
41 \hvFloat[%
42 wide,nonFloat,
43 capPos=right,%
44 capVPos=top,%
45 objectPos=left,%
46 ]{figure}{\includegraphics[width=0.75\linewidth]{images/CTAN}}{%
47 Caption at top right beside the float and object position left and
48 the option \texttt{wide}.}{fig:70}
49
50 \textcolor{black!40}{\blindtext\blindtext}
51
52
53 The code for figure \ref{fig:80}:
54 \begin{lstlisting}
55 \hvFloat[wide,nonFloat,
56 capPos=left,
57 capVPos=top,
58 objectPos=right,
59 ]{figure}{\includegraphics[width=0.75\linewidth]{images/CTAN}}%
60 {Caption at top left beside the object and object position left and
61 the option \texttt{wide}.}{fig:80}
62 \end{lstlisting}
63
64
65 \hvFloat[wide,nonFloat,
66 capPos=left,%
67 capVPos=top,%
68 ]{figure}{\includegraphics[width=0.75\linewidth]{images/CTAN}}%
69 {Caption at top left beside the object and object position left and
70 the option \texttt{wide}.}{fig:80}
71
72
73 For a twosided document it will place the object always in the margin.
74
75 \textcolor{black!40}{\blindtext}
76
77 \begin{lstlisting}
78 \hvFloat[wide,nonFloat,
79 capPos=inner,
80 capVPos=top,
81 ]{figure}{\includegraphics[width=0.75\linewidth]{images/CTAN}}{%
82 Caption at top and inner beside the float and object position right and
83 the option \texttt{wide}.}{fig:81}
84 \end{lstlisting}
85
86 \hvFloat[wide,nonFloat,
87 capPos=inner,
88 capVPos=top,
89 ]{figure}{\includegraphics[width=0.75\linewidth]{images/CTAN}}{%
90 Caption at top and inner beside the float and object position right and
91 the option \texttt{wide}.}{fig:81}
92
93 Now we set the same image with the same setting on the next page. The caption will
94 change its side due to the setting \Lkeyset{capPos=outer}.
95
96
97 \textcolor{black!40}{\blindtext}
98
99
100
101 \begin{lstlisting}
102 \hvFloat[wide,nonFloat,
103 capPos=inner,
104 capVPos=top,
105 ]{figure}{\includegraphics[width=0.75\linewidth]{images/CTAN}}{%
106 Caption at top inner beside the float and object position right and
107 the option \texttt{wide}.}{fig:811}
108 \end{lstlisting}
109
110
111 \hvFloat[wide,nonFloat,
112 capPos=inner,
113 capVPos=top,
114 ]{figure}{\includegraphics[width=0.75\linewidth]{images/CTAN}}{%
115 Caption at top inner beside the float and object position right and
116 the option \texttt{wide}.}{fig:811}
117
118 The caption can be typeset completely into the margin with:
119
120 \textcolor{black!40}{\blindtext}
121
122
123 \begin{lstlisting}
124 \captionsetup{justification=RaggedRight}
125 \hvFloat[wide,nonFloat,
126 capPos=outer,
127 capVPos=top,
128 floatCapSep=\marginparsep,
129 ]{figure}{\includegraphics[width=\linewidth]{images/CTAN}}{%
130 Caption at top inner beside the float and object position right and
131 the option \texttt{wide}.}{fig:812}
132 \end{lstlisting}
133
134 \textcolor{black!40}{\blindtext}
135
136 \begingroup
137 \captionsetup{justification=RaggedRight}
138 \hvFloat[wide,nonFloat,
139 capPos=outer,
140 capVPos=top,
141 floatCapSep=\marginparsep,
142 ]{figure}{\includegraphics[width=\linewidth]{images/CTAN}}{%
143 Caption at top inner beside the float and object position right and
144 the option \texttt{wide}.}{fig:812}
145 \endgroup
146
147 \textcolor{black!40}{\blindtext}
148
149 \hvFloat[wide,nonFloat,
150 capPos=outer,
151 capVPos=top,
152 floatCapSep=\marginparsep,
153 ]{figure}{\includegraphics[width=\linewidth]{images/CTAN}}{%
154 Caption at top inner beside the float and object position right and
155 the option \texttt{wide}.}{fig:813}
156
157
158
159
160
161 \textcolor{black!40}{\Blindtext}
162
163 \end{document}
164