| 1 |
%% |
| 2 |
% \skiplines |
| 3 |
%<*master> |
| 4 |
%% \iffalse ^^A we skip the debug setting |
| 5 |
\IfFileExists{\string~/bin/gen_and_xela}{\errorcontextlines=1000 }{} |
| 6 |
%% \fi |
| 7 |
%% ^^A $Id: TheUltimateMaster.gmd,v 0.298 2011/02/02 18:35:58 natror Exp natror $ |
| 8 |
% \endskiplines |
| 9 |
% |
| 10 |
%% \BundleInfoFromName{doc_gmdoc} |
| 11 |
%% \title{\doc_gmdocTitle } |
| 12 |
%% \author{Grzegorz Murzynowski} |
| 13 |
%% \maketitle |
| 14 |
%% |
| 15 |
%% \let\ty\emph \let\df\dekfracc |
| 16 |
%% |
| 17 |
%% \begin{copyrnote} |
| 18 |
%% |
| 19 |
%% |
| 20 |
%% Copyright ©\, |
| 21 |
%% by Grzegorz ‘Natror’ Murzynowski |
| 22 |
%% natror (at) gmail (dot) com |
| 23 |
%% |
| 24 |
%% This program is subject to the \LaTeX\ Project Public License. |
| 25 |
%% See ^^A |
| 26 |
%% \url{http://www.ctan.org/tex-archive/help/Catalogue/licenses.lppl.html} ^^A |
| 27 |
%% for the details of that license.\rrthis |
| 28 |
%% |
| 29 |
%% \acro{LPPL} status: "author-maintained". \par |
| 30 |
%% |
| 31 |
%% |
| 32 |
%% |
| 33 |
%% |
| 34 |
%% |
| 35 |
%% For the documentation please refer to the file(s) |
| 36 |
%% \file{doc_gmdoc.{gmd,pdf}}. |
| 37 |
%% |
| 38 |
%% \end{copyrnote} |
| 39 |
%% |
| 40 |
% |
| 41 |
% |
| 42 |
% \skiplines |
| 43 |
%</master> |
| 44 |
% \endskiplines |
| 45 |
% |
| 46 |
% |
| 47 |
%% |
| 48 |
%% |
| 49 |
\NeedsTeXFormat{LaTeX2e} |
| 50 |
\ProvidesClass{doc_gmdoc} |
| 51 |
[2010/09/25 v0.993 (GM)] |
| 52 |
|
| 53 |
|
| 54 |
%% |
| 55 |
\PassOptionsToPackage{hyperindex=false}{hyperref}% Because FM writes some almost |
| 56 |
|
| 57 |
\documentclass[countalllines, |
| 58 |
codespacesblank, outeroff, pagella, cronos, cursor, |
| 59 |
fontspec=quiet]{gmdocc} |
| 60 |
\usepackage{array} |
| 61 |
|
| 62 |
\VisSpacesGrey |
| 63 |
|
| 64 |
\def\BasePath{/home/natror/texmf/source/latex/base/}% Of course, |
| 65 |
|
| 66 |
\ltxLookSetup |
| 67 |
\gmdoccMargins |
| 68 |
\olddocIncludes% This is the crucial declaration. |
| 69 |
\twocoltoc |
| 70 |
|
| 71 |
\DeleteShortVerb\| |
| 72 |
\OldMakeShortVerb*\| |
| 73 |
\HideAllDefining |
| 74 |
|
| 75 |
\makeatletter |
| 76 |
|
| 77 |
\edef\gmd@wykrzykniki{\xiihash\space\xiihash\space} |
| 78 |
\edef\gmd@wykrzykniki{\gmd@wykrzykniki\gmd@wykrzykniki} |
| 79 |
\edef\gmd@wykrzykniki{\gmd@wykrzykniki\gmd@wykrzykniki} |
| 80 |
\edef\gmd@wykrzykniki{\gmd@wykrzykniki\gmd@wykrzykniki} |
| 81 |
|
| 82 |
\author{Frank Mittelbach \and David Carlisle} |
| 83 |
\title{The \pk{doc} and \pk{shortvrb} Packages\\ and\\ |
| 84 |
the \pk{ltxdoc} Class} |
| 85 |
\date{Typeset with the \pk{gmdoc} package by Natror\\\today} |
| 86 |
|
| 87 |
\errorcontextlines=1000 |
| 88 |
\fooatletter{% |
| 89 |
\typeout{@@@@@ \meaning\@begindocumenthook}} |
| 90 |
\begin{document} |
| 91 |
|
| 92 |
\smartunder |
| 93 |
|
| 94 |
\typeout{@@@@ in document} |
| 95 |
|
| 96 |
\maketitle |
| 97 |
\typeout{@@@@ after title} |
| 98 |
|
| 99 |
\addtocontents{toc}{% to discard |\begin{multicols}{2}| of one |
| 100 |
% included document. (Table of contents is declared twocolumn with |
| 101 |
% |\twocoltoc| above.) |
| 102 |
\let\protect\begin\protect\@gobbletwo |
| 103 |
\protect\Store@Macro\protect\end |
| 104 |
\def\protect\end{\protect\Restore@Macro\protect\end\protect\@gobble}% |
| 105 |
}% Because one document has a~\env{multicols} twocolumn table of |
| 106 |
|
| 107 |
\tableofcontents |
| 108 |
|
| 109 |
|
| 110 |
\makeatletter |
| 111 |
\AfterMacrocode{161}{% it's for a~tiny little typo in line 3299: They |
| 112 |
% forgot to wrap |\@tempb| and |\@tempc| in shortverbs. |
| 113 |
\def\@tempb{\cs{@tempb} }\def\@tempc{\cs{@tempc} }} |
| 114 |
|
| 115 |
\AtBegInputOnce{% |
| 116 |
\chschange{v2.1b}{2006/10/20}{2126}% |
| 117 |
\let\CheckSum\gobble |
| 118 |
% \par Of course, none of the documents is not loaded, so we give the |
| 119 |
% fileinfo explicitly. |
| 120 |
\def\filedate{2004/02/09}\def\fileversion{v2.1b}% |
| 121 |
% \label{explicit fileinfo} |
| 122 |
\let\GetFileInfo\relax |
| 123 |
\addtomacro\IndexParms{\arraybackslash}}% because |\IndexParms| use |
| 124 |
|
| 125 |
\DocInclude[\BasePath]{doc} |
| 126 |
|
| 127 |
\AtBegInputOnce{% |
| 128 |
\chschange{v2.0u}{2006/10/20}{410}% |
| 129 |
\let\CheckSum\gobble |
| 130 |
\def\filedate{1999/08/08} \def\fileversion{v2.0u}% see line |
| 131 |
% \ref{explicit fileinfo}. |
| 132 |
\let\GetFileInfo\relax |
| 133 |
% The rest of this |\AtBegInputOnce|'s contents is necessary since |
| 134 |
% DC wrote it not commented out, which with \pk{doc} results with |
| 135 |
% printing it both to the package (class) and the documentation, but |
| 136 |
% with \pk{gmdoc} it puts this stuff in the code layer that'll be |
| 137 |
% only printed verbatim. |
| 138 |
\providecommand\dst{\expandafter{\normalfont\scshape docstrip}} |
| 139 |
\title{The file \texttt{ltxdoc.dtx} for use with |
| 140 |
\LaTeXe.\thanks{This file has version |
| 141 |
number \fileversion, dated \filedate.}\\[2pt] |
| 142 |
It contains the code for \texttt{ltxdoc.cls}} |
| 143 |
\date{\filedate} |
| 144 |
\author{David Carlisle} |
| 145 |
\maketitle} |
| 146 |
|
| 147 |
\DocInclude[\BasePath]{ltxdoc}% |
| 148 |
|
| 149 |
\gmdocIncludes |
| 150 |
|
| 151 |
\AtBegInputOnce{% |
| 152 |
\title{\pk{doc_by_gmdoc.tex} The Driver\thanks{As mentioned in the |
| 153 |
title, I~typeset these package and class with the \pk{gmdoc} |
| 154 |
package, for which are they a~great inspiration and the base. |
| 155 |
The typesetting needed only a~few tricks, so here i~give the |
| 156 |
code of the `driver': a~snake eats its tail ;-) .}} |
| 157 |
\author{Grzegorz `Natror' Murzynowski}% |
| 158 |
\date{\today}% |
| 159 |
\maketitle} |
| 160 |
\SelfInclude |
| 161 |
|
| 162 |
\typeout{% |
| 163 |
Produce change log with^^J% |
| 164 |
makeindex -r -s gmglo.ist -o \jobname.gls \jobname.glo^^J |
| 165 |
(gmglo.ist should be put into some texmf/makeindex directory.)^^J} |
| 166 |
\PrintChanges |
| 167 |
\typeout{% |
| 168 |
Produce index with^^J% |
| 169 |
makeindex -r \jobname^^J} |
| 170 |
\PrintIndex |
| 171 |
|
| 172 |
\end{document} |
| 173 |
|
| 174 |
|
| 175 |
makeindex -r doc_gmdoc |
| 176 |
makeindex -r -s gmglo.ist -o doc_gmdoc.gls doc_gmdoc.glo |
| 177 |
|
| 178 |
|
| 179 |
\endinput |
| 180 |
%% |
| 181 |
%% End of file `doc_gmdoc.tex'. |