| 1 |
%% |
| 2 |
%% This is file `holtxdoc.sty', |
| 3 |
%% generated with the docstrip utility. |
| 4 |
%% |
| 5 |
%% The original source files were: |
| 6 |
%% |
| 7 |
%% holtxdoc.dtx (with options: `package') |
| 8 |
%% |
| 9 |
%% This is a generated file. |
| 10 |
%% |
| 11 |
%% Project: holtxdoc |
| 12 |
%% Version: 2019/12/09 v0.30 |
| 13 |
%% |
| 14 |
%% Copyright (C) |
| 15 |
%% 1999-2012 Heiko Oberdiek |
| 16 |
%% 2016-2019 Oberdiek Package Support Group |
| 17 |
%% |
| 18 |
%% This work may be distributed and/or modified under the |
| 19 |
%% conditions of the LaTeX Project Public License, either |
| 20 |
%% version 1.3c of this license or (at your option) any later |
| 21 |
%% version. This version of this license is in |
| 22 |
%% https://www.latex-project.org/lppl/lppl-1-3c.txt |
| 23 |
%% and the latest version of this license is in |
| 24 |
%% https://www.latex-project.org/lppl.txt |
| 25 |
%% and version 1.3 or later is part of all distributions of |
| 26 |
%% LaTeX version 2005/12/01 or later. |
| 27 |
%% |
| 28 |
%% This work has the LPPL maintenance status "maintained". |
| 29 |
%% |
| 30 |
%% The Current Maintainers of this work are |
| 31 |
%% Heiko Oberdiek and the Oberdiek Package Support Group |
| 32 |
%% https://github.com/ho-tex/oberdiek/issues |
| 33 |
%% |
| 34 |
%% |
| 35 |
%% This work consists of the main source file holtxdoc.dtx |
| 36 |
%% and the derived files |
| 37 |
%% holtxdoc.sty, holtxdoc.pdf, holtxdoc.ins, holtxdoc.drv. |
| 38 |
%% |
| 39 |
\NeedsTeXFormat{LaTeX2e} |
| 40 |
\ProvidesPackage{holtxdoc}% |
| 41 |
[2019/12/09 v0.30 Private additional ltxdoc support (HO)] |
| 42 |
\PassOptionsToPackage{pdfencoding=auto}{hyperref} |
| 43 |
\RequirePackage[numbered]{hypdoc}[2010/03/26] |
| 44 |
\RequirePackage{hyperref}[2010/03/30] |
| 45 |
\RequirePackage{pdftexcmds}[2010/04/01] |
| 46 |
\RequirePackage{ltxcmds}[2010/03/09] |
| 47 |
\RequirePackage{hologo}[2011/11/22] |
| 48 |
\RequirePackage{array} |
| 49 |
\def\hld@info#1{% |
| 50 |
\PackageInfo{holtxdoc}{#1\@gobble}% |
| 51 |
} |
| 52 |
\def\hld@warn#1{% |
| 53 |
\PackageWarningNoLine{holtxdoc}{#1}% |
| 54 |
} |
| 55 |
\ifluatex |
| 56 |
\RequirePackage{fontspec}[2011/09/18]% |
| 57 |
\RequirePackage{unicode-math}[2011/09/19]% |
| 58 |
\setmathfont{latinmodern-math.otf}% |
| 59 |
\fi |
| 60 |
\ltx@IfUndefined{pdf@filemoddate}{% |
| 61 |
}{% |
| 62 |
\edef\hld@temp{\pdf@filemoddate{\jobname.dtx}}% |
| 63 |
\ifx\hld@temp\ltx@empty |
| 64 |
\else |
| 65 |
\begingroup |
| 66 |
\def\x#1:#2#3#4#5#6#7#8#9{% |
| 67 |
\year=#2#3#4#5\relax |
| 68 |
\month=#6#7\relax |
| 69 |
\day=#8#9\relax |
| 70 |
\y |
| 71 |
}% |
| 72 |
\def\y#1#2#3#4#5\@nil{% |
| 73 |
\time=#1#2\relax |
| 74 |
\multiply\time by 60\relax |
| 75 |
\advance\time#3#4\relax |
| 76 |
}% |
| 77 |
\expandafter\x\hld@temp\@nil |
| 78 |
\edef\x{\endgroup |
| 79 |
\year=\the\year\relax |
| 80 |
\month=\the\month\relax |
| 81 |
\day=\the\day\relax |
| 82 |
\time=\the\time\relax |
| 83 |
}% |
| 84 |
\x |
| 85 |
\edef\hld@temp{% |
| 86 |
\noexpand\hypersetup{% |
| 87 |
pdfcreationdate=\hld@temp,% |
| 88 |
pdfmoddate=\hld@temp |
| 89 |
}% |
| 90 |
}% |
| 91 |
\hld@temp |
| 92 |
\fi |
| 93 |
} |
| 94 |
\providecommand*{\historyname}{History} |
| 95 |
\newcommand*{\StartHistory}{% |
| 96 |
\section{\historyname}% |
| 97 |
} |
| 98 |
\@ifpackagelater{hyperref}{2009/11/27}{% |
| 99 |
\newcommand*{\HistVersion}[1]{% |
| 100 |
\subsection*{[#1]}% hash-ok |
| 101 |
\addcontentsline{toc}{subsection}{[#1]}% hash-ok |
| 102 |
\def\HistLabel##1{% |
| 103 |
\begingroup |
| 104 |
\protected@edef\@currentlabel{[#1]}% hash-ok |
| 105 |
\label{##1}% |
| 106 |
\endgroup |
| 107 |
}% |
| 108 |
}% |
| 109 |
}{% |
| 110 |
\newcommand*{\HistVersion}[1]{% |
| 111 |
\subsection*{% |
| 112 |
\phantomsection |
| 113 |
\addcontentsline{toc}{subsection}{[#1]}% hash-ok |
| 114 |
[#1]% hash-ok |
| 115 |
}% |
| 116 |
\def\HistLabel##1{% |
| 117 |
\begingroup |
| 118 |
\protected@edef\@currentlabel{[#1]}% hash-ok |
| 119 |
\label{##1}% |
| 120 |
\endgroup |
| 121 |
}% |
| 122 |
}% |
| 123 |
} |
| 124 |
\newenvironment{History}{% |
| 125 |
\StartHistory |
| 126 |
\def\Version##1{% |
| 127 |
\HistVersion{##1}% |
| 128 |
\@ifnextchar\end{% |
| 129 |
\let\endVersion\relax |
| 130 |
}{% |
| 131 |
\let\endVersion\enditemize |
| 132 |
\itemize |
| 133 |
}% |
| 134 |
}% |
| 135 |
\raggedright |
| 136 |
}{} |
| 137 |
\newcommand{\URL}[2]{% |
| 138 |
\begingroup |
| 139 |
\def\link{\href{#2}}% |
| 140 |
#1% |
| 141 |
\endgroup |
| 142 |
\footnote{Url: \url{#2}}% |
| 143 |
} |
| 144 |
\newcommand*{\NameEmail}[2]{% |
| 145 |
\expandafter\hld@NameEmail\expandafter{#2}{#1}% |
| 146 |
} |
| 147 |
\def\hld@NameEmail#1#2{% |
| 148 |
\expandafter\hld@@NameEmail\expandafter{#2}{#1}% |
| 149 |
} |
| 150 |
\def\hld@@NameEmail#1#2{% |
| 151 |
\ifx\\#1#2\\% |
| 152 |
\hld@warn{% |
| 153 |
Command \string\NameEmail\space without name and email% |
| 154 |
}% |
| 155 |
\else |
| 156 |
\ifx\\#1\\% |
| 157 |
\href{mailto:#2}{\nolinkurl{#2}}% |
| 158 |
\else |
| 159 |
#1% |
| 160 |
\ifx\\#2\\% |
| 161 |
\else |
| 162 |
\footnote{% |
| 163 |
#1's email address: % |
| 164 |
\href{mailto:#2}{\nolinkurl{#2}}% |
| 165 |
}% |
| 166 |
\fi |
| 167 |
\fi |
| 168 |
\fi |
| 169 |
} |
| 170 |
\newcommand*{\Package}[1]{\texttt{#1}} |
| 171 |
\newcommand*{\File}[1]{\texttt{#1}} |
| 172 |
\newcommand*{\Verb}[1]{\texttt{#1}} |
| 173 |
\newcommand*{\CS}[1]{\texttt{\expandafter\@gobble\string\\#1}} |
| 174 |
\newcommand*{\bibpackage}[4]{% |
| 175 |
\bibitem{#1} |
| 176 |
Package \xpackage{#1}, #2, #3.% |
| 177 |
\ifx\\#4\\\else\space#4\fi\par |
| 178 |
} |
| 179 |
\newcommand*{\CTAN}[1]{% |
| 180 |
\href{https://ctan.org/tex-archive/#1}{\nolinkurl{CTAN:#1}}% |
| 181 |
} |
| 182 |
\newcommand*{\CTANinstall}[1]{% |
| 183 |
\href{http://mirrors.ctan.org/#1}{\nolinkurl{CTAN:#1}}% |
| 184 |
} |
| 185 |
\newcommand*{\CTANpkg}[1]{% |
| 186 |
\href{http://ctan.org/pkg/#1}{\nolinkurl{CTAN:pkg/#1}}% |
| 187 |
} |
| 188 |
\newcommand*{\Newsgroup}[1]{% |
| 189 |
\href{https://groups.google.com/group/#1/topics}{\nolinkurl{news:#1}}% |
| 190 |
} |
| 191 |
\newcommand*{\xpackage}[1]{\textsf{#1}} |
| 192 |
\newcommand*{\xmodule}[1]{\textsf{#1}} |
| 193 |
\newcommand*{\xclass}[1]{\textsf{#1}} |
| 194 |
\newcommand*{\xoption}[1]{\textsf{#1}} |
| 195 |
\newcommand*{\xfile}[1]{\texttt{#1}} |
| 196 |
\newcommand*{\xext}[1]{\texttt{.#1}} |
| 197 |
\newcommand*{\xemail}[1]{% |
| 198 |
\textless\texttt{#1}\textgreater% |
| 199 |
} |
| 200 |
\newcommand*{\xnewsgroup}[1]{% |
| 201 |
\href{news:#1}{\nolinkurl{#1}}% |
| 202 |
} |
| 203 |
\newenvironment{declcs}[1]{% |
| 204 |
\par |
| 205 |
\addvspace{4.5ex plus 1ex}% |
| 206 |
\vskip -\parskip |
| 207 |
\noindent |
| 208 |
\hspace{-\leftmargini}% |
| 209 |
\def\M##1{\texttt{\{}\meta{##1}\texttt{\}}}% |
| 210 |
\def\*{\unskip\,\texttt{*}}% |
| 211 |
\begin{tabular}{|l|}% |
| 212 |
\hline |
| 213 |
\expandafter\SpecialUsageIndex\csname #1\endcsname |
| 214 |
\cs{#1}% |
| 215 |
}{% |
| 216 |
\\% |
| 217 |
\hline |
| 218 |
\end{tabular}% |
| 219 |
\nobreak |
| 220 |
\par |
| 221 |
\nobreak |
| 222 |
\vspace{2.3ex}% |
| 223 |
\vskip -\parskip |
| 224 |
\noindent |
| 225 |
\ignorespacesafterend |
| 226 |
} |
| 227 |
\def\eTeX{\hologo{eTeX}} |
| 228 |
\def\pdfTeX{\hologo{pdfTeX}} |
| 229 |
\def\pdfLaTeX{\hologo{pdfLaTeX}} |
| 230 |
\def\LuaTeX{\hologo{LuaTeX}} |
| 231 |
\def\LuaLaTeX{\hologo{LuaLaTeX}} |
| 232 |
\def\XeTeX{\hologo{XeTeX}} |
| 233 |
\def\XeLaTeX{\hologo{XeLaTeX}} |
| 234 |
\def\plainTeX{\hologo{plainTeX}} |
| 235 |
\providecommand*{\teTeX}{\hologo{teTeX}} |
| 236 |
\providecommand*{\mikTeX}{\hologo{MiKTeX}} |
| 237 |
\providecommand*{\MakeIndex}{\textsl{MakeIndex}} |
| 238 |
\providecommand*{\docstrip}{\textsf{docstrip}} |
| 239 |
\providecommand*{\iniTeX}{\hologo{iniTeX}} |
| 240 |
\providecommand*{\VTeX}{\hologo{VTeX}} |
| 241 |
\CodelineIndex |
| 242 |
\EnableCrossrefs |
| 243 |
\setcounter{IndexColumns}{2} |
| 244 |
\DoNotIndex{\begingroup,\endgroup,\bgroup,\egroup} |
| 245 |
\DoNotIndex{\def,\edef,\xdef,\global,\long,\let} |
| 246 |
\DoNotIndex{\expandafter,\noexpand,\string} |
| 247 |
\DoNotIndex{\else,\fi,\or} |
| 248 |
\DoNotIndex{\relax} |
| 249 |
\IndexPrologue{% |
| 250 |
\section*{Index}% |
| 251 |
\markboth{Index}{Index}% |
| 252 |
Numbers written in italic refer to the page % |
| 253 |
where the corresponding entry is described; % |
| 254 |
numbers underlined refer to the % |
| 255 |
\ifcodeline@index |
| 256 |
code line of the % |
| 257 |
\fi |
| 258 |
definition; plain numbers refer to the % |
| 259 |
\ifcodeline@index |
| 260 |
code lines % |
| 261 |
\else |
| 262 |
pages % |
| 263 |
\fi |
| 264 |
where the entry is used.% |
| 265 |
} |
| 266 |
\addtolength{\textheight}{\headheight} |
| 267 |
\addtolength{\textheight}{\headsep} |
| 268 |
\setlength{\headheight}{0pt} |
| 269 |
\setlength{\headsep}{0pt} |
| 270 |
\addtolength{\topmargin}{-10mm} |
| 271 |
\addtolength{\textheight}{20mm} |
| 272 |
\endinput |
| 273 |
%% |
| 274 |
%% End of file `holtxdoc.sty'. |