Guido van Rossum | a417b66 | 1997-12-08 20:51:26 +0000 | [diff] [blame^] | 1 | Python main documentation -- in Latex |
Guido van Rossum | cd7bf39 | 1992-04-05 15:06:03 +0000 | [diff] [blame] | 2 | ------------------------------------- |
| 3 | |
Guido van Rossum | a417b66 | 1997-12-08 20:51:26 +0000 | [diff] [blame^] | 4 | This directory contains the Latex sources to the Python documentation. |
Guido van Rossum | 7f777ed | 1990-08-09 14:25:15 +0000 | [diff] [blame] | 5 | |
Guido van Rossum | a417b66 | 1997-12-08 20:51:26 +0000 | [diff] [blame^] | 6 | The Python Reference Manual is no longer maintained in Latex. It is |
Guido van Rossum | 71ec03b | 1996-10-23 16:23:47 +0000 | [diff] [blame] | 7 | now a FrameMaker document. The FrameMaker 5.0 files (ref.book, |
| 8 | ref*.doc) as well as PostScript generated (ref.ps) from it are in the |
Guido van Rossum | 3990042 | 1996-12-18 19:55:49 +0000 | [diff] [blame] | 9 | subdirectory ref/. (See ftp://ftp.adobe.com/pub/adobe/framereader for |
Guido van Rossum | a417b66 | 1997-12-08 20:51:26 +0000 | [diff] [blame^] | 10 | a free reader for FrameMaker documents, for some platforms.) Many |
| 11 | thanks to Robin Friedrich for the conversion of the Reference Manual |
| 12 | to FrameMaker and his work on its index. |
Guido van Rossum | 71ec03b | 1996-10-23 16:23:47 +0000 | [diff] [blame] | 13 | |
Guido van Rossum | a417b66 | 1997-12-08 20:51:26 +0000 | [diff] [blame^] | 14 | If you don't have Latex, you can ftp a tar file containing PostScript |
| 15 | of all documents. It should be in the same place where you fetched |
| 16 | the main Python distribution (try http://www.python.org or |
| 17 | ftp://ftp.python.org). |
Guido van Rossum | f1245a8 | 1995-03-20 13:00:53 +0000 | [diff] [blame] | 18 | |
Guido van Rossum | a417b66 | 1997-12-08 20:51:26 +0000 | [diff] [blame^] | 19 | The following are the Latex source files: |
Guido van Rossum | 7f777ed | 1990-08-09 14:25:15 +0000 | [diff] [blame] | 20 | |
Guido van Rossum | 676d6da | 1992-02-11 15:51:36 +0000 | [diff] [blame] | 21 | tut.tex The tutorial |
Guido van Rossum | 6938f06 | 1994-08-01 12:22:53 +0000 | [diff] [blame] | 22 | lib.tex, lib*.tex The library reference |
Guido van Rossum | 6938f06 | 1994-08-01 12:22:53 +0000 | [diff] [blame] | 23 | ext.tex How to extend Python |
Guido van Rossum | a417b66 | 1997-12-08 20:51:26 +0000 | [diff] [blame^] | 24 | api.tex Reference for the Python/C API |
Guido van Rossum | 7f777ed | 1990-08-09 14:25:15 +0000 | [diff] [blame] | 25 | |
Guido van Rossum | a417b66 | 1997-12-08 20:51:26 +0000 | [diff] [blame^] | 26 | All use the style option file "myformat.sty". This contains some |
| 27 | macro definitions and sets some style parameters. |
Guido van Rossum | 7f777ed | 1990-08-09 14:25:15 +0000 | [diff] [blame] | 28 | |
Guido van Rossum | a417b66 | 1997-12-08 20:51:26 +0000 | [diff] [blame^] | 29 | You need the makeindex utility to produce the index for lib.tex. |
Guido van Rossum | cd7bf39 | 1992-04-05 15:06:03 +0000 | [diff] [blame] | 30 | |
Guido van Rossum | a417b66 | 1997-12-08 20:51:26 +0000 | [diff] [blame^] | 31 | There's a Makefile to call Latex and the other utilities in the right |
Guido van Rossum | f1245a8 | 1995-03-20 13:00:53 +0000 | [diff] [blame] | 32 | order and the right number of times. This will produce DVI files for |
| 33 | each document made; to preview them, use xdvi. PostScript is produced |
| 34 | by the same Makefile target that produces the DVI files. This uses |
| 35 | the dvips tool. Printing depends on local conventions; at my site, I |
Guido van Rossum | 71ec03b | 1996-10-23 16:23:47 +0000 | [diff] [blame] | 36 | use lp. For example: |
Guido van Rossum | 7f777ed | 1990-08-09 14:25:15 +0000 | [diff] [blame] | 37 | |
Guido van Rossum | 71ec03b | 1996-10-23 16:23:47 +0000 | [diff] [blame] | 38 | make lib # create lib.dvi and lib.ps |
| 39 | xdvi lib # preview lib.dvi |
| 40 | lp lib.ps # print on default printer |
Guido van Rossum | cd7bf39 | 1992-04-05 15:06:03 +0000 | [diff] [blame] | 41 | |
Guido van Rossum | f1245a8 | 1995-03-20 13:00:53 +0000 | [diff] [blame] | 42 | |
Guido van Rossum | a417b66 | 1997-12-08 20:51:26 +0000 | [diff] [blame^] | 43 | Using Times fonts |
| 44 | ----------------- |
| 45 | |
| 46 | As distributed, the Latex documents use the default Tex fonts (CMR). |
| 47 | These qre quite ugly. If you have the "PSfont" Latex add-on |
| 48 | installed, you can produce versions using Times fonts (and Courier for |
| 49 | fixed text) by inserting "times," in the list of options in the |
| 50 | documentstyle macro in the first line of the files lib.tex, tut.tex, |
| 51 | ext.tex, api.tex, e.g. |
| 52 | |
| 53 | \documentstyle[twoside,times,myformat]{report} |
| 54 | |
| 55 | |
Guido van Rossum | f1245a8 | 1995-03-20 13:00:53 +0000 | [diff] [blame] | 56 | Making HTML files |
| 57 | ----------------- |
| 58 | |
Guido van Rossum | a417b66 | 1997-12-08 20:51:26 +0000 | [diff] [blame^] | 59 | The Latex documents can be converted to HTML using Nikos Drakos' |
| 60 | Latex2html converter. See the Makefile; after some twiddling, "make |
| 61 | l2h" should do the trick. |
Guido van Rossum | f1245a8 | 1995-03-20 13:00:53 +0000 | [diff] [blame] | 62 | |
Guido van Rossum | a417b66 | 1997-12-08 20:51:26 +0000 | [diff] [blame^] | 63 | For the reference manual, I use Harlequin's webmaker. I'm not very |
| 64 | happy with it and hope that eventually FrameMaker will be able to |
| 65 | produce HTML without third party help. |