summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/hvfloat/doc/hvfloat.tex
diff options
context:
space:
mode:
Diffstat (limited to 'macros/latex/contrib/hvfloat/doc/hvfloat.tex')
-rw-r--r--macros/latex/contrib/hvfloat/doc/hvfloat.tex43
1 files changed, 41 insertions, 2 deletions
diff --git a/macros/latex/contrib/hvfloat/doc/hvfloat.tex b/macros/latex/contrib/hvfloat/doc/hvfloat.tex
index fb50aa0941..8b5da27591 100644
--- a/macros/latex/contrib/hvfloat/doc/hvfloat.tex
+++ b/macros/latex/contrib/hvfloat/doc/hvfloat.tex
@@ -1,4 +1,4 @@
-%% $Id: hvfloat.tex 584 2022-07-20 18:29:58Z herbert $
+%% $Id: hvfloat.tex 653 2022-11-20 21:54:52Z herbert $
\listfiles
\errorcontextlines=100
\documentclass[twoside,paper=a4,usegeometry]{scrartcl}
@@ -10,7 +10,7 @@
\usepackage{microtype}
\usepackage[english]{babel}
-\usepackage[marginparwidth=3cm,bottom=2cm,top=1cm,includeheadfoot]{geometry}
+\usepackage[marginparwidth=3cm,bottom=2cm,top=1cm,includeheadfoot,showframe]{geometry}
\usepackage[automark]{scrlayer-scrpage}
@@ -383,6 +383,7 @@ There are the following keywords:
\rownl The float counter is increased as usual and can be referenced.\\
\Lkeyword{wide} & false & \rowvsp The float can use
\Ldim{textwidth}$\,+\,$\Ldim{marginparwidth} as horizontal width.\\
+\Lkeyword{inMargin} & false & \rowvsp Put object and frame into the margin.\\
\Lkeyword{objectFrame} & false & \rowvsp Put a frame with no separation
around the float object.\\
\Lkeyword{style} & \none & \rowvsp Use a defined style.\\
@@ -1107,6 +1108,44 @@ the caption to the left, center, or right of the full width which is linewidth a
{label}
+%\hvblindtext
+
+\section{Margin floats}
+
+With the optional argument \Lkeyword{inMargin} the opject and the caption can be placed into
+the margin. This is done internally with the command \Lcs{marginnote} from the package of the same name.
+
+%\marginnote{Fig.~\ref{thea}}
+\hvFloat[inMargin]{figure}{\includegraphics[width=\marginparwidth]{images/thea}}
+ {An image in the margin of the document.}
+ {thea}
+
+
+\begin{lstlisting}
+\hvFloat[inMargin]{figure}{\includegraphics[width=\marginparwidth]{images/thea}}
+ {An image in the margin of the document.}
+ {thea}
+
+...
+
+\hvFloat[inMargin]{table}{\small\begin{tabular}{@{}ccc@{}}\hline Mon& Di& Mi\\ frei & Dienst & frei\\
+ Dienst & Dienst & Frei\\\hline \end{tabular}}
+ {A tabular in the margin just like the image.}
+ {thea2}
+\end{lstlisting}
+
+
+\hvblindtext
+
+
+%\marginnote{Fig.~\ref{thea2}}
+\hvFloat[inMargin]{table}{\small\tabcolsep=3pt\begin{tabular}{@{}ccc@{}}\hline Mon& Di& Mi\\ frei & Dienst & frei\\
+ Dienst & Dienst & Frei\\\hline \end{tabular}}
+ {A tabular in the margin just like the image.}
+ {thea2}
+
+The same is possible with a short tabular, dependent to the width of the margin.
+
\hvblindtext