Debian Codegraph @

texmf-dist/doc/latex/xdoc/README

raw
1 README for the xdoc and docindex packages.
2
3 The standard LaTeX doc package is well-known to all LaTeX hackers.
4 Without its support for the .dtx-file style of literate programming,
5 the TeX world would probably be much more plagued by the horrors of
6 poorly commented and mysterious code than it is today. The past good
7 decade that doc has been with us has been -- good. But even the sun
8 has spots; doc is an old package and, as old code often tends to do,
9 it breaks if you try to bend it into doing something new. The xdoc
10 package is (or rather is meant to be) a rewrite from scratch
11 which both can take a lot more bending and is ready for LaTeX2e*.
12
13 What exists so far is only xdoc2: the "second prototype" for the xdoc
14 package. xdoc2 is not a complete rewrite of doc, but rather an add-on
15 to doc which reimplements many of its mechanisms (more precisely those
16 mechanisms which I think should be possible to "bend" into doing new
17 things, but have found to be fixed to their present behaviour) and
18 provides a few new features of its own. Even though xdoc2 is a
19 prototype and some of the code in it is experimental, I consider it to
20 be safe enough to build productive applications on, as I intend to
21 keep xdoc2 available even after the final xdoc package is released.
22
23 Among the features of xdoc2 are:
24 - new commands for describing things (cf. \DescribeMacro) and a
25 package/class writer's interface for defining new such commands.
26 - new environments for defining things in (cf. the macro
27 environment) and a package/class writer's interface for defining
28 new such environments.
29 - support for two-sided document designs.
30 - support for external cross-referencing.
31 - improved sorting of macros, with support for defining prefixes
32 that should be ignored when sorting.
33 - support for CVS-style version numbering.
34 The other new features are of little interest to the mere user, but
35 they may be ever so useful to those who are in the habit of hacking
36 doc. Here we have for example:
37 - basic commands implementing a robust "string" datatype.
38 - an abstract command interface for making index entries;
39 this would simplify supporting a different index sorting
40 program.
41
42 Besides xdoc2, there are also the docindex/docidx2e packages. These
43 provide mechanisms for a more flexible formatting of the index and list of
44 changes than is possible with the mechanisms for this in the doc package.
45 In particular docindex/docidx2e provides for automatic collapsing of
46 trivial index levels, something which often happens in automatically
47 generated multilevel indices such as the list of changes. The reason there
48 are two packages is that docindex is a LaTeX2e* package, whereas docidx2e
49 is a "downgraded" variant which runs on a normal LaTeX2e installation.
50 Both do however follow the same internal logic.
51
52
53 The files in this directory are:
54
55 README.txt - this file
56 docindex.dtx - the source for the docindex and docidx2e packages
57 docindex.ins - the docstrip installation script for the docindex and
58 docidx2e packages
59 xdoc2.dtx - the source for the xdoc2 package
60 xdoc2.ins - the docstrip installation script for the xdoc2 package
61 xdocdemo.tex - a document which demonstrates some of the features in
62 the xdoc2 package
63
64 2003/07/06,
65 Lars Hellstr\"om
66
67