summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/gmdoc/basedrivers/doc_gmdoc.tex
blob: 661cdff60326458d06bffceb3aa150599c283218 (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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
%% 
% \skiplines
%<*master>
%% \iffalse ^^A we skip the debug setting
\IfFileExists{\string~/bin/gen_and_xela}{\errorcontextlines=1000 }{}
%% \fi
%% ^^A $Id: TheUltimateMaster.gmd,v 0.298 2011/02/02 18:35:58 natror Exp natror $
% \endskiplines
%
%% \BundleInfoFromName{doc_gmdoc}
%% \title{\doc_gmdocTitle }
%% \author{Grzegorz Murzynowski}
%% \maketitle
%%
%% \let\ty\emph \let\df\dekfracc
%%
%% \begin{copyrnote}
%%
%% 
%% Copyright ©\, 
%% by Grzegorz ‘Natror’ Murzynowski
%% natror (at) gmail (dot) com
%% 
%% This program is subject to the \LaTeX\ Project Public License.
%% See ^^A
%% \url{http://www.ctan.org/tex-archive/help/Catalogue/licenses.lppl.html} ^^A
%% for the details of that license.\rrthis
%%
%% \acro{LPPL} status: "author-maintained". \par
%%
%% 
%% 
%% 
%% 
%% For the documentation please refer to the file(s)
%% \file{doc_gmdoc.{gmd,pdf}}.
%%
%% \end{copyrnote}
%% 
%
%
% \skiplines
%</master>
% \endskiplines
%
%
%% 
%% 
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{doc_gmdoc}
    [2010/09/25 v0.993  (GM)]


%%
\PassOptionsToPackage{hyperindex=false}{hyperref}% Because FM writes some almost

\documentclass[countalllines,
codespacesblank, outeroff, pagella, cronos, cursor,
fontspec=quiet]{gmdocc}
\usepackage{array}

\VisSpacesGrey

\def\BasePath{/home/natror/texmf/source/latex/base/}% Of course,

\ltxLookSetup
\gmdoccMargins
\olddocIncludes% This is the crucial declaration.
\twocoltoc

\DeleteShortVerb\|
\OldMakeShortVerb*\|
\HideAllDefining

\makeatletter

\edef\gmd@wykrzykniki{\xiihash\space\xiihash\space}
\edef\gmd@wykrzykniki{\gmd@wykrzykniki\gmd@wykrzykniki}
\edef\gmd@wykrzykniki{\gmd@wykrzykniki\gmd@wykrzykniki}
\edef\gmd@wykrzykniki{\gmd@wykrzykniki\gmd@wykrzykniki}

\author{Frank Mittelbach \and David Carlisle}
\title{The \pk{doc} and \pk{shortvrb} Packages\\ and\\
  the \pk{ltxdoc} Class}
\date{Typeset with the \pk{gmdoc} package by Natror\\\today}

\errorcontextlines=1000
\fooatletter{%
  \typeout{@@@@@ \meaning\@begindocumenthook}}
\begin{document}

\smartunder

\typeout{@@@@ in document}

\maketitle
\typeout{@@@@ after title}

\addtocontents{toc}{% to discard |\begin{multicols}{2}| of one
  % included document. (Table of contents is declared twocolumn with
  % |\twocoltoc| above.)
    \let\protect\begin\protect\@gobbletwo
      \protect\Store@Macro\protect\end
      \def\protect\end{\protect\Restore@Macro\protect\end\protect\@gobble}%
}% Because one document has a~\env{multicols} twocolumn table of

\tableofcontents


\makeatletter
\AfterMacrocode{161}{% it's for a~tiny little typo in line 3299: They
  % forgot to wrap |\@tempb| and |\@tempc| in shortverbs.
  \def\@tempb{\cs{@tempb} }\def\@tempc{\cs{@tempc} }}

\AtBegInputOnce{%
  \chschange{v2.1b}{2006/10/20}{2126}%
  \let\CheckSum\gobble
  % \par Of course, none of the documents is not loaded, so we give the
  % fileinfo explicitly.
  \def\filedate{2004/02/09}\def\fileversion{v2.1b}%
  % \label{explicit fileinfo}
  \let\GetFileInfo\relax
  \addtomacro\IndexParms{\arraybackslash}}% because |\IndexParms| use

\DocInclude[\BasePath]{doc}

\AtBegInputOnce{%
  \chschange{v2.0u}{2006/10/20}{410}%
  \let\CheckSum\gobble
  \def\filedate{1999/08/08} \def\fileversion{v2.0u}% see line
  % \ref{explicit fileinfo}.
  \let\GetFileInfo\relax
  % The rest of this |\AtBegInputOnce|'s contents is necessary since
  % DC wrote it not commented out, which with \pk{doc} results with
  % printing it both to the package (class) and the documentation, but
  % with \pk{gmdoc} it puts this stuff in the code layer that'll be
  % only printed verbatim.
  \providecommand\dst{\expandafter{\normalfont\scshape docstrip}}
  \title{The file \texttt{ltxdoc.dtx} for use with
    \LaTeXe.\thanks{This file has version
      number \fileversion, dated \filedate.}\\[2pt]
    It contains the code for \texttt{ltxdoc.cls}}
  \date{\filedate}
  \author{David Carlisle}
  \maketitle}

\DocInclude[\BasePath]{ltxdoc}%

\gmdocIncludes

\AtBegInputOnce{%
  \title{\pk{doc_by_gmdoc.tex} The Driver\thanks{As mentioned in the
      title, I~typeset these package and class with the \pk{gmdoc}
      package, for which are they a~great inspiration and the base.
      The typesetting needed only a~few tricks, so here i~give the
      code of the `driver': a~snake eats its tail ;-) .}}
    \author{Grzegorz `Natror' Murzynowski}%
    \date{\today}%
    \maketitle}
\SelfInclude

\typeout{%
  Produce change log with^^J%
  makeindex -r -s gmglo.ist -o \jobname.gls \jobname.glo^^J
  (gmglo.ist should be put into some texmf/makeindex directory.)^^J}
\PrintChanges
\typeout{%
  Produce index with^^J%
  makeindex -r \jobname^^J}
 \PrintIndex

\end{document}


makeindex -r doc_gmdoc
makeindex -r -s gmglo.ist -o doc_gmdoc.gls doc_gmdoc.glo


\endinput
%%
%% End of file `doc_gmdoc.tex'.