| 1 |
============ |
| 2 |
DTXGALLERY |
| 3 |
============ |
| 4 |
|
| 5 |
This work is a collection of files that demonstrate |
| 6 |
simple things that are possible with the flexible |
| 7 |
and under-appreciated docstrip file format. |
| 8 |
|
| 9 |
It is intended as a companion to Scott Pakin's |
| 10 |
excellent and influential "dtxtut" example of producing |
| 11 |
LaTeX packages in this way. |
| 12 |
|
| 13 |
This work consists of the following files: |
| 14 |
|
| 15 |
-------------- |
| 16 |
dtxgallery.dtx |
| 17 |
|
| 18 |
A `meta-example' showing how multiple .dtx files can be |
| 19 |
documented in a single file. Read the .pdf version of this |
| 20 |
file first. |
| 21 |
-------------- |
| 22 |
|
| 23 |
----------------- |
| 24 |
single-source.dtx |
| 25 |
|
| 26 |
This is an example of both the .sty and .ins |
| 27 |
files being extracted from the .dtx file. This |
| 28 |
allows maintenance of a single source file |
| 29 |
but still produces a "standard-behaviour" .dtx/.ins |
| 30 |
pair for upload to CTAN. |
| 31 |
----------------- |
| 32 |
|
| 33 |
-------------------- |
| 34 |
conditional-code.dtx |
| 35 |
|
| 36 |
This example shows how code can be extracted in different |
| 37 |
contexts. For example, debug code in a package can be |
| 38 |
included in the source .dtx file but be automatically |
| 39 |
stripped out for the public release version of the package. |
| 40 |
-------------------- |
| 41 |
|
| 42 |
------------- |
| 43 |
rearrange.dtx |
| 44 |
|
| 45 |
This example demonstrates how source code may |
| 46 |
be written and documented in a different logical |
| 47 |
order than in which it is required to execute. |
| 48 |
|
| 49 |
This can be useful, for example, when default |
| 50 |
values are provided at the very stage of the package |
| 51 |
loading, but you wish to describe them first in the |
| 52 |
main body of the (non-technical) documentation. |
| 53 |
------------- |
| 54 |
|
| 55 |
|
| 56 |
Maintained by Will Robertson, 2007. |
| 57 |
Please send comments and suggestions (entire examples very |
| 58 |
welcome!) to me at the typeset string of: |
| 59 |
\zap@space wspr \number`\Q \char64 gmail \char46 com {} |
| 60 |
|
| 61 |
Distributed under the LaTeX Project Public License, version |
| 62 |
1.3c or higher (your choice). |