Debian Codegraph @

texmf-dist/doc/latex/gmdoc/README

raw
1 The gmdoc.zip package
2 is a work of Grzegorz Murzynowski,
3 <natror at o2 dot pl>
4
5
6 1. Copyright 2006, 2007, 2008, 2009, 2010 by Grzegorz `Natror' Murzynowski
7
8 This program is subject to the LaTeX Project Public License.
9 See http://www.ctan.org/tex-archive/help/Catalogue/licenses.lppl.html
10 for the details of that license.
11
12
13 2. Introduction
14
15 This package provides a tool for documenting of (La)TeX
16 packages, classes etc., i.e., the .sty, .cls
17 etc. The author just writes the code and adds the commentary
18 preceded with % sign (or another sign properly declared). No special
19 environments are necessary.
20
21 The package tends to be compatible with the standard doc.sty
22 package, i.e., the .dtx files are also compilable with
23 gmdoc (they may need very little adjustment, in some rather
24 special cases).
25
26 The tools are integrated with hyperref.sty's advantages such as
27 hyperlinking of index entries, of contents entries and
28 of cross-references.
29
30
31 3. Installation
32
33 Unpack the gmdoc-tds.zip archive in a texmf directory or put the
34 gmdoc.sty, gmdocc.cls and gmoldcomm.sty somewhere in the
35 texmf/tex/latex branch on your own and also the gmiflink.sty,
36 gmverb.sty and gmiflink.sty files (available on CTAN in separate
37 packages). (Creating a /texmf/tex/latex/gm directory may be advisable
38 if you consider using other packages written by me.)
39
40 Moreover, you should put the gmglo.ist file, a MakeIndex style for the
41 changes' history, into some texmf/makeindex directory.
42
43 Then you should refresh your TeX distribution's files'
44 database most probably.
45
46
47 4. Contents
48
49 The distribution of this package consists of the following five files.
50
51 gmdoc.sty
52 gmdocc.cls
53 gmglo.ist
54 README
55 gmdoc.pdf
56 gmdoc-tds.zip
57
58 5. Documentation
59
60 The last of the above files (the .pdf) is a documentation compiled
61 from the .sty file by running LaTeX on the gmdocDoc.tex file twice:
62 xelatex gmdoc.sty
63 in the directory you wish the documentation to be in,
64 you don't have copy the .sty file there---TeX will find it,
65 then MakeIndex on the gmdoc.idx and gmdoc.glo files, and then LaTeX
66 on gmdocDoc.tex twice again.
67
68 MakeIndex shell commands:
69 makeindex -r gmdocDoc
70 makeindex -r -s gmglo.ist -o gmdocDoc.gls gmdocDoc.glo
71 The -r switch is to forbid MakeIndex make implicit ranges since the
72 (code line) numbers will be hyperlinks.
73 The -s switch makes MakeIndex use the style file instead of the
74 default settings and the -o switch declares the not-default name of
75 the output file
76
77 Compiling of the documentation requires the packages gmdoc.sty (with
78 the gmdocc.cls class), gmiflink.sty, gmverb.sty, gmutils.sty and also
79 some standard packages: hyperref.sty, xcolor.sty, geometry.sty,
80 multicol.sty, lmodern.sty, fontenc.sty that should be installed on
81 your computer by default.
82
83 The gmglo.ist file, a MakeIndex style for the changes' history, is
84 provided on CTAN in the gmdoc .zip archive and should
85 be put into some texmf/makeindex directory.
86
87 If you have not installed the mwcls classes (available on CTAN and
88 present in TeX Lives e.g.), the result of your compilation may differ
89 a bit from the .pdf provided in this .zip archive in formattings: If
90 you have not installed mwcls, the standard article.cls will be
91 used.
92
93
94 DEPENDS ON (only non-standard files listed):
95
96 gmiflink.sty
97 gmutils.sty
98 gmverb.sty
99 gmglo.ist
100
101 *if you typeset The LaTeX 2e Source
102
103 BONUS: Base drivers
104
105 As a bonus and example of doc-compatibility
106 there are driver files included
107 (cf. Palestrina, Missa papae Marcelli ;-):
108
109 source2e_gmdoc.tex
110 docstrip_gmdoc.tex
111 doc_gmdoc.tex
112
113 (gmsource2e.ist is generated from source2e_gmdoc.tex)
114 gmoldcomm.sty
115
116 These drivers typeset the respective files from the
117 .../texmf-dist/source/latex/base
118 directory of TeXLive2005 distribution.
119 Probably you should redefine the \BasePath macro in them
120 so that it points that directory on your computer.
121