summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/hep-paper/hep-acronyms.sty
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2021-08-10 21:13:53 +0000
committerKarl Berry <karl@freefriends.org>2021-08-10 21:13:53 +0000
commit3eff08c9b4df299d023edbd474eb63b5d586baec (patch)
treeefa1eb15f40f9feff0798e077fb6730f21889ff4 /Master/texmf-dist/tex/latex/hep-paper/hep-acronyms.sty
parent90aa3f51059655d86adb9f9f4b0286f883972949 (diff)
hep-paper (10aug21)
git-svn-id: svn://tug.org/texlive/trunk@60213 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/hep-paper/hep-acronyms.sty')
-rw-r--r--Master/texmf-dist/tex/latex/hep-paper/hep-acronyms.sty14
1 files changed, 8 insertions, 6 deletions
diff --git a/Master/texmf-dist/tex/latex/hep-paper/hep-acronyms.sty b/Master/texmf-dist/tex/latex/hep-paper/hep-acronyms.sty
index a7b9da527ed..0170fc31d0f 100644
--- a/Master/texmf-dist/tex/latex/hep-paper/hep-acronyms.sty
+++ b/Master/texmf-dist/tex/latex/hep-paper/hep-acronyms.sty
@@ -16,17 +16,19 @@
%% LaTeX version 2005/12/01 or later.
\NeedsTeXFormat{LaTeX2e}[2005/12/01]
-\ProvidesPackage{hep-acronyms}[2021/06/01 v1.7 Acronym macros for publications in High Energy Physics]
+\ProvidesPackage{hep-acronyms}[2021/08/01 v1.8 Acronym macros for publications in High Energy Physics]
\RequirePackage{xparse}
\DeclareDocumentCommand{\mathdef}{mO{0}m}{%
- \expandafter\let\csname text\string#1\endcsname=#1
- \expandafter\newcommand\csname math\string#1\endcsname[#2]{#3}
+ \expandafter\let\csname hep@text\string#1\endcsname=#1
+ \expandafter\newcommand\csname hep@math\string#1\endcsname[#2]{#3}
\DeclareRobustCommand#1{%
\ifmmode
- \expandafter\let\expandafter\next\csname math\string#1\endcsname
+ \expandafter\let\expandafter\next\csname%
+ hep@math\string#1\endcsname%
\else
- \expandafter\let\expandafter\next\csname text\string#1\endcsname
+ \expandafter\let\expandafter\next\csname%
+ hep@text\string#1\endcsname%
\fi
\next
}%
@@ -70,7 +72,7 @@
test {\ifnumcomp{\spacefactor}{=}{\begin@sentence}}%
}{#1}{#2}%
}}
-\usepackage{xspace}
+\RequirePackage{xspace}
\NewDocumentCommand{\acronym}{somsmo}{
\newabbreviation[
type=\acronymtype,