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
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
|
readme.txt for project latex-tds, 2008/07/25
TABLE OF CONTENTS
=================
A. Abbreviations, Glossary
B. Project latex-tds
C. Download
D. Installation Hints
E. Copyright, License
F. Manifest
G. Design Principles
H. Remarks
I. Build Hints
J. History
A. ABBREVIATIONS, GLOSSARY
==========================
[CTAN]
Comprehensive TeX Archive Network.
FAQ entry: http://www.tex.ac.uk/cgi-bin/texfaq2html?label=archives
For example, you can resolve the prefix `CTAN:' by using
`ftp://ftp.ctan.org/tex-archive/'.
[latex-tds]
The name of this project.
[TDS]
TeX Directory Structure.
FAQ entry: http://www.tex.ac.uk/cgi-bin/texfaq2html?label=tds
Specification: CTAN:tds.zip
B. PROJECT LATEX-TDS
====================
How it has started
------------------
The project started as I wanted to install the new LaTeX release 2005/12/01
that was announced at 2006/04/27. However the files aren't packed in
TDS format, ready for unpacking in the destination directory. And
the documentation files were not yet generated or the provided
PDF files are lacking of basic features such as bookmarks or link support.
Thus this project has started. I thought it could be finished during
the afternoon at the day of the announcement ...
Goals of the project
--------------------
* From the sources a TDS compliant tree is constructed and populated.
The zipped result is distributed.
* All the documentation is generated from the sources. The PDF files
are user friendly and provide navigational support with bookmarks
and links.
* The PDF files are post-processed to reduce the file size.
Scope
-----
I don't have the time to assemble a TeX distribution with
thousands of packages. Therefore I restricted myself to the
LaTeX base distribution and the required bundles.
In the following I will use the term `module' for a package bundle.
Module list
-----------
* base CTAN:macros/latex/base.zip
* tools CTAN:macros/latex/required/tools.zip
* cyrillic CTAN:macros/latex/required/cyrillic.zip
* amslatex CTAN:macros/latex/required/amslatex.zip
CTAN:macros/latex/contrib/amsrefs.zip
ftp://ftp.ams.org/pub/tex/amslatex.zip
ftp://ftp.ams.org/pub/tex/amslatex/amsrefs-tds.zip
ftp://ftp.ams.org/pub/tex/amslatex/amsrefs-ctan.zip
* psnfss CTAN:macros/latex/required/psnfss.zip
* babel CTAN:macros/latex/required/babel.zip
* tds CTAN:tds.zip
* knuth CTAN:systems/knuth/dist/errata.zip
CTAN:systems/knuth/dist/etc.zip
CTAN:systems/knuth/dist/mfware.zip
CTAN:systems/knuth/dist/texware.zip
CTAN:systems/knuth/dist/web.zip
CTAN:systems/knuth/dist/tex.zip
CTAN:systems/knuth/dist/mf.zip
Author
------
Heiko Oberdiek <oberdiek at uni-freiburg.de>
C. DOWNLOAD
===========
The home of the project is located at:
CTAN:macros/latex/contrib/latex-tds/
The following files can be downloaded:
* readme.txt (this file)
* The module distribution files, see the module list above
for the available modules, e.g:
base.tds.zip
tools.tds.zip
...
* The sources, mainly the build script, configuration and
driver files, and patches:
source.tds.zip
Some of the used tools are not provided, see section
`Building Hints'.
* And the universe, the contents of all the ZIP files above,
merged together:
latex-tds.tds.zip
C. INSTALLATION HINTS
=====================
Hopefully the result of this project helps you in the installation
process. You get a TDS compliant tree just by unpacking.
Example:
cd /some/where/texmf
unzip latex-tds
or unzip's option `-d':
unzip latex-tds -d /some/where/texmf
Instead of the universe ZIP files single modules can be selected.
Important to remember, point your unpack process right in
the root directory of your TDS tree. The directory structure
in the ZIP files start with the top-level directories:
doc/latex/base/...
tex/latex/tools/...
source/...
Rationale: The root directory of a TDS tree can have different
names, such as texmf-dist, texmf-local, ...
Hints
-----
* Refresh the file name database.
* Be aware that unpacking can insert and update files, but never
deletes obsolete ones. Remainders of previous releases can
cause trouble.
* Depending on the module further installation steps can be
necessary, consult the module's own documentation.
[base]
* The default texsys.cfg that LaTeX provides is put
into tex/latex/base. It must be removed, if you need
a specialized version. Consult your TeX distribution
and doc/latex/base/source2e.pdf (module ltdirchk).
Usually changes are not required for many TeX distributions
such as Unix (web2c), MikTeX, ...
* Formats need rebuilding (e.g., fmtutil).
[babel]
* Most hyphenation patterns aren't provided here. Usually you can
find them somewhere below CTAN:language/hyphenation.
* Language configuration (language.dat), see the documentation of
your TeX distribution.
* Formats need rebuilding.
[psnfss]
* The map files need further configuring (e.g., updmap).
[graphics]
* Module graphics doesn't provide all driver files, because some are
developed independently (pdftex.def, ...).
D. COPYRIGHT, LICENSE
=====================
Copyright 2006-2008 Heiko Oberdiek.
License is LPPL 1.3c:
This work may be distributed and/or modified under the
conditions of the LaTeX Project Public License, either version 1.3
of this license or (at your option) any later version.
The latest version of this license is in
http://www.latex-project.org/lppl.txt
and version 1.3c or later is part of all distributions of LaTeX
version 2005/12/01 or later.
This work has the LPPL maintenance status `maintained'.
The Current Maintainer of this work is Heiko Oberdiek.
See the following section `Manifest' for a list of all files
belonging to the project `latex-tds'.
E. MANIFEST
===========
Included are the projects `adjust_checksum' and `ziptimetree'.
They are projects of their own.
Documentation
-------------
readme.txt this file
Licenses
--------
license/lppl.txt LPPL (The LaTeX Project Public License)
for latex-tds and adjust_checksum
license/ziptimetree/lgpl.txt LGPL (GNU Lesser General Public License)
for ziptimetree
Scripts
-------
build.pl main script for building the distribution
lib/adjust_checksum.pl Perl script that runs a DTX file through
LaTeX and corrects its \Checksum if necessary
lib/ziptimetree.pl Perl script that generates a ZIP file from
a directory tree with sorted entries (LGPL)
Configuration
-------------
tex/docstrip.cfg enables TDS feature and creates directories
tex/errata.cfg for errata lists of latex/base
tex/hyperref.cfg hyperref configuration file
tex/latex-tds.ini init file for format generation
tex/ltnews.cfg for LaTeX News of latex/base
tex/ltxdoc.cfg setup for class ltxdoc
tex/ltxguide.cfg setup for the guide manuals in latex/base
and required/psnfss
tex/manual.cfg setup for errata list of the LaTeX manual
in latex/base
tex/tdsguide.cfg setup for class tdsguide.cls
Documentation driver
--------------------
tex/ams.drv generic doc driver for files from the
amslatex and babel bundle
tex/babel.tex doc driver with patches for babel.drv
tex/doc_lppl.tex doc driver for base/lppl.tex
tex/errata.drv doc driver for knuth/errata/errata_*.pdf
tex/errata.all doc driver for knuth/errata/errata.pdf
tex/errorlog.drv doc driver for knuth/errata/errorlog.tex
tex/greek-usage.tex doc driver with patches for babel/usage.tex
tex/knuth.drv doc driver for knuth/{texware,mfware,etc}/*.web
tex/ltnews.tex master file that merges all base/ltnews*.tex
tex/ltxcheck.drv doc driver with patches for ltxcheck.tex
tex/psnfss2e.drv doc driver with patches for psnfss2e.tex
tex/tools-overview.cls class for tools.tex
tex/tools.tex master file for tools overview, generated
by the build.pl script from tools/manifest.txt
Patches
-------
patch/classes.dtx.diff patch for base/classes.dtx
patch/logmac.tex.diff patch for knuth/errata/logmac.tex
patch/tripman.tex.diff patch for knuth/tex/tripman.tex
patch/trapman.tex.diff patch for knuth/mf/trapman.tex
patch/webman.tex.diff patch for knuth/web/webman.tex
F. DESIGN PRINCIPLES
====================
* Compliance with the latest TDS specification.
* No redundancy.
* User friendly PDF files with navigational support:
* bookmarks
* links
* Complete documentation. The documentation generation with
enhanced PDF files is the tricky part and should be saved
from the user.
* Output format of generated documentation is PDF, see above.
Other formats such as DVI or PS are not generated and provided.
* Documentation bundles are preferred to many partial documentation
files (e.g. source2e.pdf or ltnews.pdf).
* If several expansion stages of a documentation are available,
then just the most complete expansion stage should be used.
* Files that do not fit in a program sub tree of TDS stay below
TDS:source (e.g. latexbug.el from latex/base). Then they do not
get lost at least.
* Page layout: a4paper with reduced vertical margins (exception: ltnews).
(This also decreases the page number usually.)
* ...
G. REMARKS
==========
Base
----
* source2e.pdf is used instead of many single lt*.pdf files.
* ltnews.pdf is introduced to avoid cluttering the doc directory
with many single sheet ltnews*.pdf files.
* ...
Tools
-----
* Added: tools.pdf as overview/contents/index file with links
and short descriptions of the single packages. (It uses
the data from manifest.txt).
* ...
AmSLaTeX
--------
* The distribution from the AMS ftp site is used, because
the files are already sorted in TDS:
ftp://ftp.ams.org/pub/tex/amslatex.zip
ftp://ftp.ams.org/pub/tex/amsrefs.zip
* ...
Babel
-----
* Babel's TeX files consists of three groups of files:
1. Hyphenation pattern, see below
2. Generic files:
*.ldf (language definition files)
*.sty (from bbcompat.dtx, these are plain-TeX files,
LaTeX user have the package babel)
babel.def, switch.def
plain.def
b*plain.tex
esbst.tex
3. LaTeX files:
*.fd
*enc.def (for package fontenc)
cp*.def, 8859-8.def, si960.def (for package inputenc)
babel.sty
romanidx.tex
athnum.sty, grmath.sty, grsymb.sty (greek.ins)
heb*.sty
Full TDS compliance would use different format subtrees
for the generic and LaTeX files. However practice (TeX Live, teTeX,
VTeX, ...) put them in `generic', mainly because of maintenance issues.
Also babel's *.ins files specify \usedir{tex/generic/babel}.
There can be problems, if different TDS trees have different
babel versions installed and the same file can be found both
in generic and latex. The natural search strategy for TDS compliant
trees would be to look first in tex/latex across the trees, then
in tex/generic. Thus it can happen to use files from the same
package, but different versions.
--> Therefore latex-tds put theses files in the generic subtree.
* Babel already contains babel.pdf as documentation. It is a superset
of user.pdf. Thus I have dropped the latter one to avoid redundancy.
Also the name `babel.pdf' is much more useful (texdoc).
* ...
Knuth
-----
* Current used CTAN -> TDS mapping:
CTAN:systems/knuth/dist --> TDS:<toplevel>/knuth
* Unsure where to put trip/trap files. Currently they are
put in TDS:source, because the documentation files
(tripman.pdf, trapman.pdf) are in TDS:doc. They lists the
trip/trap files already.
* Not covered is
CTAN:systems/knuth/dist/lib/
In TeX Live 2007/2008 the files are installed at different
locations:
texmf-dist/fonts/source/public/mflogo/logo10.mf
texmf-dist/fonts/source/public/mflogo/logo8.mf
texmf-dist/fonts/source/public/mflogo/logo9.mf
texmf-dist/fonts/source/public/mflogo/logobf10.mf
texmf-dist/fonts/source/public/mflogo/logo.mf
texmf-dist/fonts/source/public/mflogo/logosl10.mf
texmf-dist/fonts/source/public/misc/grayf.mf
texmf-dist/fonts/source/public/misc/manfnt.mf
texmf-dist/fonts/source/public/misc/slant.mf
texmf-dist/metafont/base/expr.mf
texmf-dist/metafont/base/io.mf
texmf-dist/metafont/base/null.mf
texmf-dist/metafont/base/plain.mf
texmf-dist/metafont/misc/3test.mf
texmf-dist/metafont/misc/6test.mf
texmf-dist/metafont/misc/rtest.mf
texmf-dist/metafont/misc/test.mf
texmf-dist/metafont/misc/waits.mf
texmf-dist/metafont/misc/ztest.mf
texmf-dist/mft/base/cmbase.mft
texmf-dist/mft/base/plain.mft
texmf-dist/tex/generic/misc/null.tex
texmf-dist/tex/plain/base/manmac.tex
texmf-dist/tex/plain/base/mftmac.tex
texmf-dist/tex/plain/base/plain.tex
texmf-dist/tex/plain/base/story.tex
texmf-dist/tex/plain/base/testfont.tex
texmf-dist/tex/plain/base/webmac.tex
texmf/tex/generic/hyphen/hyphen.tex
H. BUILD HINTS
==============
The most important advice I can give: `forget it'!
The purpose of the source files are rather to show, what was
done in which way.
The *.zip with TDS trees are the goal of the project, not the
build process. Some remarks, if someone wants to build the
modules himself:
* TeX compiler: recent pdfTeX, below 1.30 some of the packages
will not work.
* An up-to-date LaTeX installation is recommended.
* Additional packages can be necessary, e.g. I had to install
language/armenian, fonts/tipa, fonts/wsuipa, fonts/fc,
fonts/utopia, fonts/greek/cbfonts, ...
Probably TeX Live would be a good idea (I haven't tested).
* Some new packages of mine I will put on CTAN, but at time
of writing, they aren't available yet.
* PDF post-processing, I have used two steps:
1. a) I have written a tool that analyzes page stream contents and
optimizes them (removal of unnecessary color settings, minimize
translation operations, ...).
--> pdfbox-rewrite.jar
b) For reading and writing the PDF file I have used PDFBox
--> PDFBox-0.7.2.jar (http://www.pdfbox.org/)
c) To get better results I patched some of the classes
of PDFBox (especially the write module).
--> pdfbox-rewrite.jar
2. The final conversion step was done by Multivalent, because
it makes a very good job in PDF compression:
--> Multivalent20060102.jar (http://multivalent.sourceforge.net/)
Multivalent and PDFBox are available, pdfbox-rewrite.jar, however,
is just a first prototype, not ripe for a release.
Therefore this step of post-processing is optional for the
project latex-tds. The build script looks for the library and
skips this steps automatically if necessary.
If you give the build script the option --nopostprocess,
then it will skip the postprocess steps (building is faster,
the pdf files a little larger).
Install the jar files in the directory 'lib' where
they are expected by the build script.
* Unix, Perl background is expected.
* No support or documentation.
I. HISTORY
==========
2006/04/27
* Start of the project (without babel, amslatex, psnfss).
2006/06/01
* Module amslatex added.
2006/06/03
* Modules psnfss and babel added, now all modules are covered.
2006/06/07
* The project uploaded to CTAN.
2006/07/31
* Index added to base/classes.dtx.
* ZIP files renamed: '*-tds.zip' -> '*.zip'
* Comment added to ZIP files.
* Update of readme.txt.
2006/08/26
* Module tds for CTAN:tds/ added.
* Obsolete hyphenation patterns added to babel's source directory
to avoid violation of LPPL.
* Script adjust_checksum added and scripts are put below TDS:scripts.
* TDS:makeindex/base/ renamed to TDS:makeindex/latex/
* Exception for sample2e.tex and small2e.tex that now go into
TDS:tex/latex/base/.
2006/08/28
* Default texsys.cfg is generated.
* adjust_checksum.pl and ziptimetree.pl now moved from the scripts
branch to TDS:source/latex/latex-tds/lib/.
2006/12/27
* Fix of ltxguide.cfg that had loaded doc.sty that disturbs the
verbatim stuff in fntguide.tex.
2007/01/08
* Fix for documentation of longtable.
2007/03/19
* Patch for babel/latin.dtx added (babel/3922).
2007/09/04
* A minor update on CTAN regarding babel:
iahyphen.tex, icehyph.tex, and lahyph.tex are now symbolic links
to their location in CTAN:language/hyphenation/. Therefore also
lahyph.tex is now installed in TDS:tex/generic/hyphen/.
2007/10/18
* Update of module amslatex because of updated package amsrefs.
* Fix in latin.dtx.diff.
2007/10/24
* Update of babel.
* Update of amsrefs (TDS:tex/latex/amscls -> TDS:tex/latex/amsrefs).
2008/04/01
* Update of babel (2008/03/17).
2008/04/02
* Fix: latex/base/*.err added to TDS:source/latex/base/.
2008/04/05
* Using .tds.zip instead of .zip to follow CTAN:install's naming
conventions.
2008/06/28
* Update of babel (2008/06/01).
* Babel documentation: table of contents reformatted.
2008/07/07
* Update of babel (2008/07/06).
2008/07/10
* Module knuth added.
* Update of babel (2008/07/07).
2008/07/11
* Fixes and additions for module knuth.
2008/07/25
* amslatex: instr-l.tex vanished from CTAN (but not at AMS side).
* Some unwanted spaces in generated PDF files fixed.
(Caused by a wrong package file that was found on my system first.)
|