blob: 323a113119e04486ff01c3900ab210c732e4d66a [file] [log] [blame]
Guido van Rossuma417b661997-12-08 20:51:26 +00001Python main documentation -- in Latex
Guido van Rossumcd7bf391992-04-05 15:06:03 +00002-------------------------------------
3
Guido van Rossuma417b661997-12-08 20:51:26 +00004This directory contains the Latex sources to the Python documentation.
Guido van Rossum7d4ecb81998-01-19 23:10:21 +00005They now require latex2e (latex 2.09 compatibility is dropped).
Guido van Rossum7f777ed1990-08-09 14:25:15 +00006
Guido van Rossuma417b661997-12-08 20:51:26 +00007The Python Reference Manual is no longer maintained in Latex. It is
Guido van Rossum71ec03b1996-10-23 16:23:47 +00008now a FrameMaker document. The FrameMaker 5.0 files (ref.book,
9ref*.doc) as well as PostScript generated (ref.ps) from it are in the
Guido van Rossum39900421996-12-18 19:55:49 +000010subdirectory ref/. (See ftp://ftp.adobe.com/pub/adobe/framereader for
Guido van Rossuma417b661997-12-08 20:51:26 +000011a free reader for FrameMaker documents, for some platforms.) Many
12thanks to Robin Friedrich for the conversion of the Reference Manual
13to FrameMaker and his work on its index.
Guido van Rossum71ec03b1996-10-23 16:23:47 +000014
Guido van Rossuma417b661997-12-08 20:51:26 +000015If you don't have Latex, you can ftp a tar file containing PostScript
16of all documents. It should be in the same place where you fetched
17the main Python distribution (try http://www.python.org or
18ftp://ftp.python.org).
Guido van Rossumf1245a81995-03-20 13:00:53 +000019
Guido van Rossuma417b661997-12-08 20:51:26 +000020The following are the Latex source files:
Guido van Rossum7f777ed1990-08-09 14:25:15 +000021
Guido van Rossum676d6da1992-02-11 15:51:36 +000022 tut.tex The tutorial
Guido van Rossum6938f061994-08-01 12:22:53 +000023 lib.tex, lib*.tex The library reference
Guido van Rossum6938f061994-08-01 12:22:53 +000024 ext.tex How to extend Python
Guido van Rossuma417b661997-12-08 20:51:26 +000025 api.tex Reference for the Python/C API
Guido van Rossum7f777ed1990-08-09 14:25:15 +000026
Guido van Rossuma417b661997-12-08 20:51:26 +000027All use the style option file "myformat.sty". This contains some
28macro definitions and sets some style parameters.
Guido van Rossum7f777ed1990-08-09 14:25:15 +000029
Guido van Rossuma417b661997-12-08 20:51:26 +000030You need the makeindex utility to produce the index for lib.tex.
Guido van Rossumcd7bf391992-04-05 15:06:03 +000031
Guido van Rossuma417b661997-12-08 20:51:26 +000032There's a Makefile to call Latex and the other utilities in the right
Guido van Rossumf1245a81995-03-20 13:00:53 +000033order and the right number of times. This will produce DVI files for
34each document made; to preview them, use xdvi. PostScript is produced
35by the same Makefile target that produces the DVI files. This uses
36the dvips tool. Printing depends on local conventions; at my site, I
Guido van Rossum71ec03b1996-10-23 16:23:47 +000037use lp. For example:
Guido van Rossum7f777ed1990-08-09 14:25:15 +000038
Guido van Rossum71ec03b1996-10-23 16:23:47 +000039 make lib # create lib.dvi and lib.ps
40 xdvi lib # preview lib.dvi
41 lp lib.ps # print on default printer
Guido van Rossumcd7bf391992-04-05 15:06:03 +000042
Guido van Rossumf1245a81995-03-20 13:00:53 +000043
Guido van Rossuma417b661997-12-08 20:51:26 +000044Using Times fonts
45-----------------
46
47As distributed, the Latex documents use the default Tex fonts (CMR).
48These qre quite ugly. If you have the "PSfont" Latex add-on
49installed, you can produce versions using Times fonts (and Courier for
50fixed text) by inserting "times," in the list of options in the
51documentstyle macro in the first line of the files lib.tex, tut.tex,
52ext.tex, api.tex, e.g.
53
54 \documentstyle[twoside,times,myformat]{report}
55
56
Guido van Rossumf1245a81995-03-20 13:00:53 +000057Making HTML files
58-----------------
59
Guido van Rossuma417b661997-12-08 20:51:26 +000060The Latex documents can be converted to HTML using Nikos Drakos'
61Latex2html converter. See the Makefile; after some twiddling, "make
62l2h" should do the trick.
Guido van Rossumf1245a81995-03-20 13:00:53 +000063
Guido van Rossuma417b661997-12-08 20:51:26 +000064For the reference manual, I use Harlequin's webmaker. I'm not very
65happy with it and hope that eventually FrameMaker will be able to
66produce HTML without third party help.