1997-12-08 16:51:26 -04:00
|
|
|
Python main documentation -- in Latex
|
1992-04-05 12:06:03 -03:00
|
|
|
-------------------------------------
|
|
|
|
|
1997-12-08 16:51:26 -04:00
|
|
|
This directory contains the Latex sources to the Python documentation.
|
1998-01-19 19:10:21 -04:00
|
|
|
They now require latex2e (latex 2.09 compatibility is dropped).
|
1991-01-25 09:29:53 -04:00
|
|
|
|
1997-12-08 16:51:26 -04:00
|
|
|
The Python Reference Manual is no longer maintained in Latex. It is
|
1996-10-23 13:23:47 -03:00
|
|
|
now a FrameMaker document. The FrameMaker 5.0 files (ref.book,
|
|
|
|
ref*.doc) as well as PostScript generated (ref.ps) from it are in the
|
1996-12-18 15:55:49 -04:00
|
|
|
subdirectory ref/. (See ftp://ftp.adobe.com/pub/adobe/framereader for
|
1997-12-08 16:51:26 -04:00
|
|
|
a free reader for FrameMaker documents, for some platforms.) Many
|
|
|
|
thanks to Robin Friedrich for the conversion of the Reference Manual
|
|
|
|
to FrameMaker and his work on its index.
|
1996-10-23 13:23:47 -03:00
|
|
|
|
1997-12-08 16:51:26 -04:00
|
|
|
If you don't have Latex, you can ftp a tar file containing PostScript
|
|
|
|
of all documents. It should be in the same place where you fetched
|
|
|
|
the main Python distribution (try http://www.python.org or
|
|
|
|
ftp://ftp.python.org).
|
1995-03-20 09:00:53 -04:00
|
|
|
|
1997-12-08 16:51:26 -04:00
|
|
|
The following are the Latex source files:
|
1991-01-25 09:29:53 -04:00
|
|
|
|
1992-02-11 11:51:36 -04:00
|
|
|
tut.tex The tutorial
|
1994-08-01 09:22:53 -03:00
|
|
|
lib.tex, lib*.tex The library reference
|
|
|
|
ext.tex How to extend Python
|
1997-12-08 16:51:26 -04:00
|
|
|
api.tex Reference for the Python/C API
|
1991-01-25 09:29:53 -04:00
|
|
|
|
1997-12-08 16:51:26 -04:00
|
|
|
All use the style option file "myformat.sty". This contains some
|
|
|
|
macro definitions and sets some style parameters.
|
1992-04-05 12:06:03 -03:00
|
|
|
|
1997-12-08 16:51:26 -04:00
|
|
|
You need the makeindex utility to produce the index for lib.tex.
|
1992-04-05 12:06:03 -03:00
|
|
|
|
1997-12-08 16:51:26 -04:00
|
|
|
There's a Makefile to call Latex and the other utilities in the right
|
1995-03-20 09:00:53 -04:00
|
|
|
order and the right number of times. This will produce DVI files for
|
|
|
|
each document made; to preview them, use xdvi. PostScript is produced
|
|
|
|
by the same Makefile target that produces the DVI files. This uses
|
|
|
|
the dvips tool. Printing depends on local conventions; at my site, I
|
1996-10-23 13:23:47 -03:00
|
|
|
use lp. For example:
|
1995-03-20 09:00:53 -04:00
|
|
|
|
1996-10-23 13:23:47 -03:00
|
|
|
make lib # create lib.dvi and lib.ps
|
|
|
|
xdvi lib # preview lib.dvi
|
|
|
|
lp lib.ps # print on default printer
|
1995-03-20 09:00:53 -04:00
|
|
|
|
|
|
|
|
1997-12-08 16:51:26 -04:00
|
|
|
Using Times fonts
|
1995-03-20 09:00:53 -04:00
|
|
|
-----------------
|
1992-03-06 06:56:17 -04:00
|
|
|
|
1997-12-08 16:51:26 -04:00
|
|
|
As distributed, the Latex documents use the default Tex fonts (CMR).
|
|
|
|
These qre quite ugly. If you have the "PSfont" Latex add-on
|
|
|
|
installed, you can produce versions using Times fonts (and Courier for
|
|
|
|
fixed text) by inserting "times," in the list of options in the
|
|
|
|
documentstyle macro in the first line of the files lib.tex, tut.tex,
|
|
|
|
ext.tex, api.tex, e.g.
|
1995-03-20 09:00:53 -04:00
|
|
|
|
1997-12-08 16:51:26 -04:00
|
|
|
\documentstyle[twoside,times,myformat]{report}
|
1992-12-08 10:37:55 -04:00
|
|
|
|
|
|
|
|
1997-12-08 16:51:26 -04:00
|
|
|
Making HTML files
|
|
|
|
-----------------
|
1992-12-08 10:37:55 -04:00
|
|
|
|
1997-12-08 16:51:26 -04:00
|
|
|
The Latex documents can be converted to HTML using Nikos Drakos'
|
|
|
|
Latex2html converter. See the Makefile; after some twiddling, "make
|
|
|
|
l2h" should do the trick.
|
1996-10-23 13:23:47 -03:00
|
|
|
|
1997-12-08 16:51:26 -04:00
|
|
|
For the reference manual, I use Harlequin's webmaker. I'm not very
|
|
|
|
happy with it and hope that eventually FrameMaker will be able to
|
|
|
|
produce HTML without third party help.
|