texlive[64904] Master/texmf-dist: hep-float (2nov22)

commits+karl at tug.org commits+karl at tug.org
Wed Nov 2 23:05:11 CET 2022


Revision: 64904
          http://tug.org/svn/texlive?view=revision&revision=64904
Author:   karl
Date:     2022-11-02 23:05:11 +0100 (Wed, 02 Nov 2022)
Log Message:
-----------
hep-float (2nov22)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/latex/hep-float/bibliography.bib
    trunk/Master/texmf-dist/doc/latex/hep-float/hep-float-documentation.pdf
    trunk/Master/texmf-dist/doc/latex/hep-float/hep-float-documentation.tex
    trunk/Master/texmf-dist/doc/latex/hep-float/hep-float-implementation.pdf
    trunk/Master/texmf-dist/source/latex/hep-float/hep-float-implementation.dtx
    trunk/Master/texmf-dist/tex/latex/hep-float/hep-float.sty

Modified: trunk/Master/texmf-dist/doc/latex/hep-float/bibliography.bib
===================================================================
--- trunk/Master/texmf-dist/doc/latex/hep-float/bibliography.bib	2022-11-02 22:04:34 UTC (rev 64903)
+++ trunk/Master/texmf-dist/doc/latex/hep-float/bibliography.bib	2022-11-02 22:05:11 UTC (rev 64904)
@@ -21,7 +21,7 @@
 author = "Jan Hajer",
 year = "2021",
 eprinttype = "ctan",
-eprint = "hep-acronyms",
+eprint = "hep-acronym",
 related = "hep-paper-1",
 }
 
@@ -95,6 +95,24 @@
 related = "hep-paper-1",
 }
 
+ at article{hep-reference,
+title = "The |hep-reference| package",
+subtitle = "Selection of reference improvements",
+author = "Jan Hajer",
+year = "2021",
+eprinttype = "ctan",
+eprint = "hep-reference",
+related = "hep-paper-1",
+}
+
+ at article{hep-cv,
+title = "The |hep-cv| package",
+subtitle = "Appealing curricula vitarum",
+author = "Jan Hajer",
+year = "2020",
+related = "hep-paper-1",
+}
+
 @article{kvoptions,
 title = "The |kvoptions| package",
 subtitle = "Key value format for package options",
@@ -1053,3 +1071,144 @@
 eprint = "soulutf8",
 }
 
+ at article{moderncv,
+title = "The |moderncv| package",
+subtitle = "A modern curriculum vitae class",
+author = "Xavier Danaux",
+year = "2006",
+eprinttype = "ctan",
+eprint = "moderncv",
+related = "moderncv-1",
+}
+
+ at article{anyfontsize,
+title = "The |anyfontsize| package",
+subtitle = "Select any font size in \hologo{LaTeX}",
+author = "Péter Szabó",
+date = "2007",
+eprinttype = "ctan",
+eprint = "anyfontsize",
+}
+
+ at article{array,
+title = "A new implementation of \hologo{LaTeX}’s |tabular| and |array| environment",
+subtitle = "Extending the |array| and |tabular| environments",
+author = "Frank Mittelbach, David Carlisle",
+collaboration= "\hologo{LaTeX} Team",
+year = "1993",
+eprinttype = "ctan",
+eprint = "array",
+}
+
+ at article{dashrule,
+title = "The |dashrule| package",
+subtitle = "Draw dashed rules",
+author = "Scott Pakin",
+date = "2008",
+eprinttype = "ctan",
+eprint = "dashrule",
+}
+
+ at article{fancyhdr,
+title = "The |fancyhdr| and |extramarks| packages",
+subtitle = "Extensive control of page headers and footers in \hologo{LaTeX2e}",
+author = "Piet van Oostrum",
+date = "1994",
+eprinttype = "ctan",
+eprint = "fancyhdr",
+}
+
+ at article{lastpage,
+title = "The |lastpage| package",
+subtitle = "Reference last page for Page $N$ of $M$ type footers",
+author = "Hans-Martin Münch and Jeffrey Goldberg",
+date = "1994",
+eprinttype = "ctan",
+eprint = "lastpage",
+}
+
+ at article{textpos,
+title = "|Textpos|: absolute positioning of text on the page",
+subtitle = "Place boxes at arbitrary positions on the \hologo{LaTeX} page",
+author = "Norman Gray",
+date = "1999",
+eprinttype = "ctan",
+eprint = "textpos",
+related = "textpos-1",
+}
+
+ at manual{textpos-1,
+eprinttype = "bitbucket",
+eprintclass = "nxg",
+eprint = "textpos",
+}
+
+ at article{subfiles,
+title = "The |subfiles| package: A Document Class and a Package for Handling Multi-File Projects",
+subtitle = "Individual typesetting of subfiles of a \enquote{main} document",
+author = "Federico Garcia and Gernot Salzer",
+date = "2002",
+eprinttype = "ctan",
+eprint = "subfiles",
+related = "subfiles-1",
+}
+
+ at manual{subfiles-1,
+eprinttype = "github",
+eprintclass = "gsalzer",
+eprint = "subfiles",
+}
+
+ at article{titlesec,
+title = "The |titlesec|, |titleps| and |titletoc| packages",
+subtitle = "Select alternative section titles",
+author = "Javier Bezos",
+year = "1998",
+eprinttype = "ctan",
+eprint = "titlesec",
+related = "titlesec-1",
+}
+
+ at manual{titlesec-1,
+eprinttype = "github",
+eprintclass = "jbezos",
+eprint = "titlesec",
+}
+
+ at article{calc,
+title = "The |calc| package",
+subtitle = "Simple arithmetic in \hologo{LaTeX} commands",
+author = "Kresten Krab Thorup and Frank Jensen",
+collaboration = "\hologo{LaTeX3} Project",
+year = "1992",
+eprinttype = "ctan",
+eprint = "calc",
+}
+
+ at article{tabulary,
+title = "The |tabulary| package",
+subtitle = "Tabular with variable width columns balanced",
+author = "David Carlisle",
+year = "1995",
+eprinttype = "ctan",
+eprint = "tabulary",
+}
+
+ at article{xcolor,
+title = "The |xcolor| package",
+subtitle = "Driver-independent color extensions for \hologo{LaTeX} and \hologo{pdfLaTeX}",
+author = "Uwe Kern",
+collaboration = "\hologo{LaTeX} Project",
+year = "2003",
+eprinttype = "ctan",
+eprint = "xcolor",
+}
+
+ at article{overlays,
+title = "The |overlays| package",
+subtitle = "Incremental slides",
+author = "Andreas Nolda",
+year = "2016",
+eprinttype = "ctan",
+eprint = "overlays",
+}

Modified: trunk/Master/texmf-dist/doc/latex/hep-float/hep-float-documentation.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/hep-float/hep-float-documentation.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/hep-float/hep-float-documentation.tex	2022-11-02 22:04:34 UTC (rev 64903)
+++ trunk/Master/texmf-dist/doc/latex/hep-float/hep-float-documentation.tex	2022-11-02 22:05:11 UTC (rev 64904)
@@ -15,7 +15,7 @@
 %% and version 1.3c or later is part of all distributions of
 %% LaTeX version 2005/12/01 or later.
 
-\ProvidesFile{hep-float-documentation.tex}[2021/08/01 v1.0 hep-float documentation]
+\ProvidesFile{hep-float-documentation.tex}[2022/11/01 v1.1 hep-float documentation]
 
 \RequirePackage[l2tabu, orthodox]{nag}
 
@@ -40,7 +40,7 @@
 
 \title{The \software{hep-float} package\thanks{This document corresponds to \software{hep-float}~\fileversion.}}
 \subtitle{Convenience package for float placement}
-\author{Jan Hajer \email{jan.hajer at unibas.ch}}
+\author{Jan Hajer \email{jan.hajer at tecnico.ulisboa.pt}}
 \date{\filedate}
 
 \begin{document}
@@ -68,6 +68,7 @@
 "\renewcommand{\floatpagefraction}{.8}" \hfill float pages must be full (default 0.5)
 
 The most useful float placement is usually archived by placing the float \emph{in front} of the paragraph it is referenced in first.
+\DescribeMacro{manualplacement}
 Additionally, manual float placement can be deactivated using the "manualplacement" package option.
 
 \DescribeMacro{\raggedright}
@@ -107,6 +108,9 @@
 Within the "\begin{panels}"\oarg{vertical alignment}\marg{width} environment the "\panel" macro initiates a new sub-float.
 In the case that the width of the first sub-float has been given as an optional argument to the "panels" environment the "\panel"\marg{width} macro takes the width of the next sub-float as mandatory argument.
 The example code is presented in \cref{tab:panels}.
+\DescribeMacro{\panelhspace}
+\DescribeMacro{\panelvspace}
+The spacing between the panels can be adjusted by adjusting the "\panelvspace" in terms of a "\linewidth" fraction "\renewcommand{\panelhspace}"{fraction} and the "\panelvspace" in terms of a length "\renewcommand{\panelvspace}"\marg{length}.
 
 \DescribeEnv{tabular}
 The \software{booktabs} \cite{booktabs} and \software{multirow} \cite{multirow} packages are loaded enabling publication quality tabulars such as in \cref{tab:booktabs}.

Modified: trunk/Master/texmf-dist/doc/latex/hep-float/hep-float-implementation.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/source/latex/hep-float/hep-float-implementation.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/hep-float/hep-float-implementation.dtx	2022-11-02 22:04:34 UTC (rev 64903)
+++ trunk/Master/texmf-dist/source/latex/hep-float/hep-float-implementation.dtx	2022-11-02 22:05:11 UTC (rev 64904)
@@ -18,8 +18,8 @@
 % \iffalse
 
 %<package>\NeedsTeXFormat{LaTeX2e}[2005/12/01]
-%<package>\ProvidesPackage{hep-float}[2021/08/01 v1.0 Float adjustments ]
-%<documentation>\ProvidesFile{hep-float-documentation.tex}[2021/08/01 v1.0 hep-float documentation]
+%<package>\ProvidesPackage{hep-float}[2022/11/01 v1.1 Float adjustments ]
+%<documentation>\ProvidesFile{hep-float-documentation.tex}[2022/11/01 v1.1 hep-float documentation]
 %
 %<*documentation>
 
@@ -53,7 +53,7 @@
 %
 % \fi
 %
-% \CheckSum{105}
+% \CheckSum{0}
 %
 % \CharacterTable
 %  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
@@ -72,6 +72,7 @@
 %   Right brace   \}     Tilde         \~}
 %
 % \changes{v1.0}{2021/09/01}{Initial version of the style file.}
+% \changes{v1.1}{2022/11/01}{Bug fixes.}
 %
 % \ifshort
 %<*documentation>
@@ -81,7 +82,7 @@
 
 \title{The \software{hep-float} package\thanks{This document corresponds to \software{hep-float}~\fileversion.}}
 \subtitle{Convenience package for float placement}
-\author{Jan Hajer \email{jan.hajer at unibas.ch}}
+\author{Jan Hajer \email{jan.hajer at tecnico.ulisboa.pt}}
 \date{\filedate}
 
 % \ifshort
@@ -111,6 +112,7 @@
 "\renewcommand{\floatpagefraction}{.8}" \hfill float pages must be full (default 0.5)
 
 The most useful float placement is usually archived by placing the float \emph{in front} of the paragraph it is referenced in first.
+\DescribeMacro{manualplacement}
 Additionally, manual float placement can be deactivated using the "manualplacement" package option.
 
 \DescribeMacro{\raggedright}
@@ -150,6 +152,9 @@
 Within the "\begin{panels}"\oarg{vertical alignment}\marg{width} environment the "\panel" macro initiates a new sub-float.
 In the case that the width of the first sub-float has been given as an optional argument to the "panels" environment the "\panel"\marg{width} macro takes the width of the next sub-float as mandatory argument.
 The example code is presented in \cref{tab:panels}.
+\DescribeMacro{\panelhspace}
+\DescribeMacro{\panelvspace}
+The spacing between the panels can be adjusted by adjusting the "\panelvspace" in terms of a "\linewidth" fraction "\renewcommand{\panelhspace}"{fraction} and the "\panelvspace" in terms of a length "\renewcommand{\panelvspace}"\marg{length}.
 
 \DescribeEnv{tabular}
 The \software{booktabs} \cite{booktabs} and \software{multirow} \cite{multirow} packages are loaded enabling publication quality tabulars such as in \cref{tab:booktabs}.
@@ -239,58 +244,77 @@
 %
 % \subsection{Sub-floats}
 %
-% \begin{macro}{\subfigure}
-% \begin{macro}{\subtable}
 % Load the \software{subcaption} package \cite{subcaption}.
-% Provide the old "\subcaption at minipage" macro.
 %    \begin{macrocode}
-\RequirePackage[subrefformat=parens]{subcaption}
+\PassOptionsToPackage{subrefformat=parens}{subcaption}
+\RequirePackage{subcaption}
 \captionsetup{font=small}
 \captionsetup[sub]{font=small}
+%    \end{macrocode}
+% Provide the macros for older versions of the \software{subcaption} package using the \software{xparse} \cite{xparse} package.
+%    \begin{macrocode}
+\RequirePackage{xparse}
 \providecommand*\subcaption at minipage[2]{%
   \minipage#1{#2}\setcaptionsubtype\relax%
 }
+\ProvideDocumentEnvironment{subcaptionblock}{O{b}m}{%
+  \caption at withoptargs\subcaption at minipage[#1]{#2}%
+}{\endminipage}
 %    \end{macrocode}
-% \end{macro}
-% \end{macro}
 % \begin{environment}{panels}
+%
 % \begin{macro}{\panel}
-% Define the "panels" environment and the "\panel" macro.
+% \begin{macro}{\panelhspace}
+% \begin{macro}{\panelvspace}
+% Define the "panels" environment and the "\panel" macro using the \software{calc} \cite{calc} and \software{etoolbox} \cite{etoolbox} packages.
 %    \begin{macrocode}
-\newcommand{\hep at panels@space}{20}
+\RequirePackage{calc}
+\RequirePackage{etoolbox}
+\newcommand{\panelhspace}{0.0333}
+\newcommand{\panelvspace}{.5\baselineskip}
 \newenvironment{panels}[2][b]{%
+  \addtolength{\belowcaptionskip}{\panelvspace}%
 %    \end{macrocode}
 % Define an internal macro for global behaviour.
 %    \begin{macrocode}
   \newcommand{\begin at subcaption@minipage}[2][b]{%
-    \caption at withoptargs\subcaption at minipage[##1]{##2}%
+%     \caption at withoptargs\subcaption at minipage[##1]{##2}%
+    \subcaptionblock[##1]{##2}%
     \centering\vskip 0pt%
-  }
+%     \renewcommand{\hep at panel@vspace}{\panelvspace}%
+  }%
 %    \end{macrocode}
 % Define the "\panel" macro for the case that the number of panels is given.
 %    \begin{macrocode}
   \ifdim#2pt>1pt%
-    \newcommand{\hep at panel@space}{%
-      (1-#2+\hep at panels@space)/\hep at panels@space%
-    }%
+    \newcommand{\hep at panel@space}{\panelhspace\linewidth/#2}%
     \newcommand{\panel}[1][b]{%
       \endminipage\hfill\begin at subcaption@minipage[#1]{%
-        \linewidth/#2*\hep at panel@space%
+        \linewidth/#2-\hep at panel@space%
       }%
     }%
-    \begin at subcaption@minipage[#1]{\linewidth/#2*\hep at panel@space}%
+    \begin at subcaption@minipage[#1]{\linewidth/#2-\hep at panel@space}%
 %    \end{macrocode}
 % Define the "\panel" macro for the case that the width of the panel is given.
 %    \begin{macrocode}
   \else%
     \newcommand{\panel}[2][b]{%
-      \endminipage\hfill\begin at subcaption@minipage[#1]{##2\linewidth}%
+      \endminipage\hfill\begin at subcaption@minipage[#1]{%
+        ##2\linewidth-##2\linewidth*\real{\panelhspace}%
+      }%
     }%
-    \begin at subcaption@minipage[#1]{#2\linewidth}%
+    \begin at subcaption@minipage[#1]{%
+      #2\linewidth-#2\linewidth*\real{\panelhspace}%
+    }%
   \fi%
-}{\endminipage}
+}{
+\endsubcaptionblock
+\vspace{-\panelvspace}
+}
 %    \end{macrocode}
 % \end{macro}
+% \end{macro}
+% \end{macro}
 % \end{environment}
 %
 % \subsection{Tables}

Modified: trunk/Master/texmf-dist/tex/latex/hep-float/hep-float.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/hep-float/hep-float.sty	2022-11-02 22:04:34 UTC (rev 64903)
+++ trunk/Master/texmf-dist/tex/latex/hep-float/hep-float.sty	2022-11-02 22:05:11 UTC (rev 64904)
@@ -16,7 +16,7 @@
 %% LaTeX version 2005/12/01 or later.
 
 \NeedsTeXFormat{LaTeX2e}[2005/12/01]
-\ProvidesPackage{hep-float}[2021/08/01 v1.0 Float adjustments ]
+\ProvidesPackage{hep-float}[2022/11/01 v1.1 Float adjustments ]
 
 \RequirePackage{kvoptions}
 \SetupKeyvalOptions{
@@ -51,35 +51,49 @@
     \hep at table\centering%
   }{\end at hep@table}
 \fi%
-\RequirePackage[subrefformat=parens]{subcaption}
+\PassOptionsToPackage{subrefformat=parens}{subcaption}
+\RequirePackage{subcaption}
 \captionsetup{font=small}
 \captionsetup[sub]{font=small}
+\RequirePackage{xparse}
 \providecommand*\subcaption at minipage[2]{%
   \minipage#1{#2}\setcaptionsubtype\relax%
 }
-\newcommand{\hep at panels@space}{20}
+\ProvideDocumentEnvironment{subcaptionblock}{O{b}m}{%
+  \caption at withoptargs\subcaption at minipage[#1]{#2}%
+}{\endminipage}
+\RequirePackage{calc}
+\RequirePackage{etoolbox}
+\newcommand{\panelhspace}{0.0333}
+\newcommand{\panelvspace}{.5\baselineskip}
 \newenvironment{panels}[2][b]{%
+  \addtolength{\belowcaptionskip}{\panelvspace}%
   \newcommand{\begin at subcaption@minipage}[2][b]{%
-    \caption at withoptargs\subcaption at minipage[##1]{##2}%
+    \subcaptionblock[##1]{##2}%
     \centering\vskip 0pt%
-  }
+  }%
   \ifdim#2pt>1pt%
-    \newcommand{\hep at panel@space}{%
-      (1-#2+\hep at panels@space)/\hep at panels@space%
-    }%
+    \newcommand{\hep at panel@space}{\panelhspace\linewidth/#2}%
     \newcommand{\panel}[1][b]{%
       \endminipage\hfill\begin at subcaption@minipage[#1]{%
-        \linewidth/#2*\hep at panel@space%
+        \linewidth/#2-\hep at panel@space%
       }%
     }%
-    \begin at subcaption@minipage[#1]{\linewidth/#2*\hep at panel@space}%
+    \begin at subcaption@minipage[#1]{\linewidth/#2-\hep at panel@space}%
   \else%
     \newcommand{\panel}[2][b]{%
-      \endminipage\hfill\begin at subcaption@minipage[#1]{##2\linewidth}%
+      \endminipage\hfill\begin at subcaption@minipage[#1]{%
+        ##2\linewidth-##2\linewidth*\real{\panelhspace}%
+      }%
     }%
-    \begin at subcaption@minipage[#1]{#2\linewidth}%
+    \begin at subcaption@minipage[#1]{%
+      #2\linewidth-#2\linewidth*\real{\panelhspace}%
+    }%
   \fi%
-}{\endminipage}
+}{
+\endsubcaptionblock
+\vspace{-\panelvspace}
+}
 \RequirePackage{booktabs}
 \RequirePackage{multirow}
 



More information about the tex-live-commits mailing list.