| 1 |
% \iffalse meta-comment |
| 2 |
% |
| 3 |
% File: holtxdoc.dtx |
| 4 |
% Version: 2019/12/09 v0.30 |
| 5 |
% Info: Private additional ltxdoc support |
| 6 |
% |
| 7 |
% Copyright (C) |
| 8 |
% 1999-2012 Heiko Oberdiek |
| 9 |
% 2016-2019 Oberdiek Package Support Group |
| 10 |
% https://github.com/ho-tex/oberdiek/issues |
| 11 |
% |
| 12 |
% This work may be distributed and/or modified under the |
| 13 |
% conditions of the LaTeX Project Public License, either |
| 14 |
% version 1.3c of this license or (at your option) any later |
| 15 |
% version. This version of this license is in |
| 16 |
% https://www.latex-project.org/lppl/lppl-1-3c.txt |
| 17 |
% and the latest version of this license is in |
| 18 |
% https://www.latex-project.org/lppl.txt |
| 19 |
% and version 1.3 or later is part of all distributions of |
| 20 |
% LaTeX version 2005/12/01 or later. |
| 21 |
% |
| 22 |
% This work has the LPPL maintenance status "maintained". |
| 23 |
% |
| 24 |
% The Current Maintainers of this work are |
| 25 |
% Heiko Oberdiek and the Oberdiek Package Support Group |
| 26 |
% https://github.com/ho-tex/oberdiek/issues |
| 27 |
% |
| 28 |
% This work consists of the main source file holtxdoc.dtx |
| 29 |
% and the derived files |
| 30 |
% holtxdoc.sty, holtxdoc.pdf, holtxdoc.ins, holtxdoc.drv. |
| 31 |
% |
| 32 |
% Distribution: |
| 33 |
% CTAN:macros/latex/contrib/oberdiek/holtxdoc.dtx |
| 34 |
% CTAN:macros/latex/contrib/oberdiek/holtxdoc.pdf |
| 35 |
% |
| 36 |
% Unpacking: |
| 37 |
% (a) If holtxdoc.ins is present: |
| 38 |
% tex holtxdoc.ins |
| 39 |
% (b) Without holtxdoc.ins: |
| 40 |
% tex holtxdoc.dtx |
| 41 |
% (c) If you insist on using LaTeX |
| 42 |
% latex \let\install=y\input{holtxdoc.dtx} |
| 43 |
% (quote the arguments according to the demands of your shell) |
| 44 |
% |
| 45 |
% Documentation: |
| 46 |
% (a) If holtxdoc.drv is present: |
| 47 |
% latex holtxdoc.drv |
| 48 |
% (b) Without holtxdoc.drv: |
| 49 |
% latex holtxdoc.dtx; ... |
| 50 |
% The class ltxdoc loads the configuration file ltxdoc.cfg |
| 51 |
% if available. Here you can specify further options, e.g. |
| 52 |
% use A4 as paper format: |
| 53 |
% \PassOptionsToClass{a4paper}{article} |
| 54 |
% |
| 55 |
% Program calls to get the documentation (example): |
| 56 |
% pdflatex holtxdoc.dtx |
| 57 |
% makeindex -s gind.ist holtxdoc.idx |
| 58 |
% pdflatex holtxdoc.dtx |
| 59 |
% makeindex -s gind.ist holtxdoc.idx |
| 60 |
% pdflatex holtxdoc.dtx |
| 61 |
% |
| 62 |
% Installation: |
| 63 |
% TDS:tex/latex/oberdiek/holtxdoc.sty |
| 64 |
% TDS:doc/latex/oberdiek/holtxdoc.pdf |
| 65 |
% TDS:source/latex/oberdiek/holtxdoc.dtx |
| 66 |
% |
| 67 |
%<*ignore> |
| 68 |
\begingroup |
| 69 |
\catcode123=1 % |
| 70 |
\catcode125=2 % |
| 71 |
\def\x{LaTeX2e}% |
| 72 |
\expandafter\endgroup |
| 73 |
\ifcase 0\ifx\install y1\fi\expandafter |
| 74 |
\ifx\csname processbatchFile\endcsname\relax\else1\fi |
| 75 |
\ifx\fmtname\x\else 1\fi\relax |
| 76 |
\else\csname fi\endcsname |
| 77 |
%</ignore> |
| 78 |
%<*install> |
| 79 |
\input docstrip.tex |
| 80 |
\Msg{************************************************************************} |
| 81 |
\Msg{* Installation} |
| 82 |
\Msg{* Package: holtxdoc 2019/12/09 v0.30 Private additional ltxdoc support (HO)} |
| 83 |
\Msg{************************************************************************} |
| 84 |
|
| 85 |
\keepsilent |
| 86 |
\askforoverwritefalse |
| 87 |
|
| 88 |
\let\MetaPrefix\relax |
| 89 |
\preamble |
| 90 |
|
| 91 |
This is a generated file. |
| 92 |
|
| 93 |
Project: holtxdoc |
| 94 |
Version: 2019/12/09 v0.30 |
| 95 |
|
| 96 |
Copyright (C) |
| 97 |
1999-2012 Heiko Oberdiek |
| 98 |
2016-2019 Oberdiek Package Support Group |
| 99 |
|
| 100 |
This work may be distributed and/or modified under the |
| 101 |
conditions of the LaTeX Project Public License, either |
| 102 |
version 1.3c of this license or (at your option) any later |
| 103 |
version. This version of this license is in |
| 104 |
https://www.latex-project.org/lppl/lppl-1-3c.txt |
| 105 |
and the latest version of this license is in |
| 106 |
https://www.latex-project.org/lppl.txt |
| 107 |
and version 1.3 or later is part of all distributions of |
| 108 |
LaTeX version 2005/12/01 or later. |
| 109 |
|
| 110 |
This work has the LPPL maintenance status "maintained". |
| 111 |
|
| 112 |
The Current Maintainers of this work are |
| 113 |
Heiko Oberdiek and the Oberdiek Package Support Group |
| 114 |
https://github.com/ho-tex/oberdiek/issues |
| 115 |
|
| 116 |
|
| 117 |
This work consists of the main source file holtxdoc.dtx |
| 118 |
and the derived files |
| 119 |
holtxdoc.sty, holtxdoc.pdf, holtxdoc.ins, holtxdoc.drv. |
| 120 |
|
| 121 |
\endpreamble |
| 122 |
\let\MetaPrefix\DoubleperCent |
| 123 |
|
| 124 |
\generate{% |
| 125 |
\file{holtxdoc.ins}{\from{holtxdoc.dtx}{install}}% |
| 126 |
\file{holtxdoc.drv}{\from{holtxdoc.dtx}{driver}}% |
| 127 |
\usedir{tex/latex/oberdiek}% |
| 128 |
\file{holtxdoc.sty}{\from{holtxdoc.dtx}{package}}% |
| 129 |
} |
| 130 |
|
| 131 |
\catcode32=13\relax% active space |
| 132 |
\let =\space% |
| 133 |
\Msg{************************************************************************} |
| 134 |
\Msg{*} |
| 135 |
\Msg{* To finish the installation you have to move the following} |
| 136 |
\Msg{* file into a directory searched by TeX:} |
| 137 |
\Msg{*} |
| 138 |
\Msg{* holtxdoc.sty} |
| 139 |
\Msg{*} |
| 140 |
\Msg{* To produce the documentation run the file `holtxdoc.drv'} |
| 141 |
\Msg{* through LaTeX.} |
| 142 |
\Msg{*} |
| 143 |
\Msg{* Happy TeXing!} |
| 144 |
\Msg{*} |
| 145 |
\Msg{************************************************************************} |
| 146 |
|
| 147 |
\endbatchfile |
| 148 |
%</install> |
| 149 |
%<*ignore> |
| 150 |
\fi |
| 151 |
%</ignore> |
| 152 |
%<*driver> |
| 153 |
\NeedsTeXFormat{LaTeX2e} |
| 154 |
\ProvidesFile{holtxdoc.drv}% |
| 155 |
[2019/12/09 v0.30 Private additional ltxdoc support (HO)]% |
| 156 |
\documentclass{ltxdoc} |
| 157 |
\usepackage{holtxdoc}[2011/11/22] |
| 158 |
\begin{document} |
| 159 |
\DocInput{holtxdoc.dtx}% |
| 160 |
\end{document} |
| 161 |
%</driver> |
| 162 |
% \fi |
| 163 |
% |
| 164 |
% |
| 165 |
% |
| 166 |
% \GetFileInfo{holtxdoc.drv} |
| 167 |
% |
| 168 |
% \title{The \xpackage{holtxdoc} package} |
| 169 |
% \date{2019/12/09 v0.30} |
| 170 |
% \author{Heiko Oberdiek\thanks |
| 171 |
% {Please report any issues at \url{https://github.com/ho-tex/oberdiek/issues}}} |
| 172 |
% |
| 173 |
% \maketitle |
| 174 |
% |
| 175 |
% \begin{abstract} |
| 176 |
% The package is used for the documentation of my packages in |
| 177 |
% DTX format. It contains some private macros and setup for |
| 178 |
% my needs. Thus do not use it. I have separated the part |
| 179 |
% that may be useful for others in package \xpackage{hypdoc}. |
| 180 |
% \end{abstract} |
| 181 |
% |
| 182 |
% \tableofcontents |
| 183 |
% |
| 184 |
% \section{No usage} |
| 185 |
% |
| 186 |
% Caution: \emph{This package is not intended for public use!} |
| 187 |
% |
| 188 |
% It contains the macros and settings to generate the |
| 189 |
% documentation of my packages in \CTANpkg{oberdiek}. |
| 190 |
% Thus the package does not know anything about compatibility. Only |
| 191 |
% my current packages' documentation must compile. |
| 192 |
% |
| 193 |
% Older versions were more interesting, because they contained code |
| 194 |
% to add \xpackage{hyperref}'s features to \LaTeX's \xpackage{doc} |
| 195 |
% system, e.g. bookmarks and index links. I separated this stuff |
| 196 |
% and made a new package \xpackage{hypdoc}. |
| 197 |
% |
| 198 |
% \StopEventually{ |
| 199 |
% } |
| 200 |
% |
| 201 |
% \section{Implementation} |
| 202 |
% |
| 203 |
% \begin{macrocode} |
| 204 |
%<*package> |
| 205 |
% \end{macrocode} |
| 206 |
% Package identification. |
| 207 |
% \begin{macrocode} |
| 208 |
\NeedsTeXFormat{LaTeX2e} |
| 209 |
\ProvidesPackage{holtxdoc}% |
| 210 |
[2019/12/09 v0.30 Private additional ltxdoc support (HO)] |
| 211 |
% \end{macrocode} |
| 212 |
% |
| 213 |
% \begin{macrocode} |
| 214 |
\PassOptionsToPackage{pdfencoding=auto}{hyperref} |
| 215 |
\RequirePackage[numbered]{hypdoc}[2010/03/26] |
| 216 |
\RequirePackage{hyperref}[2010/03/30] |
| 217 |
\RequirePackage{pdftexcmds}[2010/04/01] |
| 218 |
\RequirePackage{ltxcmds}[2010/03/09] |
| 219 |
\RequirePackage{hologo}[2011/11/22] |
| 220 |
\RequirePackage{array} |
| 221 |
% \end{macrocode} |
| 222 |
% |
| 223 |
% \subsection{Help macros} |
| 224 |
% |
| 225 |
% \begin{macrocode} |
| 226 |
\def\hld@info#1{% |
| 227 |
\PackageInfo{holtxdoc}{#1\@gobble}% |
| 228 |
} |
| 229 |
\def\hld@warn#1{% |
| 230 |
\PackageWarningNoLine{holtxdoc}{#1}% |
| 231 |
} |
| 232 |
% \end{macrocode} |
| 233 |
% |
| 234 |
% \subsection{Font setup for \hologo{LuaLaTeX}} |
| 235 |
% |
| 236 |
% \begin{macrocode} |
| 237 |
\ifluatex |
| 238 |
\RequirePackage{fontspec}[2011/09/18]% |
| 239 |
\RequirePackage{unicode-math}[2011/09/19]% |
| 240 |
\setmathfont{latinmodern-math.otf}% |
| 241 |
\fi |
| 242 |
% \end{macrocode} |
| 243 |
% |
| 244 |
% \subsection{Date} |
| 245 |
% |
| 246 |
% \begin{macrocode} |
| 247 |
\ltx@IfUndefined{pdf@filemoddate}{% |
| 248 |
}{% |
| 249 |
\edef\hld@temp{\pdf@filemoddate{\jobname.dtx}}% |
| 250 |
\ifx\hld@temp\ltx@empty |
| 251 |
\else |
| 252 |
\begingroup |
| 253 |
\def\x#1:#2#3#4#5#6#7#8#9{% |
| 254 |
\year=#2#3#4#5\relax |
| 255 |
\month=#6#7\relax |
| 256 |
\day=#8#9\relax |
| 257 |
\y |
| 258 |
}% |
| 259 |
\def\y#1#2#3#4#5\@nil{% |
| 260 |
\time=#1#2\relax |
| 261 |
\multiply\time by 60\relax |
| 262 |
\advance\time#3#4\relax |
| 263 |
}% |
| 264 |
\expandafter\x\hld@temp\@nil |
| 265 |
\edef\x{\endgroup |
| 266 |
\year=\the\year\relax |
| 267 |
\month=\the\month\relax |
| 268 |
\day=\the\day\relax |
| 269 |
\time=\the\time\relax |
| 270 |
}% |
| 271 |
\x |
| 272 |
\edef\hld@temp{% |
| 273 |
\noexpand\hypersetup{% |
| 274 |
pdfcreationdate=\hld@temp,% |
| 275 |
pdfmoddate=\hld@temp |
| 276 |
}% |
| 277 |
}% |
| 278 |
\hld@temp |
| 279 |
\fi |
| 280 |
} |
| 281 |
% \end{macrocode} |
| 282 |
% |
| 283 |
% \subsection{History} |
| 284 |
% |
| 285 |
% \begin{macro}{\historyname} |
| 286 |
% \begin{macrocode} |
| 287 |
\providecommand*{\historyname}{History} |
| 288 |
% \end{macrocode} |
| 289 |
% \end{macro} |
| 290 |
% |
| 291 |
% \begin{macrocode} |
| 292 |
\newcommand*{\StartHistory}{% |
| 293 |
\section{\historyname}% |
| 294 |
} |
| 295 |
\@ifpackagelater{hyperref}{2009/11/27}{% |
| 296 |
\newcommand*{\HistVersion}[1]{% |
| 297 |
\subsection*{[#1]}% hash-ok |
| 298 |
\addcontentsline{toc}{subsection}{[#1]}% hash-ok |
| 299 |
\def\HistLabel##1{% |
| 300 |
\begingroup |
| 301 |
\protected@edef\@currentlabel{[#1]}% hash-ok |
| 302 |
\label{##1}% |
| 303 |
\endgroup |
| 304 |
}% |
| 305 |
}% |
| 306 |
}{% |
| 307 |
\newcommand*{\HistVersion}[1]{% |
| 308 |
\subsection*{% |
| 309 |
\phantomsection |
| 310 |
\addcontentsline{toc}{subsection}{[#1]}% hash-ok |
| 311 |
[#1]% hash-ok |
| 312 |
}% |
| 313 |
\def\HistLabel##1{% |
| 314 |
\begingroup |
| 315 |
\protected@edef\@currentlabel{[#1]}% hash-ok |
| 316 |
\label{##1}% |
| 317 |
\endgroup |
| 318 |
}% |
| 319 |
}% |
| 320 |
} |
| 321 |
\newenvironment{History}{% |
| 322 |
\StartHistory |
| 323 |
\def\Version##1{% |
| 324 |
\HistVersion{##1}% |
| 325 |
\@ifnextchar\end{% |
| 326 |
\let\endVersion\relax |
| 327 |
}{% |
| 328 |
\let\endVersion\enditemize |
| 329 |
\itemize |
| 330 |
}% |
| 331 |
}% |
| 332 |
\raggedright |
| 333 |
}{} |
| 334 |
% \end{macrocode} |
| 335 |
% |
| 336 |
% \subsection{Formatting macros} |
| 337 |
% |
| 338 |
% \cs{UrlFoot}\\ |
| 339 |
% |#1|: text\\ |
| 340 |
% |#2|: url |
| 341 |
% \begin{macrocode} |
| 342 |
\newcommand{\URL}[2]{% |
| 343 |
\begingroup |
| 344 |
\def\link{\href{#2}}% |
| 345 |
#1% |
| 346 |
\endgroup |
| 347 |
\footnote{Url: \url{#2}}% |
| 348 |
} |
| 349 |
% \end{macrocode} |
| 350 |
% \cs{NameEmail}\\ |
| 351 |
% |#1|: name\\ |
| 352 |
% |#2|: email address |
| 353 |
% \begin{macrocode} |
| 354 |
\newcommand*{\NameEmail}[2]{% |
| 355 |
\expandafter\hld@NameEmail\expandafter{#2}{#1}% |
| 356 |
} |
| 357 |
\def\hld@NameEmail#1#2{% |
| 358 |
\expandafter\hld@@NameEmail\expandafter{#2}{#1}% |
| 359 |
} |
| 360 |
\def\hld@@NameEmail#1#2{% |
| 361 |
\ifx\\#1#2\\% |
| 362 |
\hld@warn{% |
| 363 |
Command \string\NameEmail\space without name and email% |
| 364 |
}% |
| 365 |
\else |
| 366 |
\ifx\\#1\\% |
| 367 |
\href{mailto:#2}{\nolinkurl{#2}}% |
| 368 |
\else |
| 369 |
#1% |
| 370 |
\ifx\\#2\\% |
| 371 |
\else |
| 372 |
\footnote{% |
| 373 |
#1's email address: % |
| 374 |
\href{mailto:#2}{\nolinkurl{#2}}% |
| 375 |
}% |
| 376 |
\fi |
| 377 |
\fi |
| 378 |
\fi |
| 379 |
} |
| 380 |
% \end{macrocode} |
| 381 |
% |
| 382 |
% \begin{macrocode} |
| 383 |
\newcommand*{\Package}[1]{\texttt{#1}} |
| 384 |
\newcommand*{\File}[1]{\texttt{#1}} |
| 385 |
\newcommand*{\Verb}[1]{\texttt{#1}} |
| 386 |
\newcommand*{\CS}[1]{\texttt{\expandafter\@gobble\string\\#1}} |
| 387 |
% \end{macrocode} |
| 388 |
% |
| 389 |
% \begin{macrocode} |
| 390 |
\newcommand*{\bibpackage}[4]{% |
| 391 |
\bibitem{#1} |
| 392 |
Package \xpackage{#1}, #2, #3.% |
| 393 |
\ifx\\#4\\\else\space#4\fi\par |
| 394 |
} |
| 395 |
% \end{macrocode} |
| 396 |
% |
| 397 |
% \begin{macrocode} |
| 398 |
\newcommand*{\CTAN}[1]{% |
| 399 |
\href{https://ctan.org/tex-archive/#1}{\nolinkurl{CTAN:#1}}% |
| 400 |
} |
| 401 |
\newcommand*{\CTANinstall}[1]{% |
| 402 |
\href{http://mirrors.ctan.org/#1}{\nolinkurl{CTAN:#1}}% |
| 403 |
} |
| 404 |
\newcommand*{\CTANpkg}[1]{% |
| 405 |
\href{http://ctan.org/pkg/#1}{\nolinkurl{CTAN:pkg/#1}}% |
| 406 |
} |
| 407 |
% \end{macrocode} |
| 408 |
% \begin{macrocode} |
| 409 |
\newcommand*{\Newsgroup}[1]{% |
| 410 |
\href{https://groups.google.com/group/#1/topics}{\nolinkurl{news:#1}}% |
| 411 |
} |
| 412 |
% \end{macrocode} |
| 413 |
% |
| 414 |
% \begin{macrocode} |
| 415 |
\newcommand*{\xpackage}[1]{\textsf{#1}} |
| 416 |
\newcommand*{\xmodule}[1]{\textsf{#1}} |
| 417 |
\newcommand*{\xclass}[1]{\textsf{#1}} |
| 418 |
\newcommand*{\xoption}[1]{\textsf{#1}} |
| 419 |
\newcommand*{\xfile}[1]{\texttt{#1}} |
| 420 |
\newcommand*{\xext}[1]{\texttt{.#1}} |
| 421 |
\newcommand*{\xemail}[1]{% |
| 422 |
\textless\texttt{#1}\textgreater% |
| 423 |
} |
| 424 |
\newcommand*{\xnewsgroup}[1]{% |
| 425 |
\href{news:#1}{\nolinkurl{#1}}% |
| 426 |
} |
| 427 |
% \end{macrocode} |
| 428 |
% |
| 429 |
% The following environment |declcs| is derived from |
| 430 |
% environment |decl| of \xfile{ltxguide.cls}: |
| 431 |
% \begin{macrocode} |
| 432 |
\newenvironment{declcs}[1]{% |
| 433 |
\par |
| 434 |
\addvspace{4.5ex plus 1ex}% |
| 435 |
\vskip -\parskip |
| 436 |
\noindent |
| 437 |
\hspace{-\leftmargini}% |
| 438 |
\def\M##1{\texttt{\{}\meta{##1}\texttt{\}}}% |
| 439 |
\def\*{\unskip\,\texttt{*}}% |
| 440 |
\begin{tabular}{|l|}% |
| 441 |
\hline |
| 442 |
\expandafter\SpecialUsageIndex\csname #1\endcsname |
| 443 |
\cs{#1}% |
| 444 |
}{% |
| 445 |
\\% |
| 446 |
\hline |
| 447 |
\end{tabular}% |
| 448 |
\nobreak |
| 449 |
\par |
| 450 |
\nobreak |
| 451 |
\vspace{2.3ex}% |
| 452 |
\vskip -\parskip |
| 453 |
\noindent |
| 454 |
\ignorespacesafterend |
| 455 |
} |
| 456 |
% \end{macrocode} |
| 457 |
% |
| 458 |
% \subsection{Names} |
| 459 |
% |
| 460 |
% \begin{macrocode} |
| 461 |
\def\eTeX{\hologo{eTeX}} |
| 462 |
\def\pdfTeX{\hologo{pdfTeX}} |
| 463 |
\def\pdfLaTeX{\hologo{pdfLaTeX}} |
| 464 |
\def\LuaTeX{\hologo{LuaTeX}} |
| 465 |
\def\LuaLaTeX{\hologo{LuaLaTeX}} |
| 466 |
\def\XeTeX{\hologo{XeTeX}} |
| 467 |
\def\XeLaTeX{\hologo{XeLaTeX}} |
| 468 |
\def\plainTeX{\hologo{plainTeX}} |
| 469 |
\providecommand*{\teTeX}{\hologo{teTeX}} |
| 470 |
\providecommand*{\mikTeX}{\hologo{MiKTeX}} |
| 471 |
\providecommand*{\MakeIndex}{\textsl{MakeIndex}} |
| 472 |
\providecommand*{\docstrip}{\textsf{docstrip}} |
| 473 |
\providecommand*{\iniTeX}{\hologo{iniTeX}} |
| 474 |
\providecommand*{\VTeX}{\hologo{VTeX}} |
| 475 |
% \end{macrocode} |
| 476 |
% |
| 477 |
% \subsection{Setup} |
| 478 |
% |
| 479 |
% \subsubsection{Package \xpackage{doc}} |
| 480 |
% |
| 481 |
% \begin{macrocode} |
| 482 |
\CodelineIndex |
| 483 |
\EnableCrossrefs |
| 484 |
\setcounter{IndexColumns}{2} |
| 485 |
% \end{macrocode} |
| 486 |
% \begin{macrocode} |
| 487 |
\DoNotIndex{\begingroup,\endgroup,\bgroup,\egroup} |
| 488 |
\DoNotIndex{\def,\edef,\xdef,\global,\long,\let} |
| 489 |
\DoNotIndex{\expandafter,\noexpand,\string} |
| 490 |
\DoNotIndex{\else,\fi,\or} |
| 491 |
\DoNotIndex{\relax} |
| 492 |
% \end{macrocode} |
| 493 |
% |
| 494 |
% \begin{macrocode} |
| 495 |
\IndexPrologue{% |
| 496 |
\section*{Index}% |
| 497 |
\markboth{Index}{Index}% |
| 498 |
Numbers written in italic refer to the page % |
| 499 |
where the corresponding entry is described; % |
| 500 |
numbers underlined refer to the % |
| 501 |
\ifcodeline@index |
| 502 |
code line of the % |
| 503 |
\fi |
| 504 |
definition; plain numbers refer to the % |
| 505 |
\ifcodeline@index |
| 506 |
code lines % |
| 507 |
\else |
| 508 |
pages % |
| 509 |
\fi |
| 510 |
where the entry is used.% |
| 511 |
} |
| 512 |
% \end{macrocode} |
| 513 |
% |
| 514 |
% \subsubsection{Page layout} |
| 515 |
% \begin{macrocode} |
| 516 |
\addtolength{\textheight}{\headheight} |
| 517 |
\addtolength{\textheight}{\headsep} |
| 518 |
\setlength{\headheight}{0pt} |
| 519 |
\setlength{\headsep}{0pt} |
| 520 |
% \end{macrocode} |
| 521 |
% \begin{macrocode} |
| 522 |
\addtolength{\topmargin}{-10mm} |
| 523 |
\addtolength{\textheight}{20mm} |
| 524 |
% \end{macrocode} |
| 525 |
% \begin{macrocode} |
| 526 |
%</package> |
| 527 |
% \end{macrocode} |
| 528 |
% |
| 529 |
% \section{Installation} |
| 530 |
% |
| 531 |
% \subsection{Download} |
| 532 |
% |
| 533 |
% \paragraph{Package.} This package is available on |
| 534 |
% CTAN\footnote{\CTANpkg{holtxdoc}}: |
| 535 |
% \begin{description} |
| 536 |
% \item[\CTAN{macros/latex/contrib/oberdiek/holtxdoc.dtx}] The source file. |
| 537 |
% \item[\CTAN{macros/latex/contrib/oberdiek/holtxdoc.pdf}] Documentation. |
| 538 |
% \end{description} |
| 539 |
% |
| 540 |
% |
| 541 |
% \paragraph{Bundle.} All the packages of the bundle `oberdiek' |
| 542 |
% are also available in a TDS compliant ZIP archive. There |
| 543 |
% the packages are already unpacked and the documentation files |
| 544 |
% are generated. The files and directories obey the TDS standard. |
| 545 |
% \begin{description} |
| 546 |
% \item[\CTANinstall{install/macros/latex/contrib/oberdiek.tds.zip}] |
| 547 |
% \end{description} |
| 548 |
% \emph{TDS} refers to the standard ``A Directory Structure |
| 549 |
% for \TeX\ Files'' (\CTANpkg{tds}). Directories |
| 550 |
% with \xfile{texmf} in their name are usually organized this way. |
| 551 |
% |
| 552 |
% \subsection{Bundle installation} |
| 553 |
% |
| 554 |
% \paragraph{Unpacking.} Unpack the \xfile{oberdiek.tds.zip} in the |
| 555 |
% TDS tree (also known as \xfile{texmf} tree) of your choice. |
| 556 |
% Example (linux): |
| 557 |
% \begin{quote} |
| 558 |
% |unzip oberdiek.tds.zip -d ~/texmf| |
| 559 |
% \end{quote} |
| 560 |
% |
| 561 |
% \subsection{Package installation} |
| 562 |
% |
| 563 |
% \paragraph{Unpacking.} The \xfile{.dtx} file is a self-extracting |
| 564 |
% \docstrip\ archive. The files are extracted by running the |
| 565 |
% \xfile{.dtx} through \plainTeX: |
| 566 |
% \begin{quote} |
| 567 |
% \verb|tex holtxdoc.dtx| |
| 568 |
% \end{quote} |
| 569 |
% |
| 570 |
% \paragraph{TDS.} Now the different files must be moved into |
| 571 |
% the different directories in your installation TDS tree |
| 572 |
% (also known as \xfile{texmf} tree): |
| 573 |
% \begin{quote} |
| 574 |
% \def\t{^^A |
| 575 |
% \begin{tabular}{@{}>{\ttfamily}l@{ $\rightarrow$ }>{\ttfamily}l@{}} |
| 576 |
% holtxdoc.sty & tex/latex/oberdiek/holtxdoc.sty\\ |
| 577 |
% holtxdoc.pdf & doc/latex/oberdiek/holtxdoc.pdf\\ |
| 578 |
% holtxdoc.dtx & source/latex/oberdiek/holtxdoc.dtx\\ |
| 579 |
% \end{tabular}^^A |
| 580 |
% }^^A |
| 581 |
% \sbox0{\t}^^A |
| 582 |
% \ifdim\wd0>\linewidth |
| 583 |
% \begingroup |
| 584 |
% \advance\linewidth by\leftmargin |
| 585 |
% \advance\linewidth by\rightmargin |
| 586 |
% \edef\x{\endgroup |
| 587 |
% \def\noexpand\lw{\the\linewidth}^^A |
| 588 |
% }\x |
| 589 |
% \def\lwbox{^^A |
| 590 |
% \leavevmode |
| 591 |
% \hbox to \linewidth{^^A |
| 592 |
% \kern-\leftmargin\relax |
| 593 |
% \hss |
| 594 |
% \usebox0 |
| 595 |
% \hss |
| 596 |
% \kern-\rightmargin\relax |
| 597 |
% }^^A |
| 598 |
% }^^A |
| 599 |
% \ifdim\wd0>\lw |
| 600 |
% \sbox0{\small\t}^^A |
| 601 |
% \ifdim\wd0>\linewidth |
| 602 |
% \ifdim\wd0>\lw |
| 603 |
% \sbox0{\footnotesize\t}^^A |
| 604 |
% \ifdim\wd0>\linewidth |
| 605 |
% \ifdim\wd0>\lw |
| 606 |
% \sbox0{\scriptsize\t}^^A |
| 607 |
% \ifdim\wd0>\linewidth |
| 608 |
% \ifdim\wd0>\lw |
| 609 |
% \sbox0{\tiny\t}^^A |
| 610 |
% \ifdim\wd0>\linewidth |
| 611 |
% \lwbox |
| 612 |
% \else |
| 613 |
% \usebox0 |
| 614 |
% \fi |
| 615 |
% \else |
| 616 |
% \lwbox |
| 617 |
% \fi |
| 618 |
% \else |
| 619 |
% \usebox0 |
| 620 |
% \fi |
| 621 |
% \else |
| 622 |
% \lwbox |
| 623 |
% \fi |
| 624 |
% \else |
| 625 |
% \usebox0 |
| 626 |
% \fi |
| 627 |
% \else |
| 628 |
% \lwbox |
| 629 |
% \fi |
| 630 |
% \else |
| 631 |
% \usebox0 |
| 632 |
% \fi |
| 633 |
% \else |
| 634 |
% \lwbox |
| 635 |
% \fi |
| 636 |
% \else |
| 637 |
% \usebox0 |
| 638 |
% \fi |
| 639 |
% \end{quote} |
| 640 |
% If you have a \xfile{docstrip.cfg} that configures and enables \docstrip's |
| 641 |
% TDS installing feature, then some files can already be in the right |
| 642 |
% place, see the documentation of \docstrip. |
| 643 |
% |
| 644 |
% \subsection{Refresh file name databases} |
| 645 |
% |
| 646 |
% If your \TeX~distribution |
| 647 |
% (\TeX\,Live, \mikTeX, \dots) relies on file name databases, you must refresh |
| 648 |
% these. For example, \TeX\,Live\ users run \verb|texhash| or |
| 649 |
% \verb|mktexlsr|. |
| 650 |
% |
| 651 |
% \subsection{Some details for the interested} |
| 652 |
% |
| 653 |
% \paragraph{Unpacking with \LaTeX.} |
| 654 |
% The \xfile{.dtx} chooses its action depending on the format: |
| 655 |
% \begin{description} |
| 656 |
% \item[\plainTeX:] Run \docstrip\ and extract the files. |
| 657 |
% \item[\LaTeX:] Generate the documentation. |
| 658 |
% \end{description} |
| 659 |
% If you insist on using \LaTeX\ for \docstrip\ (really, |
| 660 |
% \docstrip\ does not need \LaTeX), then inform the autodetect routine |
| 661 |
% about your intention: |
| 662 |
% \begin{quote} |
| 663 |
% \verb|latex \let\install=y\input{holtxdoc.dtx}| |
| 664 |
% \end{quote} |
| 665 |
% Do not forget to quote the argument according to the demands |
| 666 |
% of your shell. |
| 667 |
% |
| 668 |
% \paragraph{Generating the documentation.} |
| 669 |
% You can use both the \xfile{.dtx} or the \xfile{.drv} to generate |
| 670 |
% the documentation. The process can be configured by the |
| 671 |
% configuration file \xfile{ltxdoc.cfg}. For instance, put this |
| 672 |
% line into this file, if you want to have A4 as paper format: |
| 673 |
% \begin{quote} |
| 674 |
% \verb|\PassOptionsToClass{a4paper}{article}| |
| 675 |
% \end{quote} |
| 676 |
% An example follows how to generate the |
| 677 |
% documentation with pdf\LaTeX: |
| 678 |
% \begin{quote} |
| 679 |
%\begin{verbatim} |
| 680 |
%pdflatex holtxdoc.dtx |
| 681 |
%makeindex -s gind.ist holtxdoc.idx |
| 682 |
%pdflatex holtxdoc.dtx |
| 683 |
%makeindex -s gind.ist holtxdoc.idx |
| 684 |
%pdflatex holtxdoc.dtx |
| 685 |
%\end{verbatim} |
| 686 |
% \end{quote} |
| 687 |
% |
| 688 |
% \begin{History} |
| 689 |
% \begin{Version}{1999/06/26 v0.3} |
| 690 |
% \item |
| 691 |
% \dots |
| 692 |
% \end{Version} |
| 693 |
% \begin{Version}{2000/08/14 v0.4} |
| 694 |
% \item |
| 695 |
% \dots |
| 696 |
% \end{Version} |
| 697 |
% \begin{Version}{2001/08/27 v0.5} |
| 698 |
% \item |
| 699 |
% \dots |
| 700 |
% \end{Version} |
| 701 |
% \begin{Version}{2001/09/02 v0.6} |
| 702 |
% \item |
| 703 |
% \dots |
| 704 |
% \end{Version} |
| 705 |
% \begin{Version}{2006/06/02 v0.7} |
| 706 |
% \item |
| 707 |
% Major change: most is put into a new package \xpackage{hypdoc}. |
| 708 |
% \end{Version} |
| 709 |
% \begin{Version}{2007/10/21 v0.8} |
| 710 |
% \item |
| 711 |
% \cs{XeTeX} and \cs{XeLaTeX} added. |
| 712 |
% \end{Version} |
| 713 |
% \begin{Version}{2007/11/11 v0.9} |
| 714 |
% \item |
| 715 |
% \cs{LuaTeX} added. |
| 716 |
% \end{Version} |
| 717 |
% \begin{Version}{2007/12/12 v0.10} |
| 718 |
% \item |
| 719 |
% \cs{iniTeX} added. |
| 720 |
% \end{Version} |
| 721 |
% \begin{Version}{2008/08/11 v0.11} |
| 722 |
% \item |
| 723 |
% \cs{Newsgroup}, \cs{xnewsgroup}, and \cs{URL} updated. |
| 724 |
% \end{Version} |
| 725 |
% \begin{Version}{2009/08/07 v0.12} |
| 726 |
% \item |
| 727 |
% \cs{xmodule} added. |
| 728 |
% \end{Version} |
| 729 |
% \begin{Version}{2009/12/02 v0.13} |
| 730 |
% \item |
| 731 |
% Anchor hack for unnumbered subsections is removed for |
| 732 |
% \xpackage{hyperref} $\ge$ 2009/11/27 6.79k. |
| 733 |
% \end{Version} |
| 734 |
% \begin{Version}{2010/02/03 v0.14} |
| 735 |
% \item |
| 736 |
% \cs{XeTeX} and \cs{XeLaTeX} are made robust. |
| 737 |
% \end{Version} |
| 738 |
% \begin{Version}{2010/03/10 v0.15} |
| 739 |
% \item |
| 740 |
% \cs{LuaTeX} changed according to Hans Hagen's definition |
| 741 |
% in the luatex mailing list. |
| 742 |
% \end{Version} |
| 743 |
% \begin{Version}{2010/04/03 v0.16} |
| 744 |
% \item |
| 745 |
% Use date and time of \xext{dtx} file. |
| 746 |
% \end{Version} |
| 747 |
% \begin{Version}{2010/04/08 v0.17} |
| 748 |
% \item |
| 749 |
% Option \xoption{pdfencoding=auto} added for package \xpackage{hyperref}. |
| 750 |
% \item |
| 751 |
% Package \xpackage{hologo} added. |
| 752 |
% \end{Version} |
| 753 |
% \begin{Version}{2010/04/18 v0.18} |
| 754 |
% \item |
| 755 |
% Standard index prologue replaced by corrected prologue. |
| 756 |
% \end{Version} |
| 757 |
% \begin{Version}{2010/04/24 v0.19} |
| 758 |
% \item |
| 759 |
% Requested date of package \xpackage{hologo} updated. |
| 760 |
% \end{Version} |
| 761 |
% \begin{Version}{2010/12/03 v0.20} |
| 762 |
% \item |
| 763 |
% History is now set using \cs{raggedright}. |
| 764 |
% \end{Version} |
| 765 |
% \begin{Version}{2011/02/04 v0.21} |
| 766 |
% \item |
| 767 |
% GL needs \cs{protected@edef} instead of \cs{edef} in \cs{HistLabel}. |
| 768 |
% \end{Version} |
| 769 |
% \begin{Version}{2011/11/22 v0.22} |
| 770 |
% \item |
| 771 |
% Font stuff added for \hologo{LuaLaTeX}. |
| 772 |
% \end{Version} |
| 773 |
% \begin{Version}{2012/03/07 v0.23} |
| 774 |
% \item |
| 775 |
% Accept empty history version. |
| 776 |
% \end{Version} |
| 777 |
% \begin{Version}{2012/03/21 v0.24} |
| 778 |
% \item |
| 779 |
% Section title for history uses \cs{historyname}. |
| 780 |
% \end{Version} |
| 781 |
% \begin{Version}{2016/05/16 v0.25} |
| 782 |
% \item |
| 783 |
% Documentation updates. |
| 784 |
% \end{Version} |
| 785 |
% \begin{Version}{2016/05/16 v0.26} |
| 786 |
% \item |
| 787 |
% Documentation updates. |
| 788 |
% \end{Version} |
| 789 |
% \begin{Version}{2016/05/17 v0.27} |
| 790 |
% \item |
| 791 |
% New name for lm math font |
| 792 |
% \end{Version} |
| 793 |
% \begin{Version}{2019/07/27 v0.28} |
| 794 |
% \item Use CTAN's preferred URL form for packages |
| 795 |
% Documentation updates. |
| 796 |
% \end{Version} |
| 797 |
% \begin{Version}{2019/11/12 v0.29} |
| 798 |
% \item |
| 799 |
% Add \verb|\bibpackage| (previously defined inline in some of the packages). |
| 800 |
% Adjust CTAN links. |
| 801 |
% \end{Version} |
| 802 |
% \begin{Version}{2019/12/09 v0.30} |
| 803 |
% \item |
| 804 |
% Documentation updates. |
| 805 |
% \item Don't use \xpackage{ifluatex} legacy package. |
| 806 |
% \item use `\xpackage{hologo} definitions in more cases. |
| 807 |
% \end{Version} |
| 808 |
% \end{History} |
| 809 |
% |
| 810 |
% \PrintIndex |
| 811 |
% |
| 812 |
% \Finale |
| 813 |
\endinput |