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