summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/hep-text
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2021-11-27 21:25:10 +0000
committerKarl Berry <karl@freefriends.org>2021-11-27 21:25:10 +0000
commit271ee2d07917dcd8566fbdb30ef2642d0a33d88e (patch)
tree45a6cfe932d7b5fb5fab5e00bbcc7f9be1199744 /Master/texmf-dist/tex/latex/hep-text
parent6311dfbf83eb2863ae6338376a9c2b3933fdf993 (diff)
hep-text (27nov21)
git-svn-id: svn://tug.org/texlive/trunk@61172 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/hep-text')
-rw-r--r--Master/texmf-dist/tex/latex/hep-text/hep-text.sty76
1 files changed, 76 insertions, 0 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
new file mode 100644
index 00000000000..692f6244f99
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/hep-text/hep-text.sty
@@ -0,0 +1,76 @@
+%%
+%% This is file `hep-text.sty',
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% hep-text-implementation.dtx (with options: `package')
+%% This is a generated file.
+%% Copyright (C) 2019-2020 by Jan Hajer
+%% This file may be distributed and/or modified under the
+%% conditions of the LaTeX Project Public License, either
+%% version 1.3c of this license or (at your option) any later
+%% version. The latest version of this license is in:
+%% http://www.latex-project.org/lppl.txt
+%% and version 1.3c or later is part of all distributions of
+%% LaTeX version 2005/12/01 or later.
+
+\NeedsTeXFormat{LaTeX2e}[2005/12/01]
+\ProvidesPackage{hep-text}[2021/09/01 v1.0 Some text macros]
+
+\RequirePackage{kvoptions}
+\SetupKeyvalOptions{
+ family=heptext,
+ prefix=heptext@
+}
+\DeclareStringOption[british]{lang}
+\ProcessKeyvalOptions*
+\RequirePackage[\heptext@lang]{babel}
+\RequirePackage[autostyle]{csquotes}
+\RequirePackage{soulutf8}
+\let\underline\textul
+\RequirePackage{pdftexcmds}
+\ifnum\pdf@strcmp{\heptext@lang}{american}=0
+ \newcommand{\heptext@lang@foreign}{USenglish}
+\else
+ \ifnum\pdf@strcmp{\heptext@lang}{USenglish}=0
+ \newcommand{\heptext@lang@foreign}{USenglish}
+ \else
+ \newcommand{\heptext@lang@foreign}{british}
+ \fi
+\fi
+\RequirePackage[all, \heptext@lang@foreign]{foreign}
+\DeclareRobustCommand\vs{\xperiodafter{{\foreignabbrfont{vs}}}}
+\xspaceaddexceptions{\csq@qclose@i}
+\newcommand{\no}[1]{\textnumero~#1}
+\RequirePackage{relsize}
+\newcommand{\software}[2][\hspace{-\fontdimen2\font}]{%
+ {\smaller[.5]\textsc{#2}~#1}%
+}
+\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}}}%
+ }{}
+}
+\newcommand{\prefix}[2]{(#1\mbox{-)}\allowbreak #2}
+\RequirePackage[inline]{enumitem}
+\newlist{inlinelist}{enumerate*}{1}
+\setlist*[inlinelist,1]{%
+ label=\roman*), itemjoin={,\ }, itemjoin*={, and\ }, after=.%
+}
+\newlist{enum@descript}{enumerate}{2}
+\setlist[enum@descript]{label=\arabic*.}
+\newenvironment{enumdescript}[1][]{
+\begin{enum@descript}[#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
+ }
+}{\end{enum@descript}}
+
+\endinput
+%%
+%% End of file `hep-text.sty'.