Source

cpython-packaging / Doc /

The branch 'legacy-trunk' does not exist.
Filename Size Date modified Message
..
api
ext
html
icons
info
lib
mac
ref
templates
texinputs
tools
tut
107 B
6.5 KB
8.3 KB
2.4 KB
107.5 KB
274 B
1.3 KB
2.0 KB
57.6 KB
220 B
86 B
111 B
512 B
395 B
5.1 KB
6.7 KB
5.0 KB
819 B
3.5 KB
1.7 KB
4.8 KB
9.8 KB
1.7 KB
7.7 KB
1.8 KB
5.8 KB
320 B
11.0 KB
17.1 KB
2.2 KB
1.2 KB
1.8 KB
2.2 KB
972 B
994 B
5.1 KB
1.4 KB
14.6 KB
8.4 KB
11.5 KB
2.9 KB
14.1 KB
2.7 KB
1.8 KB
13.1 KB
8.0 KB
28.0 KB
3.1 KB
3.0 KB
5.1 KB
1.4 KB
1.3 KB
1.1 KB
1.9 KB
4.9 KB
4.3 KB
3.4 KB
2.7 KB
1.6 KB
9.8 KB
2.5 KB
2.0 KB
265 B
7.3 KB
2.9 KB
2.9 KB
3.8 KB
7.7 KB
5.1 KB
4.0 KB
3.5 KB
2.6 KB
5.7 KB
15.5 KB
1.4 KB
3.5 KB
260 B
4.1 KB
2.5 KB
2.1 KB
3.6 KB
3.2 KB
559 B
716 B
342 B
3.2 KB
2.4 KB
9.5 KB
1.1 KB
4.9 KB
4.3 KB
2.1 KB
31.0 KB
10.7 KB
10.7 KB
17.1 KB
5.6 KB
5.1 KB
6.1 KB
29.9 KB
999 B
1.5 KB
2.8 KB
1.3 KB
880 B
3.3 KB
23.3 KB
15.4 KB
3.1 KB
7.4 KB
3.6 KB
9.4 KB
5.8 KB
1.9 KB
4.5 KB
2.0 KB
174 B
7.7 KB
2.2 KB
5.9 KB
3.1 KB
15.5 KB
7.8 KB
992 B
1.0 KB
2.4 KB
345 B
26.6 KB
9.5 KB
507 B
695 B
5.2 KB
4.6 KB
10.4 KB
2.5 KB
2.0 KB
4.3 KB
4.2 KB
4.2 KB
7.4 KB
2.4 KB
30.7 KB
3.1 KB
5.4 KB
1.2 KB
5.0 KB
3.0 KB
2.5 KB
1.3 KB
636 B
1.6 KB
2.3 KB
7.4 KB
7.7 KB
4.3 KB
10.7 KB
7.1 KB
63.1 KB
42.2 KB
306 B
4.0 KB
1.3 KB
120.6 KB
71 B
Python main documentation -- in Latex
-------------------------------------

This directory contains the Latex sources to the Python documentation.

The Python Reference Manual is no longer maintained in Latex.  It is
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
subdirectory ref/.  (See ftp://ftp.adobe.com/pub/adobe/framereader for
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.

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).

The following are the Latex source files:

	tut.tex				The tutorial
	lib.tex, lib*.tex		The library reference
	ext.tex				How to extend Python
	api.tex				Reference for the Python/C API

All use the style option file "myformat.sty".  This contains some
macro definitions and sets some style parameters.

You need the makeindex utility to produce the index for lib.tex.

There's a Makefile to call Latex and the other utilities in the right
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
use lp.  For example:

	make lib			# create lib.dvi and lib.ps
	xdvi lib			# preview lib.dvi
	lp lib.ps			# print on default printer


Using Times fonts
-----------------

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.

	\documentstyle[twoside,times,myformat]{report}


Making HTML files
-----------------

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.

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.