blob: ba774e7d8994bc07d9f76bbd8ceda4ca80b082a7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
|
%%
%% 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}[2022/11/01 v1.1 Some text macros]
\RequirePackage{kvoptions}
\SetupKeyvalOptions{
family=heptext,
prefix=heptext@
}
\DeclareStringOption[british]{lang}
\ProcessKeyvalOptions*
\PassOptionsToPackage{\heptext@lang}{babel}
\RequirePackage{babel}
\PassOptionsToPackage{autostyle}{csquotes}
\RequirePackage{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
\PassOptionsToPackage{all, \heptext@lang@foreign}{foreign}
\RequirePackage{foreign}
\renewcommand\foreignabbrfont{}
\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}%
}
\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}}}%
}{}}
\newcommand{\prefix}[2]{(#1\mbox{-)}\allowbreak #2}
\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{enumdesc}{enumerate}{2}
\setlist[enumdesc]{label=\arabic*.}
\newenvironment{enumdescript}[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\hspace{1em}\fi%
\@ifnextchar\par\@gobble\relax%
}
}{\end{enumdesc}}
\endinput
%%
%% End of file `hep-text.sty'.
|