summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/hep-math
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2022-11-02 03:09:43 +0000
committerNorbert Preining <norbert@preining.info>2022-11-02 03:09:43 +0000
commit2281af8ba8fd52341e706f3979712f3280fcfdad (patch)
tree5e83a2779b732f03b430cf208b732ce611ee2cff /macros/latex/contrib/hep-math
parent7ad25021e74ea26e33d705fbb402d29aabaf6314 (diff)
CTAN sync 202211020309
Diffstat (limited to 'macros/latex/contrib/hep-math')
-rw-r--r--macros/latex/contrib/hep-math/bibliography.bib161
-rw-r--r--macros/latex/contrib/hep-math/hep-math-documentation.pdfbin324470 -> 358652 bytes
-rw-r--r--macros/latex/contrib/hep-math/hep-math-implementation.dtx80
-rw-r--r--macros/latex/contrib/hep-math/hep-math-implementation.pdfbin383065 -> 421232 bytes
4 files changed, 213 insertions, 28 deletions
diff --git a/macros/latex/contrib/hep-math/bibliography.bib b/macros/latex/contrib/hep-math/bibliography.bib
index e5117be3d5..5b217a2aad 100644
--- a/macros/latex/contrib/hep-math/bibliography.bib
+++ b/macros/latex/contrib/hep-math/bibliography.bib
@@ -21,7 +21,7 @@ subtitle = "An acronym extension for glossaries",
author = "Jan Hajer",
year = "2021",
eprinttype = "ctan",
-eprint = "hep-acronyms",
+eprint = "hep-acronym",
related = "hep-paper-1",
}
@@ -95,6 +95,24 @@ eprint = "hep-title",
related = "hep-paper-1",
}
+@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",
+}
+
+@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 @@ eprinttype = "ctan",
eprint = "soulutf8",
}
+@article{moderncv,
+title = "The |moderncv| package",
+subtitle = "A modern curriculum vitae class",
+author = "Xavier Danaux",
+year = "2006",
+eprinttype = "ctan",
+eprint = "moderncv",
+related = "moderncv-1",
+}
+
+@article{anyfontsize,
+title = "The |anyfontsize| package",
+subtitle = "Select any font size in \hologo{LaTeX}",
+author = "Péter Szabó",
+date = "2007",
+eprinttype = "ctan",
+eprint = "anyfontsize",
+}
+
+@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",
+}
+
+@article{dashrule,
+title = "The |dashrule| package",
+subtitle = "Draw dashed rules",
+author = "Scott Pakin",
+date = "2008",
+eprinttype = "ctan",
+eprint = "dashrule",
+}
+
+@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",
+}
+
+@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",
+}
+
+@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",
+}
+
+@manual{textpos-1,
+eprinttype = "bitbucket",
+eprintclass = "nxg",
+eprint = "textpos",
+}
+
+@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",
+}
+
+@manual{subfiles-1,
+eprinttype = "github",
+eprintclass = "gsalzer",
+eprint = "subfiles",
+}
+
+@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",
+}
+
+@manual{titlesec-1,
+eprinttype = "github",
+eprintclass = "jbezos",
+eprint = "titlesec",
+}
+
+@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",
+}
+
+@article{tabulary,
+title = "The |tabulary| package",
+subtitle = "Tabular with variable width columns balanced",
+author = "David Carlisle",
+year = "1995",
+eprinttype = "ctan",
+eprint = "tabulary",
+}
+
+@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",
+}
+
+@article{overlays,
+title = "The |overlays| package",
+subtitle = "Incremental slides",
+author = "Andreas Nolda",
+year = "2016",
+eprinttype = "ctan",
+eprint = "overlays",
+}
diff --git a/macros/latex/contrib/hep-math/hep-math-documentation.pdf b/macros/latex/contrib/hep-math/hep-math-documentation.pdf
index 4a3675a488..2d2e68648d 100644
--- a/macros/latex/contrib/hep-math/hep-math-documentation.pdf
+++ b/macros/latex/contrib/hep-math/hep-math-documentation.pdf
Binary files differ
diff --git a/macros/latex/contrib/hep-math/hep-math-implementation.dtx b/macros/latex/contrib/hep-math/hep-math-implementation.dtx
index 1d13d8196e..26b9c0ea5b 100644
--- a/macros/latex/contrib/hep-math/hep-math-implementation.dtx
+++ b/macros/latex/contrib/hep-math/hep-math-implementation.dtx
@@ -18,8 +18,8 @@
% \iffalse
%<package>\NeedsTeXFormat{LaTeX2e}[2005/12/01]
-%<package>\ProvidesPackage{hep-math}[2021/09/01 v1.0 Math and physics macros]
-%<documentation>\ProvidesFile{hep-math-documentation.tex}[2021/09/01 v1.0 hep-math documentation]
+%<package>\ProvidesPackage{hep-math}[2022/11/01 v1.1 Math and physics macros]
+%<documentation>\ProvidesFile{hep-math-documentation.tex}[2022/11/01 v1.1 hep-math documentation]
%
%<*documentation>
@@ -33,7 +33,7 @@
\CodelineIndex
\RecordChanges
-\usepackage[parskip]{hep-paper}
+\usepackage[parskip,oldstyle]{hep-paper}
\newenvironment{columns}[1][.5]{%
\par\vspace{-\bigskipamount}%
@@ -64,7 +64,7 @@
%
% \fi
%
-% \CheckSum{610}
+% \CheckSum{657}
%
% \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
@@ -83,6 +83,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>
@@ -92,7 +93,7 @@
\title{The \software{hep-math} package\thanks{This document corresponds to \software{hep-math}~\fileversion.}}
\subtitle{Extended math macros}
-\author{Jan Hajer \email{jan.hajer@unibas.ch}}
+\author{Jan Hajer \email{jan.hajer@tecnico.ulisboa.pt}}
\date{\filedate}
% \ifshort
@@ -257,10 +258,11 @@ $\mel xyz$ & $\ev x$ & $\ev[\Omega] x$ & $\vev x$
\DescribeMacro{\column}
\DescribeMacro{\row}
+Macros for row and column vectors are introduced together with a symbol for transpose vectors.
\begin{center}
\begin{tabular}{*4c}
-"\column{x,y,z}" & "\row{x,y,z}" \\
-$\column{x,y,z}$ & $\row{x,y,z}$ \\
+"\column{x,y,z}" & "\row{x,y,z}^\trans" \\
+$\column{x,y,z}$ & $\row{x,y,z}^\trans$ \\
\end{tabular}
\end{center}
@@ -416,6 +418,7 @@ As a rule of thumb if you have to use "\notag", "\nonumber", or perform manual s
% Adjust the thick and med mu skips slightly.
% \begin{macrocode}
\RequirePackage{mathtools}
+\mathtoolsset{centercolon}
\allowdisplaybreaks[1]
\thickmuskip=5mu plus 3mu minus 1mu
\medmuskip=4mu plus 2mu minus 3mu
@@ -426,9 +429,10 @@ As a rule of thumb if you have to use "\notag", "\nonumber", or perform manual s
% This macro is implemented using the \software{xparse} package \cite{xparse}.
% \begin{macrocode}
\RequirePackage{xparse}
-\DeclareDocumentCommand{\mathdef}{mO{0}m}{%
+\DeclareDocumentCommand{\mathdef}{mO{0}om}{%
\expandafter\let\csname hep@text\string#1\endcsname=#1
- \expandafter\newcommand\csname hep@math\string#1\endcsname[#2]{#3}
+ \expandafter\newcommand\csname hep@math\string#1%
+ \IfNoValueTF{#3}{\endcsname[#2]}{\endcsname[#2][#3]}{#4}
\DeclareRobustCommand#1{%
\ifmmode
\expandafter\let\expandafter\next\csname%
@@ -460,6 +464,13 @@ As a rule of thumb if you have to use "\notag", "\nonumber", or perform manual s
\let\overline\textoverline
\DeclareRobustCommand{\over@line}[1]{\@@overline{#1}}
\mathdef{\overline}{\over@line}
+\newcommand\hep@widebar[1]{%
+ \mkern2.5mu\overline{\mkern-2.5mu#1\mkern-.5mu}\mkern.5mu%
+}
+\newcommand\widebar[1]{%
+ \settowidth{\dimen0}{\ensuremath{#1}}%
+ \ifdim\dimen0>.475em\hep@widebar{#1}\else\bar{#1}\fi%
+}
% \end{macrocode}
% \end{macro}
%
@@ -537,6 +548,7 @@ As a rule of thumb if you have to use "\notag", "\nonumber", or perform manual s
% \begin{macro}{\trans}
% Define a transpose symbol.
% \begin{macrocode}
+\RequirePackage{amssymb}
\newcommand*{\hep@transpose}[2]{\raisebox{\depth}{$\m@th#1\intercal$}}
\newcommand*{\transpose}{{\mathpalette\hep@transpose{}}}
\let\trans\transpose
@@ -627,15 +639,17 @@ As a rule of thumb if you have to use "\notag", "\nonumber", or perform manual s
% Provide a flat fraction.
% \begin{macrocode}
\DeclarePairedDelimiterX{\hep@flatfrac}[2]{.}{.}{%
- #1\delimsize/\hep@left@delim#2%
+ \kern-\nulldelimiterspace#1\delimsize/\hep@left@delim#2\kern-\nulldelimiterspace%
}
\NewDocumentCommand{\flatfrac}{somm}{%
- \IfBooleanTF{#1}{%
- \hep@flatfrac*{#3}{#4}%
- }{%
- \IfNoValueTF{#2}{\,\hep@left@delim#3/\hep@left@delim#4\,%
+ \mathop{
+ \IfBooleanTF{#1}{%
+ \hep@flatfrac*{#3}{#4}%
}{%
- \hep@flatfrac[#2]{#3}{#4}%
+ \IfNoValueTF{#2}{\hep@left@delim#3/\hep@left@delim#4%
+ }{%
+ \hep@flatfrac[#2]{#3}{#4}%
+ }%
}%
}%
}
@@ -775,6 +789,7 @@ As a rule of thumb if you have to use "\notag", "\nonumber", or perform manual s
% \begin{macrocode}
\RequirePackage{cancel}
\RequirePackage{slashed}
+\declareslashed{}{/}{.14}{0}{L}
\declareslashed{}{/}{.06}{0}{\D}
\declareslashed{}{/}{.055}{0}{\pd}
% \end{macrocode}
@@ -795,8 +810,9 @@ As a rule of thumb if you have to use "\notag", "\nonumber", or perform manual s
%
% \begin{macro}{\noargumentsymbol}
% \begin{macro}{\optionalargument}
-% Allow for macros to have an empty argument.
+% Allow for macros to have an empty argument using the \software{etoolbox} package \cite{etoolbox}.
% \begin{macrocode}
+\RequirePackage{etoolbox}
\newcommand{\noargumentsymbol}{\:\cdot\:}
\newcommand{\optionalargument}[1]{\ifblank{#1}{\noargumentsymbol}{#1}}
% \end{macrocode}
@@ -805,7 +821,6 @@ As a rule of thumb if you have to use "\notag", "\nonumber", or perform manual s
%
% \begin{macro}{\abs}
% \begin{macro}{\norm}
-% \begin{macro}{\pnorm}
% Absolute value and norm.
% \begin{macrocode}
\DeclarePairedDelimiterX\abs[1]\lvert\rvert{\optionalargument{#1}}
@@ -821,7 +836,6 @@ As a rule of thumb if you have to use "\notag", "\nonumber", or perform manual s
% \end{macrocode}
% \end{macro}
% \end{macro}
-% \end{macro}
% \begin{macro}{\ordersymbol}
% \begin{macro}{\order}
@@ -867,7 +881,8 @@ As a rule of thumb if you have to use "\notag", "\nonumber", or perform manual s
\ExplSyntaxOff
\DeclarePairedDelimiterX{\row}[1]{(}{)}{\hep@row{#1}}
\NewDocumentCommand{\column}{me{^}e{_}}{%
- \left(\hep@column{#1}\right)\IfValueT{#2}{^{\!\!\!#2}}\IfValueT{#3}{_{\!\!\!#3}}%
+ \left(\hep@column{#1}\right)%
+ \IfValueT{#2}{^{\!\!\!#2}}\IfValueT{#3}{_{\!\!\!#3}}%
}
% \end{macrocode}
% \end{macro}
@@ -885,6 +900,15 @@ As a rule of thumb if you have to use "\notag", "\nonumber", or perform manual s
% \end{macrocode}
% \end{macro}
+% Check if "nfssect-cfr" is loaeded and patch the global "\set" macro into the "cfr" namespace
+% \begin{macrocode}
+\RequirePackage{xpatch}
+\@ifundefined{exfs@merge@families}{}{%
+ \xpatchcmd{\exfs@merge@families}{\set}{\cfr@set}{}{}%
+ \xpatchcmd{\exfs@merge@families}{\set}{\cfr@set}{}{}%
+ \xpatchcmd{\exfs@merge@families}{\set}{\cfr@set}{}{}%
+}%
+% \end{macrocode}
% \begin{macro}{\suchthat}
% \begin{macro}{\set}
% Define a "\set" macro that allows a midbar via "\suchthat".
@@ -971,9 +995,11 @@ As a rule of thumb if you have to use "\notag", "\nonumber", or perform manual s
% \begin{macro}{\braketspace}
% Define the space within braket notation.
% \begin{macrocode}
-\providecommand\braketspace{\mskip1mu}
+% \providecommand\braketspace{\mskip1mu}
+\providecommand\braketouterspace{\mskip1mu}
+\providecommand\braketinnerspace{\mskip3mu}
\newcommand\hep@midvert{%
- \braketspace\delimsize\vert\braketspace\hep@left@delim%
+ \braketinnerspace\delimsize\vert\braketinnerspace\hep@left@delim%
}
% \end{macrocode}
% \end{macro}
@@ -982,7 +1008,7 @@ As a rule of thumb if you have to use "\notag", "\nonumber", or perform manual s
% Define the braket macro.
% \begin{macrocode}
\DeclarePairedDelimiterX\braket[2]{\langle}{\rangle}{%
- \braketspace#1\hep@midvert#2\braketspace%
+ \braketouterspace#1\hep@midvert#2\braketouterspace%
}
% \end{macrocode}
% \end{macro}
@@ -991,7 +1017,7 @@ As a rule of thumb if you have to use "\notag", "\nonumber", or perform manual s
% Define the bra macro.
% \begin{macrocode}
\DeclarePairedDelimiterXPP\hep@bra[1]{%
- }{\langle}{\rvert}{\braketspace}{\braketspace#1\braketspace%
+ }{\langle}{\rvert}{\braketinnerspace}{\braketouterspace#1\braketinnerspace%
}
\NewDocumentCommand{\bra}{smt\ket sgt\ketbra sgg}{%
\IfBooleanTF{#6}{%
@@ -1014,9 +1040,9 @@ As a rule of thumb if you have to use "\notag", "\nonumber", or perform manual s
% Define the ket macro.
% \begin{macrocode}
\DeclarePairedDelimiterXPP\ket[1]{%
- \braketspace}{\lvert}{\rangle}{%
+ \braketinnerspace}{\lvert}{\rangle}{%
}{%
- \braketspace\hep@left@delim#1\braketspace%
+ \braketinnerspace\hep@left@delim#1\braketouterspace%
}
% \end{macrocode}
% \end{macro}
@@ -1041,7 +1067,7 @@ As a rule of thumb if you have to use "\notag", "\nonumber", or perform manual s
\DeclarePairedDelimiterX\matrixelement[3]{%
\langle}{\rangle
}{%
- \braketspace#1\hep@midvert#2\hep@midvert#3\braketspace%
+ \braketouterspace#1\hep@midvert#2\hep@midvert#3\braketouterspace%
}
\newcommand\matrixel{\matrixelement}
\newcommand\mel{\matrixelement}
@@ -1055,7 +1081,7 @@ As a rule of thumb if you have to use "\notag", "\nonumber", or perform manual s
% Define the expectationvalue and vev macros.
% \begin{macrocode}
\DeclarePairedDelimiterX\hep@expvalue[1]{\langle}{\rangle}{%
- \braketspace#1\braketspace%
+ \braketouterspace#1\braketouterspace%
}
\NewDocumentCommand{\expectationvalue}{som}{%
\IfNoValueTF{#2}{%
diff --git a/macros/latex/contrib/hep-math/hep-math-implementation.pdf b/macros/latex/contrib/hep-math/hep-math-implementation.pdf
index 5ad2837b74..c0c8a6e6c8 100644
--- a/macros/latex/contrib/hep-math/hep-math-implementation.pdf
+++ b/macros/latex/contrib/hep-math/hep-math-implementation.pdf
Binary files differ