texlive[59023] Master/texmf-dist: hvfloat (29apr21)
commits+karl at tug.org
commits+karl at tug.org
Thu Apr 29 22:47:22 CEST 2021
Revision: 59023
http://tug.org/svn/texlive?view=revision&revision=59023
Author: karl
Date: 2021-04-29 22:47:22 +0200 (Thu, 29 Apr 2021)
Log Message:
-----------
hvfloat (29apr21)
Modified Paths:
--------------
trunk/Master/texmf-dist/doc/latex/hvfloat/Changes
trunk/Master/texmf-dist/doc/latex/hvfloat/hvfloat.pdf
trunk/Master/texmf-dist/doc/latex/hvfloat/hvfloat.tex
trunk/Master/texmf-dist/tex/latex/hvfloat/hvfloat.sty
Modified: trunk/Master/texmf-dist/doc/latex/hvfloat/Changes
===================================================================
--- trunk/Master/texmf-dist/doc/latex/hvfloat/Changes 2021-04-29 20:46:41 UTC (rev 59022)
+++ trunk/Master/texmf-dist/doc/latex/hvfloat/Changes 2021-04-29 20:47:22 UTC (rev 59023)
@@ -1,4 +1,6 @@
hvfloat.sty:
+2.20 2021-04-29 - use better macronames for setting the defaults
+ and defining an own style
2.19 2021-03-15 - fix for vertical spacing of doubleFULLPAGE
2.18 2021-03-12 - add support for doublepage objects
2.17 2020-10-31 - fix for label setting of non floating objects
Modified: trunk/Master/texmf-dist/doc/latex/hvfloat/hvfloat.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/doc/latex/hvfloat/hvfloat.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/hvfloat/hvfloat.tex 2021-04-29 20:46:41 UTC (rev 59022)
+++ trunk/Master/texmf-dist/doc/latex/hvfloat/hvfloat.tex 2021-04-29 20:47:22 UTC (rev 59023)
@@ -1,4 +1,4 @@
-%% $Id: hvfloat.tex 54 2021-03-14 14:55:34Z herbert $
+%% $Id: hvfloat.tex 56 2021-03-15 07:20:37Z herbert $
\listfiles
\errorcontextlines=100
\documentclass[twoside,paper=a4]{scrartcl}
@@ -233,11 +233,11 @@
\section{The Macros and optional arguments}
-The syntax for the macros and \Lcs{setDefaults}, \Lcs{hvSet}, and \CMD{hvFloat} is
+The syntax for the macros and \Lcs{hvFloatSetDefaults}, \Lcs{hvFloatSet}, and \CMD{hvFloat} is
\begin{BDef}
-\Lcs{hvset}\Largb{key=value list}\\
-\Lcs{setDefaults}\\
+\Lcs{hvFloatSet}\Largb{key=value list}\\
+\Lcs{hvFloatSetDefaults}\\
\Lcs{hvFloat}\OptArg*{*}\OptArgs\OptArg*{+}\Largb{float type}\Largb{floating object}\OptArg{short caption}\Largb{long caption}\Largb{label}
\end{BDef}
@@ -244,7 +244,7 @@
The star version is explained in section~\vref{star-version0} and \vref{star-version} and
the optional \OptArg*{+} is explained in section~\vref{sec:multifloats}.
-\Lcs{hvSet} allows the global setting of keywords and \Lcs{setDefaults} sets all keywords to
+\Lcs{hvFloatSet} allows the global setting of keywords and \Lcs{hvFloatSetDefaults} sets all keywords to
its default value as shown in Table~\vref{tab:options}.
If \Lcs{hvFloat} has an empty second parameter \texttt{<float type>}, then \Lcs{hvFloat} switches by default to
@@ -276,11 +276,14 @@
\end{verbatim}}
-With the macro \Lcs{defhvstyle} one can define a style which can be used instead of
+%\hvDefFloatStyle
+%\hvFloatSetDefaults
+
+With the macro \Lcs{hvDefFloatStyle} one can define a style which can be used instead of
the individual setting:
\begin{BDef}
-\Lcs{defhvstyle}\Largb{name}\Largb{setting}
+\Lcs{hvDefFloatStyle}\Largb{name}\Largb{setting}
\end{BDef}
Internally the style is saved in a macro named \verb|\hv@<name>|.
@@ -378,8 +381,8 @@
\Lenv{hvFloatEnv} & environment & places object and caption exactly Here\\
\CMD{figcaption} & command & writes a figure caption in a non floating environment\\
\CMD{tabcaption} & command & writes a table caption in a non floating environment\\
- \CMD{setDefaults} & command & sets all options to the defaults\\
- \CMD{defhvstyle} & command & define a user style
+ \CMD{hvFloatSetDefaults} & command & sets all options to the defaults\\
+ \CMD{hvDefFloatStyle} & command & define a user style
\end{tabularx}%
}{With the only Option \texttt{capPos=top} to place the caption on top of the table, which is often the default.}{tab:0}
@@ -392,8 +395,8 @@
hvFloatEnv & environment & places object and caption exactly Here\\
\CMD{figcaption} & command & writes a figure caption in a non floating environment\\
\CMD{tabcaption} & command & writes a table caption in a non floating environment\\
- \CMD{setDefaults} & command & sets all options to the defaults\\
- \CMD{defhvstyle} & command & define a user style
+ \CMD{hvFloatSetDefaults} & command & sets all options to the defaults\\
+ \CMD{hvDefFloatStyle} & command & define a user style
\end{tabularx}}%
{With the only Option \texttt{capPos=top} to place the caption on top of the table, which is often the default.}%
{tab:0}
@@ -1187,7 +1190,7 @@
hvFloatEnv & environment & places object and caption exactly Here\\
\CMD{figcaption} & command & writes a figure caption in a non floating environment\\
\CMD{tabcaption} & command & writes a table caption in a non floating environment\\
- \CMD{setDefaults} & command & sets all options to the defaults\\\hline
+ \CMD{hvFloatSetDefaults} & command & sets all options to the defaults\\\hline
\end{tabular}%
}
@@ -1202,7 +1205,7 @@
hvFloatEnv & environment & places object and caption exactly Here\\
\CMD{figcaption} & command & writes a figure caption in a non floating environment\\
\CMD{tabcaption} & command & writes a table caption in a non floating environment\\
- \CMD{setDefaults} & command & sets all options to the defaults\\\hline
+ \CMD{hvFloatSetDefaults} & command & sets all options to the defaults\\\hline
\end{tabular}%
}
\end{lstlisting}
@@ -2727,7 +2730,7 @@
the object is set. Let's assume that we use something like
\begin{verbatim}
-\setDefaults
+\hvFloatSetDefaults
\hvFloat[fullpage,capPos=evenPage]{figure}%
{\IncludeGraphics{images/frose}}%
[A float which needs the complete paper width and height.]%
@@ -2772,15 +2775,15 @@
\section{Defining a style}
-With \Lcs{defhvstyle} one can define a special style to get rid of the individual setting:
+With \Lcs{hvDefFloatStyle} one can define a special style to get rid of the individual setting:
\begin{BDef}
-\Lcs{defhvstyle}\Largb{name}\Largb{setting}
+\Lcs{hvDefFloatStyle}\Largb{name}\Largb{setting}
\end{BDef}
For example:
\begin{verbatim}
-\defhvstyle{RightCaption}{floatPos=htb, capWidth=0.5, capPos=after, capVPos=bottom, objectPos=center}
+\hvDefFloatStyle{RightCaption}{floatPos=htb, capWidth=0.5, capPos=after, capVPos=bottom, objectPos=center}
\end{verbatim}
@@ -2791,8 +2794,8 @@
\end{lstlisting}
-\setDefaults
-\defhvstyle{RightCaption}{floatPos=htb, capWidth=0.5, capPos=after, capVPos=bottom, objectPos=center}
+\hvFloatSetDefaults
+\hvDefFloatStyle{RightCaption}{floatPos=htb, capWidth=0.5, capPos=after, capVPos=bottom, objectPos=center}
\hvFloat[style=RightCaption]{figure}{\includegraphics{images/rose}}%
@@ -2824,7 +2827,7 @@
\Blindtext
-\setDefaults
+\hvFloatSetDefaults
\hvFloat[FULLPAGE]{figure}%
{\includegraphics[FULLPAGE]{tiger}}%
[A float which needs the complete paper width and height.]%
Modified: trunk/Master/texmf-dist/tex/latex/hvfloat/hvfloat.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/hvfloat/hvfloat.sty 2021-04-29 20:46:41 UTC (rev 59022)
+++ trunk/Master/texmf-dist/tex/latex/hvfloat/hvfloat.sty 2021-04-29 20:47:22 UTC (rev 59023)
@@ -1,4 +1,4 @@
-%% $Id: hvfloat.sty 55 2021-03-15 06:54:38Z herbert $
+%% $Id: hvfloat.sty 56 2021-03-15 07:20:37Z herbert $
%%
%%
%% IMPORTANT NOTICE:
@@ -15,8 +15,8 @@
%% `hvfloat' offers rotating of captions and objects for floats
%%
\NeedsTeXFormat{LaTeX2e}
-\def\fileversion{2.19}
-\def\filedate{2021/03/15}
+\def\fileversion{2.20}
+\def\filedate{2021/04/29}
\message{`hvfloat' v\fileversion, \filedate\space (Herbert Voss)}
\ProvidesPackage{hvfloat}[\filedate\ rotating of floating objects]
\let\hvFloatFileVersion\fileversion
@@ -166,6 +166,7 @@
\let\hvFloatSet\hv at set
%
\def\defhvstyle#1#2{\@namedef{hv@#1}{#2}}
+\let\hvDefFloatStyle\defhvstyle % better name
%
\newcommand{\setDefaults}{%
\hv at set{%
@@ -179,6 +180,9 @@
capFormat={}, subcapFormat={},
}%
}
+
+\let\hvFloatSetDefaults\setDefaults
+
\newcommand\reset at special@float{%
\hv at set{subFloat=false,%fullpage=false,
multiFloat=false,%FULLPAGE=false
More information about the tex-live-commits
mailing list.