diff options
author | Karl Berry <karl@freefriends.org> | 2019-05-10 21:15:26 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2019-05-10 21:15:26 +0000 |
commit | eac873075e6b204b20f064bc33f92e86ec8065a2 (patch) | |
tree | 74edb89558e7a3ab60dab53fd165f6026673acd9 /Master/texmf-dist/doc/latex/hvfloat/hvfloat.tex | |
parent | 0adb4af0234da7598911f149b7884b86b514e07d (diff) |
hvfloat (10may19)
git-svn-id: svn://tug.org/texlive/trunk@51072 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/latex/hvfloat/hvfloat.tex')
-rw-r--r-- | Master/texmf-dist/doc/latex/hvfloat/hvfloat.tex | 31 |
1 files changed, 29 insertions, 2 deletions
diff --git a/Master/texmf-dist/doc/latex/hvfloat/hvfloat.tex b/Master/texmf-dist/doc/latex/hvfloat/hvfloat.tex index e8f153dfbfc..73353a7e2c5 100644 --- a/Master/texmf-dist/doc/latex/hvfloat/hvfloat.tex +++ b/Master/texmf-dist/doc/latex/hvfloat/hvfloat.tex @@ -33,6 +33,7 @@ \usepackage{graphicx} \usepackage{placeins} +\usepackage{ragged2e} \usepackage{xcolor} \usepackage{url} \usepackage{booktabs,xltabular} @@ -321,7 +322,7 @@ There are the following keywords: \Lkeyword{objectAngle} & 0 & The value for the angle if the object should be rotated. Counted anti clockwise.\\ -\Lkeyword{floatCapSep} & 5 & The additional width between the object and a left or right placed caption. The default unit is \texttt{pt}.\\ +\Lkeyword{floatCapSep} & 5pt & The additional width between the object and a left or right placed caption.\\ \Lkeyword{useOBox} & false & Instead of passing the object as parameter to the \Lcs{hvFloat}, the contents maybe saved in the box \texttt{\textbackslash hvOBox} With \texttt{useOBox=true} the contents of this box will be used.\\ @@ -788,7 +789,7 @@ The code for figure \ref{fig:6}: The caption is always near the object, only divided by the length \Ldim{floatCapSep} which can be set by the keyword of the same name \Lkeyword{floatCapSep}. It accepts only -a decimal number and is preset to 5. The default unit is \texttt{pt} and cannot be changed. +a value with any allowed unit. %The default unit is \texttt{pt} and cannot be changed. The keyword \Lkeyword{objectPos} refers always to the complete floating object: caption \emph{and} object. The meaning of \Lkeyset{objectPos=left} is: Put the object as far as possible to the left margin. If \Lkeyset{capPos=left} is also used, then the caption is at the left margin followed by @@ -959,6 +960,32 @@ the option \texttt{wide}.}{fig:811} Caption at top inner beside the float and object position right and the option \texttt{wide}.}{fig:811} +The caption can be typeset completely into the margin with: + +\begin{lstlisting} +\captionsetup{justification=RaggedRight} +\hvFloat[wide, + capPos=outer, + capVPos=top, + floatCapSep=\marginparsep, +]{figure}{\includegraphics[width=\linewidth]{images/CTAN}}{% +Caption at top inner beside the float and object position right and +the option \texttt{wide}.}{fig:812} +\end{lstlisting} + +%\Float[capPos=outer] + +\begingroup +\captionsetup{justification=RaggedRight} +\hvFloat[wide, + capPos=outer, + capVPos=top, + floatCapSep=\marginparsep, +]{figure}{\includegraphics[width=\linewidth]{images/CTAN}}{% +Caption at top inner beside the float and object position right and +the option \texttt{wide}.}{fig:812} +\endgroup + \section{The star version \Lcs{hvFloat*}}\label{star-version0} |