0
0
mirror of https://github.com/python/cpython.git synced 2024-12-01 11:15:56 +01:00
cpython/Doc
1998-02-11 14:43:38 +00:00
..
api
ext
html
icons
info
lib
mac
ref
templates
texinputs
tools
tut
.cvsignore
.latex2html-init
api.tex
boilerplate.tex
copyright.tex
custlib.py
ext.tex
fix_hack
fix_libaux.sed
fix.el
index.html
indfix.py
keywords.py
lib.tex
libaifc.tex
libal.tex
liballos.tex
libamoeba.tex
libanydbm.tex
libarray.tex
libaudioop.tex
libbase64.tex
libbasehttp.tex
libbastion.tex
libbinascii.tex
libbltin.tex
libcd.tex
libcgi.tex
libcmath.tex
libcode.tex
libcommands.tex
libcopy.tex
libcopyreg.tex
libcrypt.tex
libcrypto.tex
libctb.tex
libdbm.tex
libdis.tex
liberrno.tex
libexcs.tex
libfcntl.tex
libfl.tex
libfm.tex
libfnmatch.tex
libformatter.tex
libftplib.tex
libfuncs.tex
libgdbm.tex
libgetopt.tex
libgl.tex
libglob.tex
libgopherlib.tex
libgrp.tex
libgzip.tex
libhtmllib.tex
libhttplib.tex
libimageop.tex
libimgfile.tex
libimghdr.tex
libimp.tex
libintro.tex
libjpeg.tex
libkeyword.tex
liblocale.tex
libmac.tex
libmacconsole.tex
libmacdnr.tex
libmacfs.tex
libmacic.tex
libmacos.tex
libmacostools.tex
libmacspeech.tex
libmactcp.tex
libmacui.tex
libmailbox.tex
libmailcap.tex
libmain.tex
libmarshal.tex
libmath.tex
libmd5.tex
libmimetools.tex
libmimify.tex
libmisc.tex
libmm.tex
libmods.tex
libmpz.tex
libni.tex
libnntplib.tex
libobjs.tex
liboperator.tex
libos.tex
libpanel.tex
libparser.tex
libpdb.tex
libpickle.tex
libposix.tex
libposixfile.tex
libppath.tex
libpprint.tex
libprofile.tex
libpwd.tex
libpython.tex
libqueue.tex
libquopri.tex
librand.tex
librandom.tex
libre.tex
libregex.tex
libregsub.tex
libresource.tex
librestricted.tex
librexec.tex
librfc822.tex
librgbimg.tex
librotor.tex
libselect.tex
libsgi.tex
libsgmllib.tex
libshelve.tex
libsignal.tex
libsite.tex
libsocket.tex
libsocksvr.tex
libsomeos.tex
libsoundex.tex
libstat.tex
libstd.tex
libstdwin.tex
libstring.tex
libstrings.tex
libstrio.tex
libstruct.tex
libsun.tex
libsys.tex
libsyslog.tex
libtempfile.tex
libtemplate.tex
libtermios.tex
libthread.tex
libtime.tex
libtraceback.tex
libtypes2.tex
libtypes.tex
libundoc.tex
libunix.tex
liburllib.tex
liburlparse.tex
libuser.tex
libuserdict.tex
libwhichdb.tex
libwhrandom.tex
libwww.tex
libxdrlib.tex
libxmllib.tex
libzlib.tex
Makefile Add copyright.tex and boilerplate.tex to the common dependencies for .dvi 1998-02-11 14:43:38 +00:00
modindex.py
myformat.perl
myformat.sty
partparse.py
README
texi2html.py
texipost.dat
texipre.dat
text2latex.py
tut.tex
whichlibs

Python main documentation -- in Latex
-------------------------------------

This directory contains the Latex sources to the Python documentation.
They now require latex2e (latex 2.09 compatibility is dropped).

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.