Debian Codegraph @

texmf-dist/doc/latex/gmdoc/basedrivers/source2e_gmdoc.tex

raw
1 % \iffalse meta-comment
2 %
3 % Copyright 1993 1994 1995 1996 1997 1998 1999 2000 2001 2006
4 % The LaTeX3 Project and any individual authors listed elsewhere
5 % in this file.
6 %
7 % This I~hope would be part of the LaTeX base system.
8 % -------------------------------------------
9 %
10 % It may be distributed and/or modified under the
11 % conditions of the LaTeX Project Public License, either version 1.2
12 % of this license or (at your option) any later version.
13 % The latest version of this license is in
14 % http://www.latex-project.org/lppl.txt
15 % and version 1.2 or later is part of all distributions of LaTeX
16 % version 1999/12/01 or later.
17 %
18 % The list of all files belonging to the LaTeX base distribution is
19 % given in the file `manifest.txt'. See also `legal.txt' for additional
20 % information.
21 %
22 % \fi
23 %
24 % \division{Some Typesetting Remarks}
25 %
26 % This driver typesets The Source $2_\varepsilon$ included in the
27 % \TeX Live 2005 distribution. Some tricks here are done just for
28 % fixing typos in the Source Files. The Source Files themselves are
29 % intact.
30 %
31 % Most probably you should redefine the |\BasePath| macro so that it
32 % was the path of the \file{\dots/source/latex/base} directory on your
33 % system. The path levels should be separated with slashes (even on
34 % Windows) and should also end with a~slash (to concatenate well with
35 % the file name).
36 %
37 % \stanza
38 % While \TeX ing The Source again after a~fatally erroneous pass there
39 % happened the `\TeX\ capacity exceded error' sometimes. \TeX ing once
40 % again was the right thing to do.
41 %
42 % The \pk{hyperref} package usually issues some warnings about non
43 % existence of some hypertargets. I~consider it rather a~feature of
44 % \pk{hyperref} (a~bug?) than a~bug in the typeset file(s).
45 %
46 % \stanza
47 % One more thing you shouldn't bother of is the differences of the
48 % checksums, I~mean the usual \pk{gmdoc} message that the checksum
49 % stated in the file differs from \pk{gmdoc}'s own count. That is
50 % O.K.\ since the checksum stated in a~traditional \file{.dtx}
51 % is the number of backslashes in the macrocodes while the checksum
52 % handled and expected by \pk{gmdoc} is the number of \emph{the escape ^^B
53 % chars}. Don't get the difference? Assume the declared code escape
54 % char is |\| (as usual) and consider |\\| in the code. Due to
55 % the traditional counting this CS increases the checksum by 2 while
56 % due to mine by 1: the second bslash is \emph{not} escape char: it's
57 % the CS name.
58 %
59 % Moreover, when you declare |\CodeEscapeChar\!| e.g., the code
60 %\[\hbox{|!Alice !\!has !an !aligator|}\]
61 % increases the `new way' checksum by 5 not by 1 as it would do the
62 % traditional one.
63 %
64 % \stanza
65 % This driver uses an unofficial little package \pk{gmeometric} to
66 % allow the |\geometry| command also inside \env{document}. This
67 % package is included in the drivers' directory.
68 %
69 %
70 % \division{The Body}
71 %
72 % ``This document will typeset the \LaTeX\ sources as a single document.
73 % This will produce quite a large file (roughly 555 pages) and may
74 % take a long time.
75 %
76 % Some notes on processing this document are contained at the end
77 % of this document's source file, after |\end{document}| (not typeset).''
78 %
79 % GM 2006/12/1
80 %
81 % First a special index style for makeindex.
82 %
83
84 \begin{filecontents}{gmsource2e.ist}
85 preamble
86 "\n \\begin{theindex} \n"
87 postamble
88 "\n\n \\end{theindex}\n"
89 % ^^A~The next lines will produce some warnings when
90 % ^^A~running Makeindex as they try to cover two different
91 % ^^A~versions of the program:
92 % ^^A
93 % ^^A~The three lines below caused unclosed groups in the .ind
94 % file. May they be cursed!
95 % ^^A~lethead_prefix "{\\bfseries\\hfill "
96 % ^^A~lethead_suffix "\\hfill}\\nopagebreak\n"
97 % ^^A~lethead_flag 1
98 heading_prefix "{\\bfseries\\hfill "
99 heading_suffix "\\hfill}\\nopagebreak\n"
100 headings_flag 1
101
102 % and just for source2e:\\
103 % Remove R so I is treated in sequence I J K not I II III
104 page_precedence "rnaA"
105 \end{filecontents}
106
107
108 \PassOptionsToPackage{codespacesgrey, indexallmacros}{gmdoc}
109
110 \if11
111 \documentclass[debug, minion, cronos, cursor, fontspec=quiet]{gmdocc}%
112
113 % ^^A[FakeBold=2, FakeStretch=0.87]{Nimbus Mono L}
114 \mcdiagOn
115
116 \else
117 \documentclass[fontspec=quiet]{gmdocc}%
118 \fi
119
120 \foone{\catcode`_=12 }
121 {\if1 1\includeonly{source2e_by_gmdoc}\fi}
122
123 %^^A\usepackage[margin=2cm,b5paper]{geometry}% and this
124 \usepackage{gmoldcomm}% Definitions of \env{oldcomments} and |\task|.
125
126
127 \listfiles
128
129 \ltxLookSetup
130 \gmdoccMargins
131 \olddocIncludes% This is the crucial declaration to drive \pk{gmdoc} into
132 % the traditional settings.
133 \twocoltoc% For towocolumn table of contents.
134
135 \DeleteShortVerb\|
136 \OldMakeShortVerb*\|% To define shortverb \verb+|+ such that it
137 % remains shortverb in math mode (by default I~define it to be $\vert$ in
138 % math mode.
139
140 % Do not index some TeX primitives, and some common plain TeX commands.
141
142 \DoNotIndex{\def,\long,\edef,\xdef,\gdef,\let,\global}
143 \DoNotIndex{\if,\ifnum,\ifdim,\ifcat,\ifmmode,\ifvmode,\ifhmode,%
144 \iftrue,\iffalse,\ifvoid,\ifx,\ifeof,\ifcase,\else,\or,\fi}
145 \DoNotIndex{\box,\copy,\setbox,\unvbox,\unhbox,\hbox,%
146 \vbox,\vtop,\vcenter}
147 \DoNotIndex{\@empty,\immediate,\write}
148 \DoNotIndex{\egroup,\bgroup,\expandafter,\begingroup,\endgroup}
149 \DoNotIndex{\divide,\advance,\multiply,\count,\dimen}
150 \DoNotIndex{\relax,\space,\string}
151 \DoNotIndex{\csname,\endcsname,\@spaces,\openin,\openout,%
152 \closein,\closeout}
153 \DoNotIndex{\catcode,\endinput}
154 \DoNotIndex{\jobname,\message,\read,\the,\m@ne,\noexpand}
155 \DoNotIndex{\hsize,\vsize,\hskip,\vskip,\kern,\hfil,\hfill,\hss}
156 \DoNotIndex{\m@ne,\z@,\z@skip,\@ne,\tw@,\p@}
157 \DoNotIndex{\dp,\wd,\ht,\vss,\unskip}
158
159 % Set up the Index and Change History to use |\part|.
160 \makeatletter
161 \def\indexdiv{\part*}
162 \AtDIPrologue{\@ifnotmw{%
163 \markboth{Index}{Index}%
164 \addcontentsline{toc}{part}{Index}}{}%
165 }
166
167 \GlossaryPrologue{\part*{Change History}%
168 % Allow control names to be hyphenated here\dots
169 {\GlossaryParms\ttfamily\hyphenchar\font=`\-}%
170 \@ifnotmw{%
171 \markboth{Change History}{Change History}%
172 \addcontentsline{toc}{part}{Change History}}{}%
173 }
174
175 % ``The standard |\changes| command modified slightly to better cope with
176 % this multiple file document.''--- Not quite:
177 \makeatletter
178 % \begin{verbatim}
179 % % \def\changes@#1#2#3{%
180 % % \let\protect\@unexpandable@protect
181 % % \edef\@tempa{\noexpand\glossary{#2\space\currentfile\space#1\levelchar
182 % % \ifx\saved@macroname\@empty
183 % % \space
184 % % \actualchar
185 % % \generalname
186 % % \else
187 % % \expandafter\@gobble
188 % % \saved@macroname
189 % % \actualchar
190 % % \string\verb\quotechar*%
191 % % \verbatimchar\saved@macroname
192 % % \verbatimchar
193 % % \fi
194 % % :\levelchar #3}}%
195 % % \@tempa\endgroup\@esphack}
196 %\end{verbatim}
197 \makeatother
198
199 % Produce a Change Log and (2 column) Index.
200 \RecordChanges
201 \CodelineIndex
202 \EnableCrossrefs
203 \setcounter{IndexColumns}{2}
204
205 % Needed for documentation in \file{ltoutenc.dtx}.
206 \usepackage{textcomp}
207
208 \olddocIncludes
209 \HideAllDefining
210
211 \fooatletter{%
212 \@ifXeTeX{%
213 \def\"#1{%
214 \if o#1\oumlaut\fi
215 \if u#1\uumlaut\fi
216 %^^A \else\typeout{****** \cs{"} with argument }\show#1\fi
217 }}{}}
218
219 \foone{\makeatletter\catcode`\#=12 }{%
220 \def\gmd@wykrzykniki{# # # # # # # # #}}
221
222 \begin{document}
223
224
225 \title{The \LaTeXe\ Sources\thanks{Typeset with \pk{gmdoc} by Natror
226 on \today.}}
227 \author{%
228 Johannes Braams\\
229 David Carlisle\\
230 Alan Jeffrey\\
231 Leslie Lamport\\
232 Frank Mittelbach\\
233 Chris Rowley\\
234 Rainer Sch\"opf}
235
236
237 \def\BasePath{/home/natror/texmf/source/latex/base/}
238
239
240 % This command will be used to input the patch file
241 % if that file exists.
242 \newcommand{\includeltpatch}{%
243 \def\currentfile{ltpatch.ltx}
244 \part{ltpatch}
245 {\let\ttfamily\relax
246 \xdef\filekey{\filekey, \thepart={\ttfamily\currentfile}}}%
247 Things we did wrong\ldots
248 \IndexInput{ltpatch.ltx}}
249
250
251
252 % Get the date from \file{ltvers.dtx}
253 \makeatletter
254 \let\patchdate=\@empty
255 \begingroup
256 \def\ProvidesFile#1\fmtversion#2{\date{#2}\endinput}
257 \input{\BasePath ltvers.dtx}
258 \global\let\X@date=\@date
259
260 % Add the patch version if available.
261 \long\def\Xdef#1#2#3\def#4#5{%
262 \xdef\X@date{#2}%
263 \xdef\patchdate{#5}%
264 \endinput}%
265 \InputIfFileExists{ltpatch.ltx}
266 {\let\def\Xdef}{\global\let\includeltpatch\relax}
267 \endgroup
268
269 \ifx\@date\X@date
270 \def\Xpatch{0}
271 \ifx\patchdate\Xpatch\else
272 \edef\@date{\@date\space Patch level \patchdate}
273 \fi
274 \else
275 \@warning{ltpatch.ltx does not match ltvers.dtx!}
276 \let\includeltpatch\relax
277 \fi
278 \makeatother
279
280 \pagenumbering{roman}
281 \thispagestyle{empty}
282
283 %^^A\traceon
284 \maketitle
285 \relax
286 %^^A \traceoff
287 \emptify\maketitle
288
289 \tableofcontents
290
291 \clearpage
292
293 \pagenumbering{arabic}
294
295
296 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
297
298 %``Each of the following |\DocInclude| lines includes a file with extension
299 % \file{.dtx}. Each of these files may be typeset separately. For instance
300 %\[\hbox{|latex ltboxes.dtx|}\]
301 % will typeset the source of the \LaTeX\ box commands.''
302 %
303 % (Well, I~(Natror) prepared only this common driver.)
304 %
305 % If this file is processed, each of these separate \file{.dtx} files will be
306 % contained as a part of a single document. Using \file{ltxdoc.cfg} you can
307 % then optionally produce a combined index and/or change history for
308 % the entire source of the format file. Note that such a document will
309 % be quite large (about 555 pages).
310 %
311
312 \DocInclude[\BasePath]{ltdirchk} % System dependent initialisation
313
314 \AfterMacrocode{53}{\def\do{\cs{do}}}% A~bare |\do| in narration on
315 % line 161.
316 \DocInclude[\BasePath]{ltplain} % LaTeX version of Knuth's \file{plain.tex}.
317
318 \DocInclude[\BasePath]{ltvers} % Current version date.
319
320 \DocInclude[\BasePath]{ltdefns} % Initial definitions.
321
322 \DocInclude[\BasePath]{ltalloc} % Allocation of counters and others.
323
324 \DocInclude[\BasePath]{ltcntrl} % Program control macros.
325
326 \DocInclude[\BasePath]{lterror} % Error handling.
327
328 \DocInclude[\BasePath]{ltpar} % Paragraphs.
329
330 \DocInclude[\BasePath]{ltspace} % Spacing, line and page breaking.
331
332 \DocInclude[\BasePath]{ltlogos} % Logos.
333
334 \DocInclude[\BasePath]{ltfiles} % |\input| files and related commands.
335
336 \AtBegInputOnce{\let\task\gobble}% In general |\task| gobbles two, but
337 % in this file it's used with one argument and next to it is
338 % |\changes| (which in \pk{gmdoc} is |\outer| so gobbling it raises an
339 % error).
340 \DocInclude[\BasePath]{ltoutenc} % Output encoding interface.
341
342 \DocInclude[\BasePath]{ltcounts} % Counters.
343
344 \DocInclude[\BasePath]{ltlength} % Lengths.
345
346 \DocInclude[\BasePath]{ltfssbas} % NFSS Base macros.
347
348 %^^A\AtBegInputOnce{\addtomacro\maketitle{\traceoff}\traceon}%{\nameshow{@author}\show\maketitle\nameshow{@maketitle}}
349 \DocInclude[\BasePath]{ltfsstrc} % NFSS Tracing (and \file{tracefnt.sty}).
350
351 \DocInclude[\BasePath]{ltfsscmp} % NFSS1 Compatibility.
352
353 \DocInclude[\BasePath]{ltfssdcl} % NFSS Declarative interface.
354
355 \DocInclude[\BasePath]{ltfssini} % NFSS Initialisation.
356
357 \DocInclude[\BasePath]{fontdef} % \file{fonttext.ltx/fontmath.ltx}
358
359 \DocInclude[\BasePath]{preload} % \file{preload.ltx}
360
361 \DocInclude[\BasePath]{ltfntcmd} % |\textrm| etc.
362
363 \DocInclude[\BasePath]{ltpageno} % Page numbering.
364
365 \DocInclude[\BasePath]{ltxref} % Cross referencing.
366
367 \AfterMacrocode{1137}{\let\GMDebugCS\cs
368 \def\cs##1{\expandafter\GMDebugCS\expandafter{\string##1}}}
369 % |\cs{\@defaultsubs}| on line 257, |\cs{\@refundefined}| on line
370 % 263. It's the first step. The next is done before |\PrintChanges|.
371 \AfterMacrocode{1139}{\let\cs\GMDebugCS}
372 \AfterMacrocode{1183}{% The last |\changes| have second argument
373 % |{1994/05/26/16}|.
374 \csname changes\endcsname{v0.9i}{1993/12/16}{\cs{literal} added}%
375 \csname changes\endcsname{v1.0r}{1994/05/26}{\cs{literal} removed}%
376 \gdef\GMdebugChanges{\expandafter\def\csname
377 changes\endcsname####1####2####3{}}%
378 \aftergroup\GMdebugChanges}% A~trick with |\aftergroup| 'cause
379 % that \env{macrocode} is inside \env{macro}.
380 \DocInclude[\BasePath]{ltmiscen} % Miscellaneous environment definitions.
381
382 \DocInclude[\BasePath]{ltmath} % Mathematics set up.
383
384 \DocInclude[\BasePath]{ltlists} % List and related environments.
385
386 \DocInclude[\BasePath]{ltboxes} % Parbox and friends.
387
388 \DocInclude[\BasePath]{lttab} % \env{tabbing}, \env{ tabular} and \env{array}.
389
390 \DocInclude[\BasePath]{ltpictur} % Picture mode.
391
392 \DocInclude[\BasePath]{ltthm} % Theorem environments.
393
394 \DocInclude[\BasePath]{ltsect} % Sectioning.
395
396 \DocInclude[\BasePath]{ltfloat} % Floats.
397
398 \DocInclude[\BasePath]{ltidxglo} % Index and Glossary.
399
400 \DocInclude[\BasePath]{ltbibl} % Bibliography.
401
402 \DocInclude[\BasePath]{ltpage} % |\pagestyle|, |\raggedbottom|, |\sloppy|.
403
404 \DocInclude[\BasePath]{ltoutput} % Output routine.
405
406 \DocInclude[\BasePath]{ltclass} % Package \& Class interface.
407
408 \DocInclude[\BasePath]{lthyphen} % Hyphenation (\file{hyphen.ltx}).
409
410 \DocInclude[\BasePath]{ltfinal} % Last minute initialisations and dump.
411
412 \includeltpatch % Corrections distributed after the full release.
413
414 % Stop here if \file{ltxdoc.cfg} says |\AtEndOfClass{\OnlyDescription}|
415 \StopEventually{\end{document}}
416
417 \clearpage
418 \pagestyle{headings}
419
420 % Make \TeX\ shut up.
421 \hbadness=10000
422 \newcount\hbadness
423 \hfuzz=\maxdimen
424
425 \typeout{%
426 ^^JProduce change log with^^J%
427 makeindex -r -s gmglo.ist -o \jobname.gls \jobname.glo^^J}
428
429 {%^^A\def\.{\cs{.}}% 'cause there's |\cs {\.}| in change log on l.4314
430 % The next step of debug of \file{ltmiscen.dtx}'s
431 % |\changes...{...\cs{\@defaultsubs...}}| etc.\\ How does it work?
432 % Remember |\cs| is robust. The typo lies in giving it a~CS argument
433 % instead of expected CS name without backslash. So, in the step 1
434 % we only |\string| the argument CS to let it be written outto the
435 % \file{.glo} file. Then, in step 2, we redefine |\cs| to first
436 % |\string| its argument inside an |\if|. Remember that |\if|
437 % expands two tokens next to it until it finds sth.\ unexpandable,
438 % so it'll execute |\string|. Then, if the first char of the
439 % |\stringed| argument is |\|\catother, the condition is satisfied
440 % and |\if...\fi| expands to what follows that backslash and
441 % precedes |\else|. So if the argument was a~CS, its backslash will
442 % be gobbled by |\if|. Otherwise |\if...\fi| expands to what is
443 % between |\else| and |\fi|, to the unchanged argument that is. Then
444 % to that list of tokens the original |\cs| is applied.
445 \let\GMDebugCS\cs
446 \def\cs#1{\GMDebugCS{\if\bslash\string#1\else#1\fi}}%
447 \PrintChanges}
448
449 \typeout{%
450 ^^JProduce index with^^J%
451 makeindex -r -s gmsource2e.ist \jobname.idx^^J}
452
453 % ``Makeindex needs a symbol between the parts of composite page numbers
454 % but we dont want one, so:''---I~skip that.
455 %
456 %\begin{verbatim}
457 %% \begingroup
458 %% \def\endash{--}
459 %% \catcode`\-\active
460 %% \def-{\futurelet\temp\indexdash}
461 %% \def\indexdash{\ifx\temp-\endash\fi}
462 %\end{verbatim}
463 \geometry{bottom=3.6cm}
464 \clearpage
465 %^^A\onecolumn
466 %^^A~\clearpage is contained in |\geometry|.
467
468
469 \PrintIndex
470 %^^A\endgroup
471
472 % Make sure that the index is not printed twice
473 % (ltxdoc.cfg might have a second \PrintIndex command)
474 \let\PrintChanges\relax
475 \let\PrintIndex\relax
476
477 \gmdoccMargins
478 \clearpage
479 \csname @ifnotmw\endcsname{\pagestyle{headings}}{\pagestyle{outer}}
480
481 \gmdocIncludes
482 \SelfInclude{%^^A\def\CommonEntryCmd{UsgEntry}%\label{UsgHack}
483 % ^^A\label{SelfIncludeUsg}
484 \csname gag@index\endcsname% we turn writing outto the \file{.idx}
485 % out for the driver since it's \emph{not} a~part of The Source.
486 %^^A \filediv[The New Driver?]{How I~did It or \gmhypertarget{The Driver} File}%
487 }
488
489 \end{document}
490 %\NoEOF
491
492 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
493
494 To use this file to produce a fully indexed source code
495 you need to execute the following (or equivalent) commands:
496
497 latex source2e_by_gmdoc.tex
498
499 makeindex -s gmsource2e.ist source2e_by_gmdoc.idx
500 makeindex -s gmglo.ist -o source2e_by_gmdoc.gls source2e_by_gmdoc.glo
501
502 latex source2e_by_gmdoc.tex
503 latex source2e_by_gmdoc.tex
504
505
506 The makeindex style gmsource2e.ist is used in place of the usual
507 doc gind.ist to ensure that I is used in the sequence I J K
508 not I II II, which would be the default makeindex behaviour.
509
510 The third run with latex is only required to get the table of
511 contents entries for the change log and index. You may speed things up
512 by using the \includeonly mechanism so as not to typeset the source
513 files on the second run. This involves changing the file
514 ltxdoc.cfg
515 between the latex runs.
516
517 The following unix script automates this.
518 (It could easily be ported to scripts for DOS or VMS,
519 rm is ReMove a file, and echo "..." > file writes ... to "file".)
520
521
522 After this script (after the second ==============) is a similar script
523 that will produce the documentation for all the files in the base
524 distribution that are *not* included in source2e.dvi. This second script
525 was requested, but before using it, beware it will take a long time!
526 It may however be modified as required, eg to not typeset the fdd files
527 or whatever...
528
529
530 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
531 Natror (GM): I~didn't touch the following so it's probably not quite suitable
532 for gmdoc-ing.
533 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
534
535
536 ==============
537 #!/bin/sh
538
539 rm -f source2e_by_gmdoc.gls source2e_by_gmdoc.ind source2e_by_gmdoc.toc
540
541 # First run:
542 # Create new standard ltxdoc.cfg file
543 # Pass the (possibly empty) list of arguments supplied on the
544 # command line to article class.
545 #
546 # If you use A4 paper, running this script with argument
547 # a4paper
548 # may save about 30 pages.
549 #
550 echo "\PassOptionsToClass{$*}{article}" > ltxdoc.cfg
551
552
553 # Now LaTeX the file with this cfg file.
554 #
555 latex source2e.tex
556
557
558 # Make the Change log and Glossary.
559 #
560 makeindex -s source2e.ist source2e.idx
561 makeindex -s gglo.ist -o source2e.gls source2e.glo
562
563
564 # Second run: append \includeonly{} to ltxdoc.cfg to speed up things
565 # (this run needed only to get changes and index listed in .toc file)
566 #
567 # Note that the index will not be made incorrect by the insertion
568 # of the table of contents as the front matter uses a diferent page
569 # numbering scheme.
570 #
571 echo "\includeonly{}" >> ltxdoc.cfg
572
573 latex source2e.tex
574
575
576 # Third and final run, to put everything together.
577 # First restore the cfg file:
578 #
579 echo "\PassOptionsToClass{$*}{article}" > ltxdoc.cfg
580 latex source2e.tex
581
582
583 ==============
584 #!/bin/sh
585
586 # Running this script will process all the dtx fdd and *guide.tex
587 # and ltnews*.tex files in the LaTeX distribution, except the dtx
588 # files included in source2e.tex.
589 # (The shell first script in the comments of source2e.tex will
590 # process those.)
591
592 # Any command line arguments (eg a4paper) are taken as options to the
593 # article class.
594
595 # This script is likely to take ages!
596
597 echo "\PassOptionsToClass{$*}{article}" > ltxdoc.cfg
598 echo "\batchmode" >> ltxdoc.cfg
599
600 # The next four lines produce full indexes and change logs
601 # you may not want those.
602 echo "\AtBeginDocument{\RecordChanges}" >> ltxdoc.cfg
603 echo "\AtEndDocument{\PrintChanges}" >> ltxdoc.cfg
604 echo "\AtBeginDocument{\CodelineIndex\EnableCrossrefs}" >> ltxdoc.cfg
605 echo "\AtEndDocument{\PrintIndex}" >> ltxdoc.cfg
606
607 # If you do not want any code listings, just documentation, then instead
608 # of the above four lines, uncomment the following:
609 # echo "\AtBeginDocument{\OnlyDescription}" >> ltxdoc.cfg
610
611 echo "\PassOptionsToClass{$*}{article}" > ltxguide.cfg
612 echo "\batchmode" >> ltxguide.cfg
613
614 cp ltxguide.cfg ltnews.cfg
615
616
617 for i in *dtx *fdd *guide.tex ltnews*.tex
618 do
619 B=`basename $i .dtx`
620
621 if (grep "Include{$B}" source2e.tex >/dev/null ; )
622 then
623 echo In source2e: $i
624 else
625 echo latex $i
626 if (latex $i > /dev/null)
627 then
628 echo latex $i
629 latex $i > /dev/null
630 echo makeindex -s gind.ist $B.idx
631 makeindex -s gind.ist $B.idx > /dev/null 2> /dev/null
632 echo makeindex -s gglo.ist -o $B.gls $B.glo
633 makeindex -s gglo.ist -o $B.gls $B.glo > /dev/null 2> /dev/null
634 echo latex $i
635 latex $i > /dev/null
636 else
637 echo "!!! LaTeX ERROR: $i. (See $B.log.)"
638 fi
639 fi
640
641 done