| 1 |
%% |
| 2 |
%% This is file `apptools.drv', |
| 3 |
%% generated with the docstrip utility. |
| 4 |
%% |
| 5 |
%% The original source files were: |
| 6 |
%% |
| 7 |
%% apptools.dtx (with options: `driver') |
| 8 |
%% |
| 9 |
%% This is a generated file. |
| 10 |
%% |
| 11 |
%% Project: apptools |
| 12 |
%% Version: 2012/11/28 v1.0 |
| 13 |
%% |
| 14 |
%% Copyright (c) 2012 by Sebastian Kuhnert <mail at sebastian-kuhnert.de> |
| 15 |
%% |
| 16 |
%% This work may be distributed and/or modified under the conditions of the LaTeX |
| 17 |
%% Project Public License, either version 1.3c of this license or (at your |
| 18 |
%% option) any later version. The latest version of this license is available at |
| 19 |
%% http://www.latex-project.org/lppl.txt and version 1.3c or later is part of all |
| 20 |
%% distributions of LaTeX version 2008/05/04 or later. |
| 21 |
%% |
| 22 |
%% This work has the LPPL maintenance status `maintained', the Current Maintainer |
| 23 |
%% of this work is Sebastian Kuhnert. |
| 24 |
%% |
| 25 |
%% This work consists of the main source file apptools.dtx and the derived files |
| 26 |
%% apptools.sty, apptools.pdf, apptools.ins, apptools.drv, apptools-test.tex. |
| 27 |
%% |
| 28 |
\NeedsTeXFormat{LaTeX2e} |
| 29 |
\ProvidesFile{apptools.drv}% |
| 30 |
[2012/11/28 v1.0 Tools for customizing appendices]% |
| 31 |
\documentclass{ltxdoc} |
| 32 |
\usepackage{hypdoc} |
| 33 |
\usepackage[openlevel=2]{bookmark} |
| 34 |
\usepackage{array} |
| 35 |
|
| 36 |
\usepackage[T1]{fontenc} |
| 37 |
\usepackage{textcomp} |
| 38 |
\usepackage[scaled]{berasans} |
| 39 |
\usepackage[scaled]{beramono} |
| 40 |
\usepackage[bitstream-charter]{mathdesign} |
| 41 |
\usepackage[activate]{microtype} |
| 42 |
|
| 43 |
\usepackage{xcolor} |
| 44 |
\hypersetup{linkcolor=red!50!black, |
| 45 |
urlcolor=purple!50!black} |
| 46 |
\urlstyle{sf} |
| 47 |
|
| 48 |
\usepackage[utf8]{inputenc} |
| 49 |
|
| 50 |
\usepackage{etoolbox} |
| 51 |
|
| 52 |
\usepackage[british,iso]{isodate} |
| 53 |
|
| 54 |
\usepackage{embedfile} |
| 55 |
\embedfile[desc={LaTeX docstrip source file for package `apptools'}, |
| 56 |
mimetype={text/x-tex}]{apptools.dtx} |
| 57 |
|
| 58 |
\newcommand{\CTAN}[1]{\href{http://mirror.ctan.org/#1}{CTAN:\nolinkurl{#1}}} |
| 59 |
\newcommand{\TDS}[1]{TDS:\nolinkurl{#1}} |
| 60 |
\newcommand{\file}[1]{\nolinkurl{#1}} |
| 61 |
|
| 62 |
\makeatletter |
| 63 |
\renewcommand{\DescribeMacro}[1]{% |
| 64 |
\DescribeMACRO #1\@empty\@empty\@empty |
| 65 |
} |
| 66 |
\def\DescribeMACRO#1#2\@empty{% |
| 67 |
\addvspace{1em}\noindent |
| 68 |
\phantomsection |
| 69 |
\label{macrodesc:\expandafter\@gobble\string #1\@empty}% |
| 70 |
\addcontentsline{toc}{subsection}{% |
| 71 |
\texttt{\textbackslash\expandafter\@gobble\string #1\@empty}}% |
| 72 |
\SpecialUsageIndex{#1}% |
| 73 |
\begingroup |
| 74 |
\togglefalse{linktodesc}% |
| 75 |
\hspace{-4em}\texttt{\color{blue!50!black}% |
| 76 |
\expandafter\cs\expandafter{\expandafter\@gobble\string #1\@empty}#2}% |
| 77 |
\endgroup |
| 78 |
\par\smallskip\noindent\ignorespaces |
| 79 |
} |
| 80 |
\renewcommand{\PrintMacroName}[1]{% |
| 81 |
\phantomsection\label{macrodef:\expandafter\@gobble\string#1\@empty}% |
| 82 |
\raisebox{\baselineskip}{\hypertarget{macrodef:\expandafter\@gobble\string |
| 83 |
#1\@empty}{}}% |
| 84 |
\bookmark[dest={macrodef:\expandafter\@gobble\string |
| 85 |
#1\@empty},level=4]{\textbackslash #1}% |
| 86 |
\begingroup |
| 87 |
\toggletrue{linktodesc}% |
| 88 |
\strut\MacroFont\expandafter\cs\expandafter{\expandafter\@gobble\string |
| 89 |
#1\@empty}% |
| 90 |
\endgroup |
| 91 |
} |
| 92 |
\renewcommand{\meta@font@select}{% |
| 93 |
\rmfamily\itshape |
| 94 |
} |
| 95 |
\renewcommand{\@hangfrom}[1]{% |
| 96 |
\setbox\@tempboxa\hbox{\llap{#1}}% |
| 97 |
\hangindent\wd\@tempboxa |
| 98 |
\noindent\box\@tempboxa |
| 99 |
} |
| 100 |
\makeatother |
| 101 |
|
| 102 |
\newtoggle{linktodesc} |
| 103 |
\toggletrue{linktodesc} |
| 104 |
\csdef{cs }#1{% |
| 105 |
\iftoggle{linktodesc}{% |
| 106 |
\ifcsdef{r@macrodesc:#1}{% |
| 107 |
\hyperref[macrodesc:#1]{\texttt{\color{blue!50!black}\char `\\#1}}% |
| 108 |
}{% |
| 109 |
\texttt{\color{blue!50!black}\char `\\ #1}% |
| 110 |
}% |
| 111 |
}{% |
| 112 |
\ifcsdef{r@macrodef:#1}{% |
| 113 |
\hyperref[macrodef:#1]{\texttt{\color{blue!50!black}\char `\\#1}}% |
| 114 |
}{% |
| 115 |
\texttt{\color{blue!50!black}\char `\\#1}% |
| 116 |
}% |
| 117 |
}% |
| 118 |
} |
| 119 |
|
| 120 |
\EnableCrossrefs |
| 121 |
\CodelineIndex |
| 122 |
|
| 123 |
\begin{document} |
| 124 |
\DocInput{apptools.dtx} |
| 125 |
\end{document} |
| 126 |
\endinput |
| 127 |
%% |
| 128 |
%% End of file `apptools.drv'. |