| 1 |
%fr-sample - sample body |
| 2 |
\newif\ifqq\widowpenalty10000 |
| 3 |
\makeatletter |
| 4 |
\newcommand\ifTwocolumn{\if@twocolumn} |
| 5 |
\newcommand\Resizebox[5]{\setbox0\hbox{\setlength\unitlength{#1/#3}% |
| 6 |
\ifx\pspicture\undefined\else\psset{unit=\unitlength}\fi{#5}}% |
| 7 |
\@tempdima\ht0\advance\@tempdima\dp0% |
| 8 |
\ifdim\@tempdima>#2\setlength\unitlength{#2/#4}\ifx\pspicture\undefined\else\psset{unit=\unitlength}\fi |
| 9 |
{#5}\else\box0\fi} |
| 10 |
\makeatother |
| 11 |
|
| 12 |
\newfloatcommand{ttextbox}{textbox} |
| 13 |
\newfloatcommand{tcapside}{textbox}[\capbeside] |
| 14 |
\providecommand*{\Lopt}[1]{\textsf{#1}} |
| 15 |
\providecommand*{\file}[1]{\texttt{#1}} |
| 16 |
\providecommand*{\pkg}[1]{\texttt{#1}} |
| 17 |
\providecommand*{\env}[1]{\texttt{#1}} |
| 18 |
\providecommand*{\com}[1]{\texttt{\char`\\#1}} |
| 19 |
\providecommand*{\meta}[1]{$\langle$\textit{#1}$\rangle$} |
| 20 |
|
| 21 |
\def\text{{\mdseries And more text and some more text and a bit more text and |
| 22 |
a little more text and a little piece of text to fill space}} |
| 23 |
|
| 24 |
\def\Text{{\mdseries \text. \text. \text. \text. }} |
| 25 |
|
| 26 |
\unitlength1.44pt |
| 27 |
\ifx\pspicture\undefined\else\psset{unit=\unitlength}\fi |
| 28 |
|
| 29 |
\newcommand\TEXTBOX[1][]{% |
| 30 |
Here goes first line of text \text\par |
| 31 |
There goes second line of text#1\par |
| 32 |
Thence goes third line of text \text\par |
| 33 |
Hence goes fourth line of text} |
| 34 |
|
| 35 |
\bfseries |
| 36 |
\clearpage |
| 37 |
|
| 38 |
Example of plain \env{figure} environment (figure~\ref{float:plain:fig}). |
| 39 |
|
| 40 |
\begin{figure} |
| 41 |
{\unitlength.85\unitlength\ifx\pspicture\undefined\else\psset{unit=\unitlength}\fi |
| 42 |
\input{BlackCat.picture}}% |
| 43 |
\caption{Plain figure. \text }% |
| 44 |
\footnote{Simple footnote} |
| 45 |
\label{float:plain:fig}% |
| 46 |
\end{figure} |
| 47 |
|
| 48 |
\Text |
| 49 |
|
| 50 |
\clearpage |
| 51 |
Example of plain \env{textbox} environment (text~\ref{float:plain:text}). |
| 52 |
|
| 53 |
\begin{textbox} |
| 54 |
\TEXTBOX |
| 55 |
\caption{Plain textbox. \text }% |
| 56 |
\label{float:plain:text}% |
| 57 |
\end{textbox} |
| 58 |
|
| 59 |
\Text |
| 60 |
|
| 61 |
\clearpage |
| 62 |
|
| 63 |
Example of plain \env{figure} environment with beside caption (figure~\ref{float:side:fig}). |
| 64 |
\begin{verbatim} |
| 65 |
\thisfloatsetup{capposition=beside} |
| 66 |
\end{verbatim} |
| 67 |
|
| 68 |
\thisfloatsetup{capposition=beside} |
| 69 |
|
| 70 |
\begin{figure} |
| 71 |
{\unitlength.85\unitlength\ifx\pspicture\undefined\else\psset{unit=\unitlength}\fi |
| 72 |
\input{BlackCat.picture}}% |
| 73 |
\caption{Plain figure with side caption. \text \protect\mpfootnotemark[1]}% |
| 74 |
\footnotetext[1]{Simple footnote} |
| 75 |
\label{float:side:fig}% |
| 76 |
\end{figure} |
| 77 |
|
| 78 |
\Text |
| 79 |
|
| 80 |
\clearpage |
| 81 |
|
| 82 |
Example of plain \env{figure} environment (figure~\ref{float:W:plain:fig}) |
| 83 |
with predefined width. |
| 84 |
\begin{verbatim} |
| 85 |
\thisfloatsetup{floatwidth=7cm} |
| 86 |
\end{verbatim} |
| 87 |
|
| 88 |
\thisfloatsetup{floatwidth=7cm}%floatrow |
| 89 |
\begin{figure} |
| 90 |
{\unitlength.85\unitlength\ifx\pspicture\undefined\else\psset{unit=\unitlength}\fi |
| 91 |
\input{BlackCat.picture}}% |
| 92 |
\caption{Plain figure with changed width. \text \protect\mpfootnotemark[1]}% |
| 93 |
\footnotetext[1]{\emph{Current} float has width${{}=7}$\,cm.} |
| 94 |
\label{float:W:plain:fig}% |
| 95 |
\end{figure}% |
| 96 |
|
| 97 |
\Text |
| 98 |
|
| 99 |
\clearpage |
| 100 |
Example of plain \env{textbox} environment (box~\ref{float:w:plain:Text}) |
| 101 |
with predefined width inside group. |
| 102 |
\begin{verbatim} |
| 103 |
\begingroup |
| 104 |
\floatsetup{floatwidth=.7\hsize} |
| 105 |
... |
| 106 |
\endgroup |
| 107 |
\end{verbatim} |
| 108 |
|
| 109 |
|
| 110 |
\begingroup |
| 111 |
\floatsetup{floatwidth=.7\hsize} |
| 112 |
\begin{textbox} |
| 113 |
\caption{Plain text box with predefined width. \text}\label{float:w:plain:Text} |
| 114 |
\TEXTBOX |
| 115 |
\end{textbox} |
| 116 |
|
| 117 |
\Text |
| 118 |
\endgroup |
| 119 |
|
| 120 |
\clearpage |
| 121 |
|
| 122 |
Example of figure placed in \verb|\ffigbox| (\verb|\floatbox| stuff); |
| 123 |
the width of float box equals to the width of graphics |
| 124 |
(see figure~\ref{floatbox:FB:fig}): |
| 125 |
\begin{verbatim} |
| 126 |
\begin{figure} |
| 127 |
\ffigbox[\FBwidth] |
| 128 |
... |
| 129 |
\end{figure} |
| 130 |
\end{verbatim} |
| 131 |
|
| 132 |
\begin{figure} |
| 133 |
\ffigbox[\FBwidth] |
| 134 |
{\unitlength1.5\unitlength\ifx\pspicture\undefined\else\psset{unit=\unitlength}\fi |
| 135 |
\input{TheCat.picture}} |
| 136 |
{\caption{% |
| 137 |
Float box (\protect\com{ffigbox}) |
| 138 |
width of graphics. \text }\label{floatbox:FB:fig}} |
| 139 |
\end{figure} |
| 140 |
|
| 141 |
\Text |
| 142 |
|
| 143 |
\iffalse%LoadSubfig |
| 144 |
|
| 145 |
%\clearpage |
| 146 |
%Example of float with beside caption (see text box~\ref{floatbox:subfloat:text}). |
| 147 |
%with two subboxes~\subref{subtext:A} and \subref{subtext:B}. |
| 148 |
%These subfloats are placed inside \env{subfloatrow} environment, left subafloat has width 5\,cm, |
| 149 |
%second---occupies the rest width of row. |
| 150 |
%\begin{verbatim} |
| 151 |
%\floatsetup{subfloatrowsep=qquad} |
| 152 |
%\begin{textbox} |
| 153 |
%\ttextbox |
| 154 |
%{\FRifFBOX\vspace{-\topskip}\fi%for boxed styles |
| 155 |
%\begin{subfloatrow} |
| 156 |
%\subfloat[First ...\label{...}]% |
| 157 |
%{\vbox{\hsize4.5cm...}} |
| 158 |
% |
| 159 |
%\subfloat[Second ...\label{...}]% |
| 160 |
%{\vbox{\hsize\Xhsize...}} |
| 161 |
%\end{subfloatrow}} |
| 162 |
%{\caption{The ...}\label{...}} |
| 163 |
%\end{textbox} |
| 164 |
%\end{verbatim} |
| 165 |
% |
| 166 |
%Since the \verb|\subfloat| macro uses \verb|\vtop| during subfloat building, for |
| 167 |
%float styles which use boxes you may ought to put before \env{subfloatrow} |
| 168 |
%environment the compensated space like this: |
| 169 |
%\begin{verbatim} |
| 170 |
%\vspace{-\topskip} |
| 171 |
%\end{verbatim} |
| 172 |
% |
| 173 |
%\begin{textbox}[!t] |
| 174 |
%\ttextbox |
| 175 |
%{\FRifFBOX\vspace{-\topskip}\fi%for boxed styles |
| 176 |
%\begin{subfloatrow} |
| 177 |
%\subfloat[First text box\label{subtext:A}]% |
| 178 |
%{\vbox{\hsize4.5cm\TEXTBOX}} |
| 179 |
% |
| 180 |
%\subfloat[Second text box with long long text\label{subtext:B}]% |
| 181 |
%{\vbox{\hsize\Xhsize\TEXTBOX}}% |
| 182 |
%\end{subfloatrow}} |
| 183 |
%{\caption{The \env{textbox} environment with subfloats. \text}% |
| 184 |
%\label{floatbox:subfloat:text}} |
| 185 |
%\end{textbox} |
| 186 |
% |
| 187 |
%\text. |
| 188 |
|
| 189 |
\fi |
| 190 |
|
| 191 |
\ifTwocolumn\else |
| 192 |
|
| 193 |
\clearpage |
| 194 |
|
| 195 |
\ifLoadSubfig |
| 196 |
|
| 197 |
Example of figure in \verb|\fcapside| with beside caption (see figure~\ref{floatbox:beside:fig}) |
| 198 |
with two subfigures~\subref{subfig:A} and \subref{subfig:B}. The object has the width of included graphics; |
| 199 |
caption occupies the rest of width. |
| 200 |
\begin{verbatim} |
| 201 |
\begin{figure} |
| 202 |
\fcapside[\FBwidth] |
| 203 |
... |
| 204 |
\end{figure} |
| 205 |
\end{verbatim} |
| 206 |
Here was also used \env{subfloatrow} environment: |
| 207 |
\begin{verbatim} |
| 208 |
\begin{figure} |
| 209 |
\fcapside[\FBwidth] |
| 210 |
{\begin{subfloatrow} |
| 211 |
\subfloat[...]{...} |
| 212 |
|
| 213 |
\subfloat[...]{...} |
| 214 |
\end{subfloatrow}} |
| 215 |
{\caption{...}\label{...}} |
| 216 |
\end{figure} |
| 217 |
\end{verbatim} |
| 218 |
|
| 219 |
\begin{figure} |
| 220 |
\fcapside[\FBwidth] {\begin{subfloatrow} \subfloat[The simple |
| 221 |
PostScript file\label{subfig:A}]{\includegraphics{pslearn}} |
| 222 |
|
| 223 |
\subfloat[Black dog\label{subfig:B}]{\input{Blackdog.picture}} |
| 224 |
\end{subfloatrow}} |
| 225 |
{\caption{Beside caption (in \protect\com{fcapside}) width of object box equals to width of |
| 226 |
graphics. \text}% |
| 227 |
\label{floatbox:beside:fig}} |
| 228 |
\end{figure} |
| 229 |
|
| 230 |
\Text |
| 231 |
|
| 232 |
\fi |
| 233 |
|
| 234 |
\clearpage |
| 235 |
Example of text box in \verb|\tcapside| command (see box~\ref{floatbox:subfloat:text}) with beside caption. |
| 236 |
\begin{verbatim} |
| 237 |
\begin{textbox} |
| 238 |
\tcapside[1.25\hsize] |
| 239 |
... |
| 240 |
\end{textbox} |
| 241 |
\end{verbatim} |
| 242 |
text box contents occupy 1.25``column'' width. |
| 243 |
|
| 244 |
\begin{textbox} |
| 245 |
\tcapside[1.25\hsize] |
| 246 |
{\TEXTBOX} |
| 247 |
{\caption{Beside caption (in \protect\com{tcapside}). The width of object equals |
| 248 |
to 1.25``column'' width. \text}% |
| 249 |
\label{floatbox:beside:text}} |
| 250 |
\end{textbox} |
| 251 |
|
| 252 |
|
| 253 |
\Text |
| 254 |
|
| 255 |
\clearpage |
| 256 |
Example of figure in \verb|\fcapside| with beside caption (see figure~\ref{floatbox:beside:figI}). |
| 257 |
The object box has width of object contents. |
| 258 |
\begin{figure} |
| 259 |
\fcapside[\FBwidth] |
| 260 |
{\includegraphics{pslearn}} |
| 261 |
{\caption{Beside caption (in \protect\com{fcapside}) with of object equals to width of |
| 262 |
graphics. \text}% |
| 263 |
\label{floatbox:beside:figI}} |
| 264 |
\end{figure} |
| 265 |
|
| 266 |
\Text |
| 267 |
|
| 268 |
\clearpage |
| 269 |
Example of plain text box (see box~\ref{floatbox:subfloat:text}). |
| 270 |
\begin{verbatim} |
| 271 |
\thisfloatsetup{capposition=beside} |
| 272 |
\end{verbatim} |
| 273 |
\thisfloatsetup{capposition=beside} |
| 274 |
\begin{textbox} |
| 275 |
{\TEXTBOX} |
| 276 |
{\caption{Beside plain caption. \text}% |
| 277 |
\label{floatbox:beside:text}} |
| 278 |
\end{textbox} |
| 279 |
|
| 280 |
|
| 281 |
\Text |
| 282 |
|
| 283 |
\clearpage |
| 284 |
Example of plain figure with beside caption (see figure~\ref{floatbox:beside:figI}). |
| 285 |
Both caption and object boxes have 1``column'' width. |
| 286 |
\begin{verbatim} |
| 287 |
\thisfloatsetup{capposition=beside} |
| 288 |
\end{verbatim} |
| 289 |
\thisfloatsetup{capposition=beside} |
| 290 |
\begin{figure} |
| 291 |
{\includegraphics[scale=1.44]{pslearn}} |
| 292 |
{\caption{Beside plain caption with of object equals to width of |
| 293 |
graphics. \text}% |
| 294 |
\label{floatbox:beside:figI}} |
| 295 |
\end{figure} |
| 296 |
|
| 297 |
\Text |
| 298 |
|
| 299 |
\fi |
| 300 |
|
| 301 |
\ifWideLayout |
| 302 |
\clearpage |
| 303 |
Example of two-column or wide plain figure (see figure~\ref{float:wide:fig}). |
| 304 |
|
| 305 |
\begin{figure*} |
| 306 |
{\unitlength.85\unitlength\ifx\pspicture\undefined\else\psset{unit=\unitlength}\fi |
| 307 |
\input{BlackCat.picture}}% |
| 308 |
\caption{% |
| 309 |
Plain wide figure. \text }% |
| 310 |
\label{float:wide:fig}% |
| 311 |
\end{figure*} |
| 312 |
|
| 313 |
\Text |
| 314 |
|
| 315 |
\clearpage |
| 316 |
Example of plain two-column or wide \env{textbox} environment |
| 317 |
(see text~\ref{float:wide:text}). |
| 318 |
|
| 319 |
\begin{textbox*} |
| 320 |
\TEXTBOX |
| 321 |
\caption{Plain wide textbox. \text }% |
| 322 |
\label{float:wide:text}% |
| 323 |
\end{textbox*} |
| 324 |
|
| 325 |
\Text |
| 326 |
|
| 327 |
\clearpage |
| 328 |
|
| 329 |
Example of plain two-column or wide \env{figure} environment (figure~\ref{wfloat:W:plain:fig}) |
| 330 |
with predefined width. |
| 331 |
\begin{verbatim} |
| 332 |
\thisfloatsetup{floatwidth=5cm} |
| 333 |
\end{verbatim} |
| 334 |
|
| 335 |
\thisfloatsetup{floatwidth=5cm} |
| 336 |
\begin{figure*}[!t] |
| 337 |
{\unitlength.85\unitlength\ifx\pspicture\undefined\else\psset{unit=\unitlength}\fi |
| 338 |
\input{BlackCat.picture}}% |
| 339 |
\caption{Plain figure with changed width. \text }% |
| 340 |
\footnote{\emph{Current} float has width${{}=5}$\,cm.} |
| 341 |
\label{wfloat:W:plain:fig}% |
| 342 |
\end{figure*} |
| 343 |
|
| 344 |
\Text |
| 345 |
|
| 346 |
\fi |
| 347 |
|
| 348 |
\ifLoadSubfig |
| 349 |
|
| 350 |
\clearpage |
| 351 |
Example of two-column or wide figure with beside caption (see figure~\ref{floatbox:wbeside:fig}) |
| 352 |
with two subfigures~\subref{subfig:wA} and \subref{subfig:wB}. |
| 353 |
|
| 354 |
\begin{figure*}[!t] |
| 355 |
\fcapside[\FBwidth] |
| 356 |
{\begin{subfloatrow} |
| 357 |
\subfloat[The simple PostScript file\label{subfig:wA}]{\includegraphics{pslearn}}% |
| 358 |
|
| 359 |
\subfloat[Black dog\label{subfig:wB}]{\input{BlackDog.picture}}% |
| 360 |
\end{subfloatrow}} |
| 361 |
{\caption{Wide beside caption width of object equals to width of |
| 362 |
graphics. \text}% |
| 363 |
\label{floatbox:wbeside:fig}} |
| 364 |
\end{figure*} |
| 365 |
|
| 366 |
\Text |
| 367 |
|
| 368 |
\clearpage Example of two-column or wide plain figure with caption |
| 369 |
beside (see figure~\ref{plain:wbeside:fig}) with two |
| 370 |
subfigures~\subref{subfig:wA} and \subref{subfig:wB} (the with for graphics equal 184pt). |
| 371 |
|
| 372 |
\begingroup |
| 373 |
\thisfloatsetup{capposition=beside,capbesidewidth=sidefil,floatwidth=184pt} |
| 374 |
\begin{figure*}[!t] |
| 375 |
%\fcapside[\FBwidth] |
| 376 |
{\begin{subfloatrow} |
| 377 |
\subfloat[The simple PostScript file\label{subfig:wA}]{\includegraphics{pslearn}}% |
| 378 |
|
| 379 |
\subfloat[Black dog\label{subfig:wB}]{\input{BlackDog.picture}}% |
| 380 |
\end{subfloatrow}} |
| 381 |
{\caption{Wide beside caption width of object equals to width of |
| 382 |
graphics. \text}% |
| 383 |
\label{plain:wbeside:fig}} |
| 384 |
\end{figure*} |
| 385 |
\endgroup |
| 386 |
|
| 387 |
\Text |
| 388 |
|
| 389 |
\fi |
| 390 |
|
| 391 |
\clearpage |
| 392 |
Example of two-column or wide figure with beside caption (see figure~\ref{floatbox:wbeside:figI}). |
| 393 |
|
| 394 |
\begin{figure*}[!t] |
| 395 |
\fcapside[\FBwidth] |
| 396 |
{\includegraphics[scale=1.5]{pslearn}} |
| 397 |
{\caption{Wide beside caption width of object equals to width of |
| 398 |
graphics. \text}% |
| 399 |
\label{floatbox:wbeside:figI}} |
| 400 |
\end{figure*} |
| 401 |
|
| 402 |
\Text |
| 403 |
|
| 404 |
\clearpage |
| 405 |
Example of text box in \verb|\tcapside| with beside caption (see text box~\ref{floatbox:wbeside:text}) |
| 406 |
|
| 407 |
\begin{textbox*} |
| 408 |
\tcapside[1.2\hsize] |
| 409 |
{\TEXTBOX} |
| 410 |
{\caption{Wide beside caption width of object box equals to 1.2``column'' width. \text}% |
| 411 |
\label{floatbox:wbeside:text}} |
| 412 |
\end{textbox*} |
| 413 |
|
| 414 |
\Text |
| 415 |
|
| 416 |
\clearpage |
| 417 |
Example of plain text box with beside caption (see text box~\ref{floatbox:wbeside:text}) |
| 418 |
|
| 419 |
\thisfloatsetup{capposition=beside} |
| 420 |
\begin{textbox*} |
| 421 |
{\TEXTBOX} |
| 422 |
{\caption{Wide beside caption. \text}% |
| 423 |
\label{floatbox:wbeside:text}} |
| 424 |
\end{textbox*} |
| 425 |
|
| 426 |
\Text |
| 427 |
|
| 428 |
\clearpage |
| 429 |
Example of `filled' row of figures |
| 430 |
(figures~\ref{row:full:WcatI}--\ref{row:full:FcatI}). |
| 431 |
There was predefined height for fourth figure in row which equals to |
| 432 |
\verb|\textwidth|. |
| 433 |
|
| 434 |
If you want to get all float row contents with height${}={}$\verb|\textwidth|, you ought to put |
| 435 |
\begin{verbatim} |
| 436 |
\floatsetup{heightadjust=all} |
| 437 |
\end{verbatim} |
| 438 |
just before \env{floatrow} environment. Since heights of boxes are adjusted, |
| 439 |
you may use vertical alignment for object box. |
| 440 |
|
| 441 |
\begin{figure*}[!t] |
| 442 |
\floatsetup{heightadjust=all} |
| 443 |
\begin{floatrow}[4] |
| 444 |
\ffigbox[][][c] |
| 445 |
{{\setlength\unitlength{\hsize/{64}}\ifx\pspicture\undefined\else\psset{unit=\unitlength}\fi |
| 446 |
\input{TheCat.picture}}\footnotetext[1]{The |
| 447 |
picture was created with \pkg{pstricks}' \protect\com{psbezier} macro}} |
| 448 |
{\caption{Beside figure~I in wide float row. Vertically centered\protect\footnotemark[1]}% |
| 449 |
\label{row:full:WcatI}}% |
| 450 |
|
| 451 |
\floatbox{figure}[\FBwidth][][b] |
| 452 |
{\caption{Beside figure~II in wide float row. Flushed to bottom of box}% |
| 453 |
\label{row:full:BcatI}% |
| 454 |
\floatfoot{There are |
| 455 |
just four~\protect\com{psellipse}, |
| 456 |
two \protect\com{psbezier}, two \protect\com{pspolygon} macros used |
| 457 |
in current picture}}% |
| 458 |
{\unitlength.85\unitlength\ifx\pspicture\undefined\else\psset{unit=\unitlength}\fi |
| 459 |
\input{BlackCat.picture}}% |
| 460 |
|
| 461 |
\ffigbox[\Xhsize-2.85cm][][t] |
| 462 |
{{\setlength\unitlength{\hsize/58}\ifx\pspicture\undefined\else\psset{unit=\unitlength}\fi |
| 463 |
\input{Mouse.picture}}% |
| 464 |
\floatfoot{The Mouse-animal image}}% |
| 465 |
{\caption{Beside figure~III in wide float row. Flushed to top of object box}% |
| 466 |
\label{row:full:mouseI}}% |
| 467 |
|
| 468 |
\floatbox{figure}[2.85cm][\textwidth]% |
| 469 |
{\caption{Beside figure~IV in wide float row}\label{row:full:FcatI}}% |
| 470 |
{\Resizebox\hsize\vsize{35}{136}{\input{BlackCat2.picture}}}% |
| 471 |
\end{floatrow}\vspace{-8pt} |
| 472 |
\end{figure*} |
| 473 |
|
| 474 |
\Text |
| 475 |
|
| 476 |
\ifTwocolumn\else |
| 477 |
\clearpage |
| 478 |
Example of `non-filled' row of figures |
| 479 |
(figures~\ref{row:loose:WcatI}--\ref{row:loose:mouseI}). |
| 480 |
If current float style for figures doesn't support height adjustment of boxes, |
| 481 |
there are not any vertical alignment of floats. |
| 482 |
|
| 483 |
\begin{figure} |
| 484 |
|
| 485 |
\begin{floatrow}[3] |
| 486 |
\ffigbox[][][c] |
| 487 |
{{\setlength\unitlength{\hsize/{64}}\ifx\pspicture\undefined\else\psset{unit=\unitlength}\fi |
| 488 |
\input{TheCat.picture}}\footnotetext[1]{The |
| 489 |
picture was created with \pkg{pstricks}' \protect\com{psbezier} macro}} |
| 490 |
{\caption{Beside figure~I in wide float row. Vertically centered\protect\footnotemark[1]}% |
| 491 |
\label{row:loose:WcatI}}% |
| 492 |
|
| 493 |
\floatbox{figure}[\FBwidth][][b] |
| 494 |
{\caption{Beside figure~II, width of graphics, bottom of object box}% |
| 495 |
\label{row:loose:BcatI}% |
| 496 |
\floatfoot{There are |
| 497 |
just four \protect\com{psellipse}, |
| 498 |
two \protect\com{psbezier}, two \protect\com{pspolygon} macros used |
| 499 |
in current picture}}% |
| 500 |
{\unitlength1.098\unitlength\ifx\pspicture\undefined\else\psset{unit=\unitlength}\fi |
| 501 |
\input{BlackCat.picture}}% |
| 502 |
|
| 503 |
\ffigbox[\FBwidth][][t] |
| 504 |
{\footnote{Look at funny footnotemark!}\input{Mouse.picture}% |
| 505 |
% |
| 506 |
\floatfoot{The Mouse-animal image}} |
| 507 |
{\caption{Beside figure~III in wide float row. Flushed to top of object box}% |
| 508 |
\label{row:loose:mouseI}}% |
| 509 |
\end{floatrow} |
| 510 |
\end{figure} |
| 511 |
|
| 512 |
\Text |
| 513 |
|
| 514 |
\fi |
| 515 |
|
| 516 |
\qqtrue |
| 517 |
\clearpage |
| 518 |
Example of `filled' row of text boxes |
| 519 |
(boxes \hbox{\ref{row:text:I}--\ref{row:text:II}}). |
| 520 |
|
| 521 |
\Text |
| 522 |
|
| 523 |
\begin{textbox*}[!t] |
| 524 |
\begin{floatrow} |
| 525 |
\ttextbox |
| 526 |
{\TEXTBOX\footnote{Text of footnote. \text}} |
| 527 |
{\caption{Beside text~I in float row. \text}% |
| 528 |
\label{row:text:I}}% |
| 529 |
|
| 530 |
\floatbox{textbox} |
| 531 |
{\TEXTBOX[. \text.] |
| 532 |
|
| 533 |
\floatfoot{Text of float foot. \text}}% |
| 534 |
{\caption{Beside text~II in float row}% |
| 535 |
\label{row:text:II}}% |
| 536 |
\end{floatrow} |
| 537 |
\end{textbox*} |
| 538 |
|
| 539 |
\ifLoadRotating |
| 540 |
\newlength\rotatedheight\rotatedheight\textwidth |
| 541 |
|
| 542 |
\clearpage |
| 543 |
Example of plain rotated figure (see figure~\ref{rot:fig} on the page~\pageref{rot:fig}). |
| 544 |
|
| 545 |
\begin{sidewaysfigure} |
| 546 |
\emptyfloatpage |
| 547 |
\includegraphics[width=4in]{pslearn} |
| 548 |
%\floatfoot{The \texttt{BOXED} style could get wrong layout}% |
| 549 |
\caption{Plain figure inside |
| 550 |
\protect\env{sidewaysfigure} environment. \text. \text}% |
| 551 |
\label{rot:fig}% |
| 552 |
\end{sidewaysfigure}% |
| 553 |
\Text |
| 554 |
|
| 555 |
\clearpage |
| 556 |
Example of plain wide rotated figure (see figure~\ref{rot:wide:fig} on the page~\pageref{rot:wide:fig}). |
| 557 |
|
| 558 |
\begin{sidewaysfigure*} |
| 559 |
\wideemptyfloatpage |
| 560 |
\includegraphics[width=4in]{pslearn}% |
| 561 |
\caption{Plain wide figure inside |
| 562 |
\protect\env{sidewaysfigure*} environment. \text. \text}% |
| 563 |
\label{rot:wide:fig}% |
| 564 |
\end{sidewaysfigure*}% |
| 565 |
\Text |
| 566 |
|
| 567 |
\clearpage |
| 568 |
|
| 569 |
Example of rotated figure in \verb|\ffigbox| (see figure~\ref{rotbox:figI} on the page~\pageref{rotbox:figI}) |
| 570 |
width of graphics. |
| 571 |
|
| 572 |
\begin{sidewaysfigure} |
| 573 |
\emptyfloatpage |
| 574 |
\ffigbox[\FBwidth] |
| 575 |
{\includegraphics[width=4in]{pslearn}} |
| 576 |
{\caption{Figure in \protect\com{ffigbox} inside |
| 577 |
\protect\env{sidewaysfigure} environment, width of graphics. \text. \text}% |
| 578 |
\label{rotbox:figI}} |
| 579 |
\end{sidewaysfigure} |
| 580 |
|
| 581 |
\Text |
| 582 |
|
| 583 |
\ifWideLayout |
| 584 |
\clearpage |
| 585 |
Example of wide rotated figure in \verb|\ffigbox| (see figure~\ref{rotbox:wide:figI} on the page~\pageref{rotbox:wide:figI}) |
| 586 |
width of graphics. |
| 587 |
|
| 588 |
\begin{sidewaysfigure*} |
| 589 |
\wideemptyfloatpage |
| 590 |
\ffigbox[\FBwidth] |
| 591 |
{\includegraphics[width=7in]{pslearn}} |
| 592 |
{\caption{Wide figure in \protect\com{ffigbox} inside |
| 593 |
\protect\env{sidewaysfigure} environment, width of graphics. \text. \text}% |
| 594 |
\label{rotbox:wide:figI}} |
| 595 |
\end{sidewaysfigure*} |
| 596 |
|
| 597 |
\Text |
| 598 |
|
| 599 |
\fi |
| 600 |
|
| 601 |
\clearpage |
| 602 |
|
| 603 |
Example of rotated \env{figure} with beside caption |
| 604 |
(see figure~\ref{rot:beside:fig} on the page~\pageref{rot:beside:fig}). |
| 605 |
|
| 606 |
\begin{sidewaysfigure} |
| 607 |
\emptyfloatpage |
| 608 |
\fcapside[\FBwidth] |
| 609 |
{\includegraphics[width=5in]{pslearn}} |
| 610 |
{\caption{Rotated beside caption. \text}% |
| 611 |
\label{rot:beside:fig}} |
| 612 |
\end{sidewaysfigure} |
| 613 |
|
| 614 |
\Text |
| 615 |
|
| 616 |
\ifWideLayout |
| 617 |
\clearpage |
| 618 |
Example of wide rotated \env{figure} with beside caption |
| 619 |
(see figure~\ref{rot:wbeside:fig} on the page~\pageref{rot:wbeside:fig}). |
| 620 |
|
| 621 |
\begin{sidewaysfigure*} |
| 622 |
\wideemptyfloatpage |
| 623 |
\fcapside[\FBwidth] |
| 624 |
{\includegraphics[width=5in]{pslearn}} |
| 625 |
{\caption{Wide rotated figure with beside caption. \text}% |
| 626 |
\label{rot:wbeside:fig}} |
| 627 |
\end{sidewaysfigure*} |
| 628 |
|
| 629 |
\Text |
| 630 |
|
| 631 |
\fi |
| 632 |
|
| 633 |
\clearpage |
| 634 |
Example of plain rotated \env{textbox} with beside caption |
| 635 |
(see figure~\ref{rot:beside:text} on the page~\pageref{rot:beside:text}). |
| 636 |
|
| 637 |
\thisfloatsetup{capposition=beside} |
| 638 |
\begin{sidewaystextbox} |
| 639 |
\emptyfloatpage |
| 640 |
{\TEXTBOX[ \text.]} |
| 641 |
{\caption{Beside caption. \text. \text. \text}% |
| 642 |
\label{rot:beside:text}} |
| 643 |
\end{sidewaystextbox} |
| 644 |
|
| 645 |
\Text |
| 646 |
|
| 647 |
\ifWideLayout |
| 648 |
|
| 649 |
\clearpage |
| 650 |
Example of wide rotated \env{textbox} with beside caption |
| 651 |
(see figure~\ref{rot:wbeside:text} on the page~\pageref{rot:wbeside:text}). |
| 652 |
|
| 653 |
\begin{sidewaystextbox*} |
| 654 |
\wideemptyfloatpage |
| 655 |
\tcapside[1.2\hsize] |
| 656 |
{\TEXTBOX[ \text.]} |
| 657 |
{\caption{Beside caption. \text. \text. \text}% |
| 658 |
\label{rot:wbeside:text}} |
| 659 |
\end{sidewaystextbox*} |
| 660 |
|
| 661 |
\Text |
| 662 |
|
| 663 |
\fi |
| 664 |
\clearpage |
| 665 |
|
| 666 |
\newlengthtocommand\setlength\rottextwidth{\textwidth} |
| 667 |
|
| 668 |
Example of `filled' two-column or wide float row |
| 669 |
(figures~\ref{fig:rotrow:WcatI}--\ref{fig:rotrow:FcatI}) |
| 670 |
on the page~\pageref{fig:rotrow:WcatI}. |
| 671 |
There was predefined height for fourth figure in row which equals to \verb|\textwidth|. |
| 672 |
|
| 673 |
If you want to get all float row contents with height${}={}$\verb|\textwidth|, you ought to put |
| 674 |
\begin{verbatim} |
| 675 |
\floatsetup{heightadjust=all} |
| 676 |
\end{verbatim} |
| 677 |
just before \env{floatrow} environment in the case of float style doesn't requires adjustment of float box's |
| 678 |
elements. |
| 679 |
|
| 680 |
\begin{sidewaysfigure*} |
| 681 |
\floatsetup{heightadjust=all} |
| 682 |
\wideemptyfloatpage |
| 683 |
\begin{floatrow}[4] |
| 684 |
\ffigbox[][][c] |
| 685 |
{{\setlength\unitlength{\hsize/{64}}\ifx\pspicture\undefined\else\psset{unit=\unitlength}\fi |
| 686 |
\input{TheCat.picture}}\footnote |
| 687 |
{The picture was created with |
| 688 |
\protect\pkg{pstricks}' \protect\com{psbezier} |
| 689 |
macro}}% |
| 690 |
{\caption{Beside figure~I in wide rotated float row. Vertically centered}% |
| 691 |
\label{fig:rotrow:WcatI}}% |
| 692 |
|
| 693 |
\floatbox{figure}[1.2\FBwidth][][b] |
| 694 |
{\caption{Beside figure~II in wide rotated float row. Flushed to bottom of box}% |
| 695 |
\label{fig:rotrow:BcatI}% |
| 696 |
\floatfoot{There are |
| 697 |
just four \protect\com{psellipse}, |
| 698 |
two \protect\com{psbezier}, two |
| 699 |
\protect\com{pspolygon} macros used |
| 700 |
in current picture}}% |
| 701 |
{\input{BlackCat.picture}}% |
| 702 |
|
| 703 |
\ffigbox[\Xhsize/2][][t] |
| 704 |
{\input{Mouse.picture}% |
| 705 |
\footnote{Look at funny footnotemark!}% |
| 706 |
\floatfoot{The Mouse-animal image} |
| 707 |
}% |
| 708 |
{\caption{Beside figure~III in wide rotated float row. Flushed to top of object box}% |
| 709 |
\label{fig:rotrow:mouseI}}% |
| 710 |
|
| 711 |
\floatbox{figure}[\Xhsize][\rottextwidth] |
| 712 |
{\caption{Beside figure~IV in wide rotated float row. |
| 713 |
When you put height argument in float row you must |
| 714 |
put flag \protect\com{CADJtrue} (and maybe \protect\com{OADJtrue}) |
| 715 |
just before \env{floatrow} to get |
| 716 |
correct height of float box}\label{fig:rotrow:FcatI}}% |
| 717 |
{\Resizebox\hsize\vsize{35}{136}{\input{BlackCat2.picture}}} |
| 718 |
\end{floatrow} |
| 719 |
\end{sidewaysfigure*} |
| 720 |
|
| 721 |
\Text |
| 722 |
\Text |
| 723 |
|
| 724 |
\clearpage |
| 725 |
Example of `non-filled' float row |
| 726 |
(figures~\ref{fig:rotloose:WcatI}--\ref{fig:rotloose:mouseI}) on the page~\pageref{fig:rotloose:WcatI}. |
| 727 |
|
| 728 |
\begin{sidewaysfigure*} |
| 729 |
\wideemptyfloatpage\CADJtrue |
| 730 |
\begin{floatrow}[3] |
| 731 |
\ffigbox[][][c] |
| 732 |
{{\setlength\unitlength{\hsize/{64}}\ifx\pspicture\undefined\else\psset{unit=\unitlength}\fi |
| 733 |
\input{TheCat.picture}}\footnote |
| 734 |
{The picture was created with |
| 735 |
\protect\pkg{pstricks}' \protect\com{psbezier} |
| 736 |
macro}} |
| 737 |
{\caption{Beside figure~I in wide rotated float row. Vertically centered}% |
| 738 |
\label{fig:rotloose:WcatI}}% |
| 739 |
|
| 740 |
\floatbox{figure}[\FBwidth][][b] |
| 741 |
{\caption{Beside figure~II in wide rotated float row. Flushed to bottom of box}% |
| 742 |
\label{fig:rotloose:BcatI}% |
| 743 |
\floatfoot{There are |
| 744 |
just four \protect\com{psellipse}, |
| 745 |
two \protect\com{psbezier}, two |
| 746 |
\protect\com{pspolygon} macros used |
| 747 |
in current picture}% |
| 748 |
}% |
| 749 |
{\unitlength1.098\unitlength\ifx\pspicture\undefined\else\psset{unit=\unitlength}\fi |
| 750 |
\input{BlackCat.picture}}% |
| 751 |
|
| 752 |
\ffigbox[\FBwidth][][t] |
| 753 |
{\input{Mouse.picture}% |
| 754 |
\footnote{Look at funny footnotemark!}% |
| 755 |
\floatfoot{The Mouse-animal image}} |
| 756 |
{\caption{Beside figure~III in wide rotated float row. Flushed to top of object box}% |
| 757 |
\label{fig:rotloose:mouseI}}% |
| 758 |
\end{floatrow} |
| 759 |
\end{sidewaysfigure*} |
| 760 |
|
| 761 |
\Text |
| 762 |
\Text |
| 763 |
|
| 764 |
\Text |
| 765 |
\Text |
| 766 |
|
| 767 |
\clearpage |
| 768 |
Example of float row with textboxes (texts~\ref{row:textI:I}--\ref{row:textI:II} on the page~\pageref{row:textI:II}). |
| 769 |
|
| 770 |
\begin{sidewaystextbox*} |
| 771 |
\wideemptyfloatpage |
| 772 |
\begin{floatrow} |
| 773 |
\ttextbox |
| 774 |
{\TEXTBOX\par\TEXTBOX\footnote |
| 775 |
{Text of footnote. \text}} |
| 776 |
{\caption{Beside text~I. \text}% |
| 777 |
\label{row:textI:I}}% |
| 778 |
|
| 779 |
\floatbox{textbox} |
| 780 |
{\caption{Beside text~II}% |
| 781 |
\label{row:textI:II}% |
| 782 |
\floatfoot{Text of float foot. \text}% |
| 783 |
}% |
| 784 |
{\TEXTBOX[ \text.]}% |
| 785 |
\end{floatrow} |
| 786 |
\end{sidewaystextbox*} |
| 787 |
|
| 788 |
\Text \Text \Text |
| 789 |
|
| 790 |
\Text \Text |
| 791 |
|
| 792 |
\Text \Text |
| 793 |
|
| 794 |
|
| 795 |
\clearpage |
| 796 |
|
| 797 |
See example of continued textboxes (texts~\ref{cont:text:I}--\ref{cont:text:II} |
| 798 |
on the pages~\pageref{cont:text:I}--\pageref{cont:text:II}). |
| 799 |
The continued floats |
| 800 |
\ifodd\value{page}\else |
| 801 |
\Text \Text |
| 802 |
|
| 803 |
\Text \Text |
| 804 |
|
| 805 |
\ifodd\value{page}\else |
| 806 |
\Text \Text |
| 807 |
|
| 808 |
\fi |
| 809 |
|
| 810 |
\ifodd\value{page}\else |
| 811 |
\Text \Text |
| 812 |
|
| 813 |
\fi |
| 814 |
|
| 815 |
\fi |
| 816 |
|
| 817 |
\begin{sidewaystextbox*} |
| 818 |
\buildFBBOX{\vbox to\rottextwidth\bgroup\vss}{\egroup} |
| 819 |
\wideemptyfloatpage |
| 820 |
\ttextbox |
| 821 |
{\TEXTBOX[ \Text \Text \par \Text \Text \text]} |
| 822 |
{\caption{Beside text~I. \text}% |
| 823 |
\label{cont:text:I}}% |
| 824 |
\end{sidewaystextbox*} |
| 825 |
|
| 826 |
\begin{sidewaystextbox*} |
| 827 |
\buildFBBOX{\vbox to\rottextwidth\bgroup}{\vss\egroup} |
| 828 |
\wideemptyfloatpage\ContinuedFloat |
| 829 |
\floatbox{textbox} |
| 830 |
{\caption{\emph{Continued}}% |
| 831 |
\label{cont:text:II}% |
| 832 |
\floatfoot{Text of float foot. \text}}% |
| 833 |
{\TEXTBOX[ \text.]}% |
| 834 |
\end{sidewaystextbox*} |
| 835 |
|
| 836 |
\Text \Text \Text |
| 837 |
|
| 838 |
\Text \Text |
| 839 |
|
| 840 |
\Text \Text |
| 841 |
|
| 842 |
\Text |
| 843 |
|
| 844 |
|
| 845 |
\fi |
| 846 |
|
| 847 |
|
| 848 |
\ifTwocolumn\else |
| 849 |
\ifLoadWrapfig |
| 850 |
|
| 851 |
\clearpage |
| 852 |
\Text |
| 853 |
|
| 854 |
\begin{wrapfigure}{O}{40mm} |
| 855 |
{\input{TheCat.picture}} |
| 856 |
\caption{Wrapped plain figure |
| 857 |
(\protect\pkg{wrapfig} package)}\floatfoot{The \texttt{BOXED} |
| 858 |
style could get wrong layout in plain \texttt{wrap...} environment}\label{fig:wrapfig:WcatI} |
| 859 |
\end{wrapfigure} |
| 860 |
|
| 861 |
Example of plain wrapped figure (see figure~\ref{fig:wrapfig:WcatI}). |
| 862 |
\Text |
| 863 |
\Text |
| 864 |
|
| 865 |
\Text |
| 866 |
|
| 867 |
\clearpage |
| 868 |
\Text |
| 869 |
\begin{wrapfigure}{O}{40mm} |
| 870 |
\ffigbox |
| 871 |
{\par{\input{TheCat.picture}}} |
| 872 |
{\caption[Wrapped figure in \protect\com{floatbox}]{Wrapped figure in \protect\com{floatbox} |
| 873 |
(\protect\pkg{wrapfig} package)\mpfootnotemark[1]}\footnotetext[1]{In some cases you ought to |
| 874 |
correct height of wrapped float, or create faked paragraphs.}\label{fig:wrapfig:WcatII}} |
| 875 |
\end{wrapfigure} |
| 876 |
|
| 877 |
Example of wrapped figure in \verb|\floatbox| (see |
| 878 |
figure~\ref{fig:wrapfig:WcatII}). |
| 879 |
\Text |
| 880 |
\Text |
| 881 |
|
| 882 |
\Text |
| 883 |
|
| 884 |
\Text |
| 885 |
|
| 886 |
\fi\fi |
| 887 |
|
| 888 |
\ifLoadSubcaption |
| 889 |
\begingroup |
| 890 |
\providecommand*\subcaption{\captionsetup{subtype*}\caption} |
| 891 |
\captionsetup[subfloat]{textfont=md,labelfont=up} |
| 892 |
\floatsetup[subfloat]{style=plain,framearound=none} |
| 893 |
\makeatletter |
| 894 |
\newseparatedlabel\Flabel{\@captype}{sub\@captype} |
| 895 |
\makeatother |
| 896 |
\newseparatedref\Fref{,\,\textit} |
| 897 |
|
| 898 |
\clearpage |
| 899 |
|
| 900 |
The small testing example (figures \ref{fig:subrows} and \ref{fig:beside:subrows}) |
| 901 |
uses both \env{floatrow} and \env{subfloatrow} environment. |
| 902 |
For the row of the graphic parts \Fref{sfig:subrows:I} and \Fref{sfig:subrows:II} |
| 903 |
here is used the starred variant---\env{subfloatrow*}. |
| 904 |
\begin{figure}% |
| 905 |
\begin{floatrow}% |
| 906 |
\ffigbox[1.2\hsize]{}{\begin{subfloatrow} |
| 907 |
\ffigbox{}{\input{Cat.picture}\caption{}\Flabel{sfig:subrows:I}} |
| 908 |
\ffigbox{}{\input{TheCat.picture}\caption{}\Flabel{sfig:subrows:II}} |
| 909 |
\end{subfloatrow}% |
| 910 |
\caption{}\label{fig:subrows}}\qquad |
| 911 |
\ffigbox[.8\hsize-4\fboxsep-4\fboxrule-.5em]{}{\input{BlackCat.picture}\caption{}\label{fig:beside:subrows}} |
| 912 |
\end{floatrow}% |
| 913 |
\end{figure}% |
| 914 |
|
| 915 |
\Text |
| 916 |
\Text |
| 917 |
|
| 918 |
The small testing example (figures \ref{fig:subcap} and \ref{fig:beside:subcap}) |
| 919 |
uses both \env{floatrow} and \env{subfloatrow} environment. |
| 920 |
For captions of the graphic parts \Fref{sfig:subcap:I} and \Fref{sfig:subcap:II} |
| 921 |
is used the \verb|\subcaption| command. |
| 922 |
\begin{figure}% |
| 923 |
\begin{floatrow}% |
| 924 |
\ffigbox[\FBwidth]{}{\begin{subfloatrow} |
| 925 |
\ffigbox[\FBwidth]{}{\input{Cat.picture}\subcaption{}\Flabel{sfig:subcap:I}} |
| 926 |
\ffigbox[\FBwidth]{}{\input{TheCat.picture}\subcaption{}\Flabel{sfig:subcap:II}} |
| 927 |
\end{subfloatrow}% |
| 928 |
\caption{}\label{fig:subcap}}\qquad |
| 929 |
\ffigbox[\Xhsize-4\fboxsep-4\fboxrule-.5em]{}{\input{BlackCat.picture}\caption{}\label{fig:beside:subcap}} |
| 930 |
\end{floatrow}% |
| 931 |
\end{figure}% |
| 932 |
|
| 933 |
\Text |
| 934 |
\Text |
| 935 |
|
| 936 |
\endgroup |
| 937 |
\fi |
| 938 |
\endinput |