summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/hep-text/hep-text.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/hep-text/hep-text.sty')
-rw-r--r--Master/texmf-dist/tex/latex/hep-text/hep-text.sty45
1 files changed, 30 insertions, 15 deletions
diff --git a/Master/texmf-dist/tex/latex/hep-text/hep-text.sty b/Master/texmf-dist/tex/latex/hep-text/hep-text.sty
index 692f6244f99..ba774e7d899 100644
--- a/Master/texmf-dist/tex/latex/hep-text/hep-text.sty
+++ b/Master/texmf-dist/tex/latex/hep-text/hep-text.sty
@@ -16,7 +16,7 @@
%% LaTeX version 2005/12/01 or later.
\NeedsTeXFormat{LaTeX2e}[2005/12/01]
-\ProvidesPackage{hep-text}[2021/09/01 v1.0 Some text macros]
+\ProvidesPackage{hep-text}[2022/11/01 v1.1 Some text macros]
\RequirePackage{kvoptions}
\SetupKeyvalOptions{
@@ -25,8 +25,10 @@
}
\DeclareStringOption[british]{lang}
\ProcessKeyvalOptions*
-\RequirePackage[\heptext@lang]{babel}
-\RequirePackage[autostyle]{csquotes}
+\PassOptionsToPackage{\heptext@lang}{babel}
+\RequirePackage{babel}
+\PassOptionsToPackage{autostyle}{csquotes}
+\RequirePackage{csquotes}
\RequirePackage{soulutf8}
\let\underline\textul
\RequirePackage{pdftexcmds}
@@ -39,7 +41,9 @@
\newcommand{\heptext@lang@foreign}{british}
\fi
\fi
-\RequirePackage[all, \heptext@lang@foreign]{foreign}
+\PassOptionsToPackage{all, \heptext@lang@foreign}{foreign}
+\RequirePackage{foreign}
+\renewcommand\foreignabbrfont{}
\DeclareRobustCommand\vs{\xperiodafter{{\foreignabbrfont{vs}}}}
\xspaceaddexceptions{\csq@qclose@i}
\newcommand{\no}[1]{\textnumero~#1}
@@ -47,29 +51,40 @@
\newcommand{\software}[2][\hspace{-\fontdimen2\font}]{%
{\smaller[.5]\textsc{#2}~#1}%
}
+\RequirePackage{xparse}
+\NewExpandableDocumentCommand\hep@gobble@opt@arg{om}{#2}
+\AtBeginDocument{\@ifpackageloaded{hyperref}{%
+ \pdfstringdefDisableCommands{\let\software\hep@gobble@opt@arg}%
+}{}}
\providecommand{\online}[2]{\texttt{#2}}%
\providecommand{\hep@email}[1]{\online{mailto:#1}{#1}}
\providecommand\email{\hep@email}
\AtBeginDocument{\@ifpackageloaded{hyperref}{%
- \renewcommand{\online}[2]{\href{#1}{\nolinkurl{#2}}}%
- }{}
-}
+ \renewcommand{\online}[2]{\href{#1}{\nolinkurl{#2}}}%
+}{}}
\newcommand{\prefix}[2]{(#1\mbox{-)}\allowbreak #2}
-\RequirePackage[inline]{enumitem}
+\newcommand\subsubparagraph{%
+ \@tempskipa 3.25ex \@plus 1ex \@minus .2ex\relax%
+ \addpenalty\@secpenalty\addvspace\@tempskipa%
+ \everypar{\setbox\z@\lastbox\everypar{}}%
+}
+\PassOptionsToPackage{inline}{enumitem}
+\RequirePackage{enumitem}
\newlist{inlinelist}{enumerate*}{1}
\setlist*[inlinelist,1]{%
label=\roman*), itemjoin={,\ }, itemjoin*={, and\ }, after=.%
}
-\newlist{enum@descript}{enumerate}{2}
-\setlist[enum@descript]{label=\arabic*.}
+\newlist{enumdesc}{enumerate}{2}
+\setlist[enumdesc]{label=\arabic*.}
\newenvironment{enumdescript}[1][]{
-\begin{enum@descript}[#1]
+\begin{enumdesc}[#1]
\let\hep@item\item
- \renewcommand{\item}[2][]{
- \ifx&##1&\hep@item\else\hep@item[##1]\fi
- \textbf{##2}\ifx##2\empty\else~\fi\@ifnextchar\par\@gobble\relax
+ \renewcommand{\item}[2][]{%
+ \ifx&##1&\hep@item\else\hep@item[##1]\fi%
+ \textbf{##2}\ifx##2\empty\else\hspace{1em}\fi%
+ \@ifnextchar\par\@gobble\relax%
}
-}{\end{enum@descript}}
+}{\end{enumdesc}}
\endinput
%%