texlive[64905] Master/texmf-dist: hep-math (2nov22)
commits+karl at tug.org
commits+karl at tug.org
Wed Nov 2 23:05:31 CET 2022
Revision: 64905
http://tug.org/svn/texlive?view=revision&revision=64905
Author: karl
Date: 2022-11-02 23:05:31 +0100 (Wed, 02 Nov 2022)
Log Message:
-----------
hep-math (2nov22)
Modified Paths:
--------------
trunk/Master/texmf-dist/doc/latex/hep-math/bibliography.bib
trunk/Master/texmf-dist/doc/latex/hep-math/hep-math-documentation.pdf
trunk/Master/texmf-dist/doc/latex/hep-math/hep-math-documentation.tex
trunk/Master/texmf-dist/doc/latex/hep-math/hep-math-implementation.pdf
trunk/Master/texmf-dist/source/latex/hep-math/hep-math-implementation.dtx
trunk/Master/texmf-dist/tex/latex/hep-math/hep-math.sty
Modified: trunk/Master/texmf-dist/doc/latex/hep-math/bibliography.bib
===================================================================
--- trunk/Master/texmf-dist/doc/latex/hep-math/bibliography.bib 2022-11-02 22:05:11 UTC (rev 64904)
+++ trunk/Master/texmf-dist/doc/latex/hep-math/bibliography.bib 2022-11-02 22:05:31 UTC (rev 64905)
@@ -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-math/hep-math-documentation.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/doc/latex/hep-math/hep-math-documentation.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/hep-math/hep-math-documentation.tex 2022-11-02 22:05:11 UTC (rev 64904)
+++ trunk/Master/texmf-dist/doc/latex/hep-math/hep-math-documentation.tex 2022-11-02 22:05:31 UTC (rev 64905)
@@ -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-math-documentation.tex}[2021/09/01 v1.0 hep-math documentation]
+\ProvidesFile{hep-math-documentation.tex}[2022/11/01 v1.1 hep-math documentation]
\RequirePackage[l2tabu, orthodox]{nag}
@@ -27,7 +27,7 @@
\CodelineIndex
\RecordChanges
-\usepackage[parskip]{hep-paper}
+\usepackage[parskip,oldstyle]{hep-paper}
\newenvironment{columns}[1][.5]{%
\par\vspace{-\bigskipamount}%
@@ -51,7 +51,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 at unibas.ch}}
+\author{Jan Hajer \email{jan.hajer at tecnico.ulisboa.pt}}
\date{\filedate}
\begin{document}
@@ -214,10 +214,11 @@
\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}
Modified: trunk/Master/texmf-dist/doc/latex/hep-math/hep-math-implementation.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/source/latex/hep-math/hep-math-implementation.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/hep-math/hep-math-implementation.dtx 2022-11-02 22:05:11 UTC (rev 64904)
+++ trunk/Master/texmf-dist/source/latex/hep-math/hep-math-implementation.dtx 2022-11-02 22:05:31 UTC (rev 64905)
@@ -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 at unibas.ch}}
+\author{Jan Hajer \email{jan.hajer at tecnico.ulisboa.pt}}
\date{\filedate}
% \ifshort
@@ -257,10 +258,11 @@
\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 @@
% 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 @@
% 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 at text\string#1\endcsname=#1
- \expandafter\newcommand\csname hep at math\string#1\endcsname[#2]{#3}
+ \expandafter\newcommand\csname hep at math\string#1%
+ \IfNoValueTF{#3}{\endcsname[#2]}{\endcsname[#2][#3]}{#4}
\DeclareRobustCommand#1{%
\ifmmode
\expandafter\let\expandafter\next\csname%
@@ -460,6 +464,13 @@
\let\overline\textoverline
\DeclareRobustCommand{\over at line}[1]{\@@overline{#1}}
\mathdef{\overline}{\over at line}
+\newcommand\hep at widebar[1]{%
+ \mkern2.5mu\overline{\mkern-2.5mu#1\mkern-.5mu}\mkern.5mu%
+}
+\newcommand\widebar[1]{%
+ \settowidth{\dimen0}{\ensuremath{#1}}%
+ \ifdim\dimen0>.475em\hep at widebar{#1}\else\bar{#1}\fi%
+}
% \end{macrocode}
% \end{macro}
%
@@ -537,6 +548,7 @@
% \begin{macro}{\trans}
% Define a transpose symbol.
% \begin{macrocode}
+\RequirePackage{amssymb}
\newcommand*{\hep at transpose}[2]{\raisebox{\depth}{$\m at th#1\intercal$}}
\newcommand*{\transpose}{{\mathpalette\hep at transpose{}}}
\let\trans\transpose
@@ -627,15 +639,17 @@
% Provide a flat fraction.
% \begin{macrocode}
\DeclarePairedDelimiterX{\hep at flatfrac}[2]{.}{.}{%
- #1\delimsize/\hep at left@delim#2%
+ \kern-\nulldelimiterspace#1\delimsize/\hep at left@delim#2\kern-\nulldelimiterspace%
}
\NewDocumentCommand{\flatfrac}{somm}{%
- \IfBooleanTF{#1}{%
- \hep at flatfrac*{#3}{#4}%
- }{%
- \IfNoValueTF{#2}{\,\hep at left@delim#3/\hep at left@delim#4\,%
+ \mathop{
+ \IfBooleanTF{#1}{%
+ \hep at flatfrac*{#3}{#4}%
}{%
- \hep at flatfrac[#2]{#3}{#4}%
+ \IfNoValueTF{#2}{\hep at left@delim#3/\hep at left@delim#4%
+ }{%
+ \hep at flatfrac[#2]{#3}{#4}%
+ }%
}%
}%
}
@@ -775,6 +789,7 @@
% \begin{macrocode}
\RequirePackage{cancel}
\RequirePackage{slashed}
+\declareslashed{}{/}{.14}{0}{L}
\declareslashed{}{/}{.06}{0}{\D}
\declareslashed{}{/}{.055}{0}{\pd}
% \end{macrocode}
@@ -795,8 +810,9 @@
%
% \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 @@
%
% \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 @@
% \end{macrocode}
% \end{macro}
% \end{macro}
-% \end{macro}
% \begin{macro}{\ordersymbol}
% \begin{macro}{\order}
@@ -867,7 +881,8 @@
\ExplSyntaxOff
\DeclarePairedDelimiterX{\row}[1]{(}{)}{\hep at row{#1}}
\NewDocumentCommand{\column}{me{^}e{_}}{%
- \left(\hep at column{#1}\right)\IfValueT{#2}{^{\!\!\!#2}}\IfValueT{#3}{_{\!\!\!#3}}%
+ \left(\hep at column{#1}\right)%
+ \IfValueT{#2}{^{\!\!\!#2}}\IfValueT{#3}{_{\!\!\!#3}}%
}
% \end{macrocode}
% \end{macro}
@@ -885,6 +900,15 @@
% \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 at merge@families}{}{%
+ \xpatchcmd{\exfs at merge@families}{\set}{\cfr at set}{}{}%
+ \xpatchcmd{\exfs at merge@families}{\set}{\cfr at set}{}{}%
+ \xpatchcmd{\exfs at merge@families}{\set}{\cfr at set}{}{}%
+}%
+% \end{macrocode}
% \begin{macro}{\suchthat}
% \begin{macro}{\set}
% Define a "\set" macro that allows a midbar via "\suchthat".
@@ -971,9 +995,11 @@
% \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 at midvert{%
- \braketspace\delimsize\vert\braketspace\hep at left@delim%
+ \braketinnerspace\delimsize\vert\braketinnerspace\hep at left@delim%
}
% \end{macrocode}
% \end{macro}
@@ -982,7 +1008,7 @@
% Define the braket macro.
% \begin{macrocode}
\DeclarePairedDelimiterX\braket[2]{\langle}{\rangle}{%
- \braketspace#1\hep at midvert#2\braketspace%
+ \braketouterspace#1\hep at midvert#2\braketouterspace%
}
% \end{macrocode}
% \end{macro}
@@ -991,7 +1017,7 @@
% Define the bra macro.
% \begin{macrocode}
\DeclarePairedDelimiterXPP\hep at 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 @@
% Define the ket macro.
% \begin{macrocode}
\DeclarePairedDelimiterXPP\ket[1]{%
- \braketspace}{\lvert}{\rangle}{%
+ \braketinnerspace}{\lvert}{\rangle}{%
}{%
- \braketspace\hep at left@delim#1\braketspace%
+ \braketinnerspace\hep at left@delim#1\braketouterspace%
}
% \end{macrocode}
% \end{macro}
@@ -1041,7 +1067,7 @@
\DeclarePairedDelimiterX\matrixelement[3]{%
\langle}{\rangle
}{%
- \braketspace#1\hep at midvert#2\hep at midvert#3\braketspace%
+ \braketouterspace#1\hep at midvert#2\hep at midvert#3\braketouterspace%
}
\newcommand\matrixel{\matrixelement}
\newcommand\mel{\matrixelement}
@@ -1055,7 +1081,7 @@
% Define the expectationvalue and vev macros.
% \begin{macrocode}
\DeclarePairedDelimiterX\hep at expvalue[1]{\langle}{\rangle}{%
- \braketspace#1\braketspace%
+ \braketouterspace#1\braketouterspace%
}
\NewDocumentCommand{\expectationvalue}{som}{%
\IfNoValueTF{#2}{%
Modified: trunk/Master/texmf-dist/tex/latex/hep-math/hep-math.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/hep-math/hep-math.sty 2022-11-02 22:05:11 UTC (rev 64904)
+++ trunk/Master/texmf-dist/tex/latex/hep-math/hep-math.sty 2022-11-02 22:05:31 UTC (rev 64905)
@@ -16,16 +16,18 @@
%% LaTeX version 2005/12/01 or later.
\NeedsTeXFormat{LaTeX2e}[2005/12/01]
-\ProvidesPackage{hep-math}[2021/09/01 v1.0 Math and physics macros]
+\ProvidesPackage{hep-math}[2022/11/01 v1.1 Math and physics macros]
\RequirePackage{mathtools}
+\mathtoolsset{centercolon}
\allowdisplaybreaks[1]
\thickmuskip=5mu plus 3mu minus 1mu
\medmuskip=4mu plus 2mu minus 3mu
\RequirePackage{xparse}
-\DeclareDocumentCommand{\mathdef}{mO{0}m}{%
+\DeclareDocumentCommand{\mathdef}{mO{0}om}{%
\expandafter\let\csname hep at text\string#1\endcsname=#1
- \expandafter\newcommand\csname hep at math\string#1\endcsname[#2]{#3}
+ \expandafter\newcommand\csname hep at math\string#1%
+ \IfNoValueTF{#3}{\endcsname[#2]}{\endcsname[#2][#3]}{#4}
\DeclareRobustCommand#1{%
\ifmmode
\expandafter\let\expandafter\next\csname%
@@ -43,6 +45,13 @@
\let\overline\textoverline
\DeclareRobustCommand{\over at line}[1]{\@@overline{#1}}
\mathdef{\overline}{\over at line}
+\newcommand\hep at widebar[1]{%
+ \mkern2.5mu\overline{\mkern-2.5mu#1\mkern-.5mu}\mkern.5mu%
+}
+\newcommand\widebar[1]{%
+ \settowidth{\dimen0}{\ensuremath{#1}}%
+ \ifdim\dimen0>.475em\hep at widebar{#1}\else\bar{#1}\fi%
+}
\newcommand{\oset}[3][-1pt]{%
\text{\raisebox{.2ex}{$\mathop{#3}\limits^{%
\vbox to#1{\kern-2\ex@\hbox{$\scriptscriptstyle#2$}\vss}%
@@ -63,6 +72,7 @@
\let\Re\relax\DeclareMathOperator{\Re}{Re}
\let\Im\relax\DeclareMathOperator{\Im}{Im}
+\RequirePackage{amssymb}
\newcommand*{\hep at transpose}[2]{\raisebox{\depth}{$\m at th#1\intercal$}}
\newcommand*{\transpose}{{\mathpalette\hep at transpose{}}}
\let\trans\transpose
@@ -84,15 +94,17 @@
\newcommand{\inv}[2][1]{#2\ensuremath{^{-#1}}}
\newcommand{\textfrac}[2]{\ensuremath{\nicefrac{\text{#1}}{\text{#2}}}}
\DeclarePairedDelimiterX{\hep at flatfrac}[2]{.}{.}{%
- #1\delimsize/\hep at left@delim#2%
+ \kern-\nulldelimiterspace#1\delimsize/\hep at left@delim#2\kern-\nulldelimiterspace%
}
\NewDocumentCommand{\flatfrac}{somm}{%
- \IfBooleanTF{#1}{%
- \hep at flatfrac*{#3}{#4}%
- }{%
- \IfNoValueTF{#2}{\,\hep at left@delim#3/\hep at left@delim#4\,%
+ \mathop{
+ \IfBooleanTF{#1}{%
+ \hep at flatfrac*{#3}{#4}%
}{%
- \hep at flatfrac[#2]{#3}{#4}%
+ \IfNoValueTF{#2}{\hep at left@delim#3/\hep at left@delim#4%
+ }{%
+ \hep at flatfrac[#2]{#3}{#4}%
+ }%
}%
}%
}
@@ -149,10 +161,12 @@
\newcommand\fdv{\functionalderivative}
\RequirePackage{cancel}
\RequirePackage{slashed}
+\declareslashed{}{/}{.14}{0}{L}
\declareslashed{}{/}{.06}{0}{\D}
\declareslashed{}{/}{.055}{0}{\pd}
\RequirePackage{mleftright}
\mleftright
+\RequirePackage{etoolbox}
\newcommand{\noargumentsymbol}{\:\cdot\:}
\newcommand{\optionalargument}[1]{\ifblank{#1}{\noargumentsymbol}{#1}}
\DeclarePairedDelimiterX\abs[1]\lvert\rvert{\optionalargument{#1}}
@@ -192,7 +206,8 @@
\ExplSyntaxOff
\DeclarePairedDelimiterX{\row}[1]{(}{)}{\hep at row{#1}}
\NewDocumentCommand{\column}{me{^}e{_}}{%
- \left(\hep at column{#1}\right)\IfValueT{#2}{^{\!\!\!#2}}\IfValueT{#3}{_{\!\!\!#3}}%
+ \left(\hep at column{#1}\right)%
+ \IfValueT{#2}{^{\!\!\!#2}}\IfValueT{#3}{_{\!\!\!#3}}%
}
\newcommand\hep at left@delim{\mathopen{}}
@@ -200,6 +215,12 @@
\nonscript\:#1\vert\allowbreak\nonscript\:\hep at left@delim%
}
+\RequirePackage{xpatch}
+\@ifundefined{exfs at merge@families}{}{%
+ \xpatchcmd{\exfs at merge@families}{\set}{\cfr at set}{}{}%
+ \xpatchcmd{\exfs at merge@families}{\set}{\cfr at set}{}{}%
+ \xpatchcmd{\exfs at merge@families}{\set}{\cfr at set}{}{}%
+}%
\providecommand\suchthat{\midbar}
\DeclarePairedDelimiterX\set[1]\{\}{%
\renewcommand\suchthat{\midbar[\delimsize]}#1%
@@ -239,16 +260,17 @@
\newcommand\pb{\poissonbracket}
\newcommand\comm{\commutator}
\newcommand\acomm{\poissonbracket}
-\providecommand\braketspace{\mskip1mu}
+\providecommand\braketouterspace{\mskip1mu}
+\providecommand\braketinnerspace{\mskip3mu}
\newcommand\hep at midvert{%
- \braketspace\delimsize\vert\braketspace\hep at left@delim%
+ \braketinnerspace\delimsize\vert\braketinnerspace\hep at left@delim%
}
\DeclarePairedDelimiterX\braket[2]{\langle}{\rangle}{%
- \braketspace#1\hep at midvert#2\braketspace%
+ \braketouterspace#1\hep at midvert#2\braketouterspace%
}
\DeclarePairedDelimiterXPP\hep at bra[1]{%
- }{\langle}{\rvert}{\braketspace}{\braketspace#1\braketspace%
+ }{\langle}{\rvert}{\braketinnerspace}{\braketouterspace#1\braketinnerspace%
}
\NewDocumentCommand{\bra}{smt\ket sgt\ketbra sgg}{%
\IfBooleanTF{#6}{%
@@ -266,9 +288,9 @@
}
\DeclarePairedDelimiterXPP\ket[1]{%
- \braketspace}{\lvert}{\rangle}{%
+ \braketinnerspace}{\lvert}{\rangle}{%
}{%
- \braketspace\hep at left@delim#1\braketspace%
+ \braketinnerspace\hep at left@delim#1\braketouterspace%
}
\NewDocumentCommand{\ketbra}{smm}{%
@@ -282,13 +304,13 @@
\DeclarePairedDelimiterX\matrixelement[3]{%
\langle}{\rangle
}{%
- \braketspace#1\hep at midvert#2\hep at midvert#3\braketspace%
+ \braketouterspace#1\hep at midvert#2\hep at midvert#3\braketouterspace%
}
\newcommand\matrixel{\matrixelement}
\newcommand\mel{\matrixelement}
\DeclarePairedDelimiterX\hep at expvalue[1]{\langle}{\rangle}{%
- \braketspace#1\braketspace%
+ \braketouterspace#1\braketouterspace%
}
\NewDocumentCommand{\expectationvalue}{som}{%
\IfNoValueTF{#2}{%
More information about the tex-live-commits
mailing list.