| 1 |
\documentclass[twocolumn]{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 |
\Blindtext |
| 22 |
|
| 23 |
\section{File \texttt{\jobname}} |
| 24 |
|
| 25 |
With the optional argument \Lkeyword{wide} the width of the defined \Ldim{marginparwidth} is |
| 26 |
added to the allowed horizontal width of the float. |
| 27 |
|
| 28 |
The code for figure \ref{fig:70}: |
| 29 |
\begin{lstlisting} |
| 30 |
\hvFloat[wide,nonFloat, |
| 31 |
capPos=right, |
| 32 |
capVPos=top, |
| 33 |
objectPos=left, |
| 34 |
]{figure}{\includegraphics[width=0.75\linewidth]{images/CTAN}}{% |
| 35 |
Caption at top right beside the float and object position left and |
| 36 |
the option \texttt{wide}.}{fig:70} |
| 37 |
\end{lstlisting} |
| 38 |
|
| 39 |
\hvFloat[% |
| 40 |
wide,nonFloat, |
| 41 |
capPos=right,% |
| 42 |
capVPos=top,% |
| 43 |
objectPos=left,% |
| 44 |
]{figure}{\includegraphics[width=0.75\linewidth]{images/CTAN}}{% |
| 45 |
Caption at top right beside the float and object position left and |
| 46 |
the option \texttt{wide}.}{fig:70} |
| 47 |
|
| 48 |
%\blindtext |
| 49 |
|
| 50 |
|
| 51 |
The code for figure \ref{fig:80}: |
| 52 |
\begin{lstlisting} |
| 53 |
\hvFloat[wide,nonFloat, |
| 54 |
capPos=left, |
| 55 |
capVPos=top, |
| 56 |
objectPos=right, |
| 57 |
]{figure}{\includegraphics[width=0.75\linewidth]{images/CTAN}}% |
| 58 |
{Caption at top left beside the object and object position left and |
| 59 |
the option \texttt{wide}.}{fig:80} |
| 60 |
\end{lstlisting} |
| 61 |
|
| 62 |
|
| 63 |
\newpage |
| 64 |
|
| 65 |
\hvFloat[wide,nonFloat, |
| 66 |
capPos=right,% |
| 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 |
\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 |
\blindtext |
| 97 |
|
| 98 |
|
| 99 |
|
| 100 |
\begin{lstlisting} |
| 101 |
\hvFloat[wide,nonFloat, |
| 102 |
capPos=inner, |
| 103 |
capVPos=top, |
| 104 |
]{figure}{\includegraphics[width=0.75\linewidth]{images/CTAN}}{% |
| 105 |
Caption at top inner beside the float and object position right and |
| 106 |
the option \texttt{wide}.}{fig:811} |
| 107 |
\end{lstlisting} |
| 108 |
|
| 109 |
|
| 110 |
\hvFloat[wide,nonFloat, |
| 111 |
capPos=inner, |
| 112 |
capVPos=top, |
| 113 |
]{figure}{\includegraphics[width=0.75\linewidth]{images/CTAN}}{% |
| 114 |
Caption at top inner beside the float and object position right and |
| 115 |
the option \texttt{wide}.}{fig:811} |
| 116 |
|
| 117 |
The caption can be typeset completely into the margin with: |
| 118 |
|
| 119 |
\begin{lstlisting} |
| 120 |
\captionsetup{justification=RaggedRight} |
| 121 |
\hvFloat[wide,nonFloat, |
| 122 |
capPos=outer, |
| 123 |
capVPos=top, |
| 124 |
floatCapSep=\marginparsep, |
| 125 |
]{figure}{\includegraphics[width=\linewidth]{images/CTAN}}{% |
| 126 |
Caption at top inner beside the float and object position right and |
| 127 |
the option \texttt{wide}.}{fig:812} |
| 128 |
\end{lstlisting} |
| 129 |
|
| 130 |
%\Float[capPos=outer] |
| 131 |
|
| 132 |
\begingroup |
| 133 |
\captionsetup{justification=RaggedRight} |
| 134 |
\hvFloat[wide,nonFloat, |
| 135 |
capPos=outer, |
| 136 |
capVPos=top, |
| 137 |
floatCapSep=\marginparsep, |
| 138 |
]{figure}{\includegraphics[width=\linewidth]{images/CTAN}}{% |
| 139 |
Caption at top inner beside the float and object position right and |
| 140 |
the option \texttt{wide}.}{fig:812} |
| 141 |
\endgroup |
| 142 |
|
| 143 |
\blindtext |
| 144 |
\blindtext |
| 145 |
|
| 146 |
\hvFloat[wide,nonFloat, |
| 147 |
capPos=outer, |
| 148 |
capVPos=top, |
| 149 |
floatCapSep=\marginparsep, |
| 150 |
]{figure}{\includegraphics[width=\linewidth]{images/CTAN}}{% |
| 151 |
Caption at top inner beside the float and object position right and |
| 152 |
the option \texttt{wide}.}{fig:813} |
| 153 |
|
| 154 |
|
| 155 |
|
| 156 |
|
| 157 |
|
| 158 |
\Blindtext |
| 159 |
|
| 160 |
\end{document} |
| 161 |
|