Guido van Rossum | cd7bf39 | 1992-04-05 15:06:03 +0000 | [diff] [blame] | 1 | Python main documentation -- in LaTeX |
| 2 | ------------------------------------- |
| 3 | |
| 4 | This directory contains the LaTeX sources to the Python documentation |
| 5 | and a published article about Python. |
Guido van Rossum | 7f777ed | 1990-08-09 14:25:15 +0000 | [diff] [blame] | 6 | |
Guido van Rossum | 676d6da | 1992-02-11 15:51:36 +0000 | [diff] [blame] | 7 | The following are the LaTeX source files: |
Guido van Rossum | 7f777ed | 1990-08-09 14:25:15 +0000 | [diff] [blame] | 8 | |
Guido van Rossum | 676d6da | 1992-02-11 15:51:36 +0000 | [diff] [blame] | 9 | tut.tex The tutorial |
Guido van Rossum | 6938f06 | 1994-08-01 12:22:53 +0000 | [diff] [blame^] | 10 | lib.tex, lib*.tex The library reference |
Guido van Rossum | 95cd2ef | 1992-12-08 14:37:55 +0000 | [diff] [blame] | 11 | ref.tex, ref[1-8].tex The reference manual |
Guido van Rossum | 6938f06 | 1994-08-01 12:22:53 +0000 | [diff] [blame^] | 12 | ext.tex How to extend Python |
Guido van Rossum | 676d6da | 1992-02-11 15:51:36 +0000 | [diff] [blame] | 13 | qua.tex, quabib.bib Article published in CWI Quarterly |
Guido van Rossum | 7f777ed | 1990-08-09 14:25:15 +0000 | [diff] [blame] | 14 | |
Guido van Rossum | 6938f06 | 1994-08-01 12:22:53 +0000 | [diff] [blame^] | 15 | All except qua.tex (which isn't built by the default target) use the |
| 16 | style option file "myformat.sty". This contains some macro |
| 17 | definitions and sets some style parameters. |
Guido van Rossum | 7f777ed | 1990-08-09 14:25:15 +0000 | [diff] [blame] | 18 | |
Guido van Rossum | d18b8af | 1992-04-06 14:02:37 +0000 | [diff] [blame] | 19 | The style parameters are set up for European paper size (21 x 29.7 cm, |
| 20 | a.k.a. A4, or roughly 8.27 x 11.7 inch) by default. To use US paper, |
| 21 | comment out the line saying \input{a4wide.sty} in myformat.sty (you |
| 22 | may want to fiddle with lay-out parameters like \textwidth and |
| 23 | \textheight, since the default format uses rather wide margins). |
Guido van Rossum | cd7bf39 | 1992-04-05 15:06:03 +0000 | [diff] [blame] | 24 | |
| 25 | You need the makeindex utility to produce the index for ref.tex |
| 26 | lib.tex; you need bibtex to produce the references list for qua.tex. |
| 27 | |
| 28 | There's a Makefile to call latex and the other utilities in the right |
| 29 | order and the right number of times. This will produce dvi files for |
| 30 | each document made; to preview them, use xdvi. Printing depends on |
| 31 | local conventions; at my site, I use dvips and lpr. For example: |
Guido van Rossum | 7f777ed | 1990-08-09 14:25:15 +0000 | [diff] [blame] | 32 | |
Guido van Rossum | 0e5f009 | 1992-03-06 10:56:17 +0000 | [diff] [blame] | 33 | make ref # creates ref.dvi |
| 34 | xdvi ref # preview it |
| 35 | dvips -Ppsc ref | lpr -Ppsc # print it on printer "psc". |
Guido van Rossum | cd7bf39 | 1992-04-05 15:06:03 +0000 | [diff] [blame] | 36 | |
| 37 | If you don't have latex, you can ftp the pre-formatted PosytScript |
Guido van Rossum | 6938f06 | 1994-08-01 12:22:53 +0000 | [diff] [blame^] | 38 | versions of the documents. It should be in the same place where you |
| 39 | fetched the main Python distribution, if you got it by ftp. (See |
| 40 | "../Misc/FAQ" for information about ftp-ing Python files.) |
| 41 | |
Guido van Rossum | 95cd2ef | 1992-12-08 14:37:55 +0000 | [diff] [blame] | 42 | |
| 43 | Making the INFO version of the Library Reference |
| 44 | ------------------------------------------------ |
| 45 | |
| 46 | The Library Reference can now also be read in hypertext form using the |
| 47 | Emacs INFO system. This uses Texinfo format as an intermediate step. |
| 48 | It requires texinfo version 2 (we have used 2.14). |
| 49 | |
Guido van Rossum | 6938f06 | 1994-08-01 12:22:53 +0000 | [diff] [blame^] | 50 | To build the info files (python-lib.info*), say "make lib.info". This |
Guido van Rossum | 95cd2ef | 1992-12-08 14:37:55 +0000 | [diff] [blame] | 51 | takes a while, even on machines with 33 MIPS and 16 Mbytes :-) You can |
| 52 | ignore the output. |
| 53 | |
| 54 | But first you'll have to change a site dependency in fix.el: if |
Guido van Rossum | 6938f06 | 1994-08-01 12:22:53 +0000 | [diff] [blame^] | 55 | texinfo 2.xx isn't installed by default at your site, you'll have to |
| 56 | install it (use archie to locate a version and ftp to fetch it). If |
| 57 | you can't install it in the standard Emacs load path, uncomment the |
| 58 | line containing a "(setq load-path ...)" statement, and fill in the |
| 59 | path where you put it. |
Guido van Rossum | 95cd2ef | 1992-12-08 14:37:55 +0000 | [diff] [blame] | 60 | |
| 61 | The files used by the conversion process are: |
| 62 | |
Guido van Rossum | 6938f06 | 1994-08-01 12:22:53 +0000 | [diff] [blame^] | 63 | partparse.py Python script that converts LaTeX sources to |
| 64 | texi files. |
Guido van Rossum | 95cd2ef | 1992-12-08 14:37:55 +0000 | [diff] [blame] | 65 | |
Guido van Rossum | 6938f06 | 1994-08-01 12:22:53 +0000 | [diff] [blame^] | 66 | texi{pre,post}.dat Files placed before and after the result. |
Guido van Rossum | 95cd2ef | 1992-12-08 14:37:55 +0000 | [diff] [blame] | 67 | |
Guido van Rossum | 6938f06 | 1994-08-01 12:22:53 +0000 | [diff] [blame^] | 68 | fix.el Elisp file executed by Emacs. Two calls to |
Guido van Rossum | 95cd2ef | 1992-12-08 14:37:55 +0000 | [diff] [blame] | 69 | 'texinfo-all-menus-update are necessary in |
Guido van Rossum | 6938f06 | 1994-08-01 12:22:53 +0000 | [diff] [blame^] | 70 | some cases. |
Guido van Rossum | 95cd2ef | 1992-12-08 14:37:55 +0000 | [diff] [blame] | 71 | |
Guido van Rossum | 6938f06 | 1994-08-01 12:22:53 +0000 | [diff] [blame^] | 72 | fix_hack Shell script to fix the results of the |
| 73 | "underscore hack". {\ptt \char'137} is |
| 74 | back-translated to a simple underscore. This |
| 75 | is needed for the texindex program. |
Guido van Rossum | 95cd2ef | 1992-12-08 14:37:55 +0000 | [diff] [blame] | 76 | |
Guido van Rossum | 6938f06 | 1994-08-01 12:22:53 +0000 | [diff] [blame^] | 77 | whichlibs Shell script to print a list of lib*.tex files |
| 78 | to be processed. |
Guido van Rossum | 95cd2ef | 1992-12-08 14:37:55 +0000 | [diff] [blame] | 79 | |
| 80 | A Million thanks for Jan-Hein B\"uhrman for writing and debugging the |
| 81 | convertor and related scripts, and for fixing the LaTeX sources and |
| 82 | writing new macros for myformat.sty! |