| 1 |
\documentclass[twoside,DIV=13]{scrartcl} |
| 2 |
%% $Id: capPos.tex 103 2021-05-31 12:37:11Z herbert $ |
| 3 |
|
| 4 |
\input{preamble.ltx} |
| 5 |
\usepackage{multicol} |
| 6 |
\usepackage[all=!htb]{hvfloat-fps} |
| 7 |
|
| 8 |
\setlength\columnseprule{0.4pt} |
| 9 |
\def\capShortText{A short caption} |
| 10 |
\def\capLongText{Here comes a caption to show the justification of the text relative to the object. It refers to |
| 11 |
the optional argument \texttt{capPos}.} |
| 12 |
|
| 13 |
\let\OrigBlindtext\blindtext |
| 14 |
\def\myblindtext{\TeX\ is a typesetting language. Instead of visually formatting your text, you enter y |
| 15 |
our manuscript text intertwined with \TeX\ commands in a plain text file. You then run \TeX\ to |
| 16 |
produce formatted output, such as a PDF file. %Thus, in contrast to standard word processors, |
| 17 |
%your document is a separate file that does not pretend to be a representation of the final |
| 18 |
%typeset output, and so can be easily edited and manipulated. |
| 19 |
} |
| 20 |
|
| 21 |
|
| 22 |
|
| 23 |
\begin{document} |
| 24 |
|
| 25 |
\tableofcontents |
| 26 |
|
| 27 |
\newpage |
| 28 |
|
| 29 |
\section{Examples for \texttt{capPos} and onecolumn mode} |
| 30 |
\let\NewColumn\clearpage |
| 31 |
\let\blindtext\myblindtext |
| 32 |
\input{capPos.inc} |
| 33 |
|
| 34 |
\section{Examples for \texttt{capVPos} and onecolumn mode } |
| 35 |
Horizontal alignment with the optional arguments from package \texttt{caption}, e.g. \texttt{singlelinecheck=off} for short captions. |
| 36 |
|
| 37 |
\input{capVPos.inc} |
| 38 |
|
| 39 |
|
| 40 |
\twocolumn[\section{Examples for \texttt{capPos} and twocolumn mode}] |
| 41 |
\let\NewColumn\columnbreak |
| 42 |
\input{capPos.inc} |
| 43 |
|
| 44 |
\let\blindtext\OrigBlindtext |
| 45 |
\section{Examples for \texttt{capVPos} and twocolumn mode (\texttt{capPos=right})} |
| 46 |
\let\NewColumn\columnbreak |
| 47 |
\input{capVPos.inc} |
| 48 |
|
| 49 |
|
| 50 |
\end{document} |