summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/hvfloat/doc/examples/capPos.tex
blob: 3887dfd06e4ec5e0181f639b99b1099128be4a82 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
\documentclass[twoside,DIV=13]{scrartcl}
%% $Id: capPos.tex 103 2021-05-31 12:37:11Z herbert $

\input{preamble.ltx}
\usepackage{multicol}
\usepackage[all=!htb]{hvfloat-fps}

\setlength\columnseprule{0.4pt}
\def\capShortText{A short caption}
\def\capLongText{Here comes a caption to show the  justification of the text relative to the object. It refers to 
the optional argument \texttt{capPos}.}

\let\OrigBlindtext\blindtext
\def\myblindtext{\TeX\ is a typesetting language. Instead of visually formatting your text, you enter y
our manuscript text intertwined with \TeX\ commands in a plain text file. You then run \TeX\ to 
produce formatted output, such as a PDF file. %Thus, in contrast to standard word processors, 
%your document is a separate file that does not pretend to be a representation of the final 
%typeset output, and so can be easily edited and manipulated.
}



\begin{document}

\tableofcontents

\newpage

\section{Examples for \texttt{capPos} and onecolumn mode}
\let\NewColumn\clearpage
\let\blindtext\myblindtext
\input{capPos.inc}

\section{Examples for \texttt{capVPos} and onecolumn mode }
Horizontal alignment with the optional arguments from package \texttt{caption}, e.g. \texttt{singlelinecheck=off} for short captions.

\input{capVPos.inc}


\twocolumn[\section{Examples for \texttt{capPos} and twocolumn mode}]
\let\NewColumn\columnbreak
\input{capPos.inc}

\let\blindtext\OrigBlindtext
\section{Examples for \texttt{capVPos} and twocolumn mode (\texttt{capPos=right})}
\let\NewColumn\columnbreak
\input{capVPos.inc}


\end{document}