blob: e76338196e94decbf7df9a1b725ca83904a926ab [file] [log] [blame]
Fred Drake1a87e9d1998-05-12 16:50:32 +00001THIS IS A *TEST* RELEASE. It includes a significantly revised
2directory organization for the documentation, and much of the
3formatting process has been adjusted. The documentation itself is not
4necessarily consistent with any released version of Python.
5
6The only purpose for this release is to test the usability of the new
7directory structure. Please attempt to *format* the documentation to
8determine if the new processes are suitable for your purposes; the
9basic targets have been extensively tested, but variations may require
10some work. Please let us know if there are any problems with the new
11organization or processes; send email to:
12
13 python-docs@python.org
14
15
Fred Drake34eefe51998-03-03 21:41:22 +000016Python main documentation -- in LaTeX
Guido van Rossumcd7bf391992-04-05 15:06:03 +000017-------------------------------------
18
Fred Drake34eefe51998-03-03 21:41:22 +000019This directory contains the LaTeX sources to the Python documentation.
20They now require LaTeX2e (LaTeX 2.09 compatibility is dropped).
Guido van Rossum7f777ed1990-08-09 14:25:15 +000021
Fred Drake34eefe51998-03-03 21:41:22 +000022If you don't have LaTeX, or if you'd rather not format the
23documentation yourself, you can ftp a tar file containing HTML, PDF,
24or PostScript versions of all documents. Additional formats may be
25available. These should be in the same place where you fetched the
Fred Drake71472a51998-03-04 15:21:02 +000026main Python distribution (try <http://www.python.org> or
27<ftp://ftp.python.org>).
Guido van Rossumf1245a81995-03-20 13:00:53 +000028
Fred Drake34eefe51998-03-03 21:41:22 +000029The following are the LaTeX source files:
Guido van Rossum7f777ed1990-08-09 14:25:15 +000030
Fred Drake099b76c1998-05-11 16:31:32 +000031 api/*.tex Python/C API Reference Manual
32 ext/*.tex Extending and Embedding the Python Interpreter
33 lib/*.tex Python Library Reference
34 ref/*.tex Python Reference Manual
35 tut/*.tex Python Tutorial
Guido van Rossum7f777ed1990-08-09 14:25:15 +000036
Fred Drake34eefe51998-03-03 21:41:22 +000037All use the "manual" document class and "python" package, derived from
38the old "myformat.sty" style file. These contains many macro
39definitions useful in documenting Python, and set some style parameters.
Guido van Rossum7f777ed1990-08-09 14:25:15 +000040
Fred Drake34eefe51998-03-03 21:41:22 +000041There's a Makefile to call LaTeX and the other utilities in the right
Guido van Rossumf1245a81995-03-20 13:00:53 +000042order and the right number of times. This will produce DVI files for
43each document made; to preview them, use xdvi. PostScript is produced
44by the same Makefile target that produces the DVI files. This uses
Fred Drake71472a51998-03-04 15:21:02 +000045the dvips tool. Printing depends on local conventions; at our site,
46we use lpr. For example:
Guido van Rossum7f777ed1990-08-09 14:25:15 +000047
Fred Drake099b76c1998-05-11 16:31:32 +000048 make lib # create lib.dvi and lib.ps
49 xdvi lib # preview lib.dvi
50 lpr lib.ps # print on default printer
Guido van Rossumcd7bf391992-04-05 15:06:03 +000051
Guido van Rossumf1245a81995-03-20 13:00:53 +000052
Fred Drake71472a51998-03-04 15:21:02 +000053What if I find a bug?
54---------------------
55
56First, check that the bug is present in the online version of the
57documentation at <http://www.python.org/docs/>; we may have already
58fixed it.
59
60If we haven't, tell us about it. We'd like the documentation to be
61complete and accurate, but have limited time. If you discover any
62inconsistencies between the documentation and implementation, or just
63have suggestions as to how to improve the documentation, let is know!
64Send comments and patches to the Python Documentation Team:
65
66 python-docs@python.org
67
68Thanks!
69
70
Fred Drake4190fae1998-05-11 19:05:36 +000071What happened to the Macintosh chapter of the Python Library Reference?
72-----------------------------------------------------------------------
73
74The directory mac/ contains the LaTeX sources for the "Macintosh
75Library Modules" manual; this is not currently included in the build
76system. To build, do the following:
77
78 cd Doc/mac
79 ../tools/mkhowto.sh --ps --pdf --html mac
80
81(Any combination of --ps, --pdf, and --html may be used depending on
82your needs; the default is --pdf.)
83
84
Fred Drake34eefe51998-03-03 21:41:22 +000085What tools do I need?
86---------------------
Guido van Rossuma417b661997-12-08 20:51:26 +000087
Fred Drake34eefe51998-03-03 21:41:22 +000088You need to install Python; some of the scripts used to produce the
89documentation are written in Python.
Guido van Rossuma417b661997-12-08 20:51:26 +000090
Fred Drake34eefe51998-03-03 21:41:22 +000091The simplest way to get the rest of the tools in the configuration we
Fred Drake099b76c1998-05-11 16:31:32 +000092used is to install the teTeX TeX distribution, version 0.4 or 0.9. More
Fred Drake71472a51998-03-04 15:21:02 +000093information is available on teTeX at <http://www.tug.org/tetex/>.
Fred Drake6355bd41998-03-27 05:17:21 +000094This is a UNIX-only TeX distribution at this time. Note that the 0.9
95release is still in testing; this documentation release was tested
Fred Drake099b76c1998-05-11 16:31:32 +000096with the 21 Apr 1998 release. We'll be upgrading to the final version
97when it becomes available. Except for the PDF generation, it also works
98with the (stable) teTeX 0.4 release.
Fred Drake34eefe51998-03-03 21:41:22 +000099
Fred Drake099b76c1998-05-11 16:31:32 +0000100If you don't want to get teTeX, here is what you'll need:
Fred Drake34eefe51998-03-03 21:41:22 +0000101
102To create DVI, PDF, or PostScript files:
103
104 - LaTeX2e, 1995/12/01 or newer. Older versions are likely to
105 choke.
106
107 - makeindex. This is used to produce the indexes for the
108 library reference and Python/C API reference.
109
110To create PDF files:
111
112 - pdflatex. We used the one in the teTeX 0.9 distribution
Fred Drake099b76c1998-05-11 16:31:32 +0000113 (version 0.12h at the time of this writing). Versions even
114 a couple of patchlevels earlier are highly likely to fail
115 due to syntax changes for some of the pdftex primitives.
Fred Drake34eefe51998-03-03 21:41:22 +0000116
117To create PostScript files:
118
119 - dvips. Most TeX installations include this. If you don't
Fred Drake71472a51998-03-04 15:21:02 +0000120 have one, check CTAN (<ftp://ctan.tug.org/tex-archive/>).
Fred Drake34eefe51998-03-03 21:41:22 +0000121
122To create info files:
123
Fred Drake45084ed1998-04-09 15:19:41 +0000124 (Note that info is not currently supported. If you need it,
125 please fix or replace tools/partparse.py and send the new
126 version to python-docs@python.org. We'll be glad to provide
127 free copies of the info files to anyone who can support the
128 process. ;-)
129
Fred Drake34eefe51998-03-03 21:41:22 +0000130 - makeinfo. This is available from any GNU mirror.
131
Fred Drake45084ed1998-04-09 15:19:41 +0000132 - emacs or xemacs. Emacs is available from the same place as
133 makeinfo, and xemacs is available from ftp.xemacs.org.
134
Fred Drake34eefe51998-03-03 21:41:22 +0000135To create HTML files:
136
Fred Drake71472a51998-03-04 15:21:02 +0000137 - Perl 5.004_04 or newer. Find the software at
138 <http://language.perl.com/info/software.html>.
Fred Drake34eefe51998-03-03 21:41:22 +0000139
Fred Drakee0a0fcd1998-05-15 17:03:00 +0000140 - LaTeX2HTML 98.1p5 or newer. Older version will fail with
141 the new directory layout. Releases are available at
142 <http://dc-server.cdc.informatik.tu-darmstadt.de/~latex2html/>.
Fred Drake34eefe51998-03-03 21:41:22 +0000143
144
145What if Times fonts are not available?
146--------------------------------------
147
148As distributed, the LaTeX documents use PostScript Times fonts. This
149is done since they are much better looking and produce smaller
150PostScript files. If, however, your TeX installation does not support
Fred Drake4912beb1998-03-11 17:07:35 +0000151them, they may be easily disabled. Edit the file
152texiinputs/manual.cls and comment out the line that starts
153"\RequirePackage{times}" using a "%" character at the beginning of the
154line. An alternative is to install the right fonts and LaTeX style
155file.
156
157
158What if I want to use A4 paper?
159-------------------------------
160
Fred Drake099b76c1998-05-11 16:31:32 +0000161Instead of building the PostScript by giving the command "make", give
162the command "make PAPER=a4"; the output will be produced in the
163paper-a4/ subdirectory.
Guido van Rossuma417b661997-12-08 20:51:26 +0000164
165
Guido van Rossumf1245a81995-03-20 13:00:53 +0000166Making HTML files
167-----------------
168
Fred Drake34eefe51998-03-03 21:41:22 +0000169The LaTeX documents can be converted to HTML using Nikos Drakos'
170LaTeX2HTML converter. See the Makefile; after some twiddling, "make
Guido van Rossuma417b661997-12-08 20:51:26 +0000171l2h" should do the trick.
Guido van Rossumf1245a81995-03-20 13:00:53 +0000172
Fred Drake4912beb1998-03-11 17:07:35 +0000173
Fred Drake6355bd41998-03-27 05:17:21 +0000174What else is in here?
175---------------------
176
177There is a new LaTeX document class called "howto". This is used for
178the new series of Python HOWTO documents which is being coordinated by
179Andrew Kuchling <amk@acm.org>. The file howto.tex is a commented
Fred Drake099b76c1998-05-11 16:31:32 +0000180example which may be used a template. A script to "do the right
Fred Drake6355bd41998-03-27 05:17:21 +0000181thing" to format a howto document is included as tools/mkhowto.sh.
182Support for this document class is still new, but is expected to
Fred Drake16a19c41998-04-03 05:41:38 +0000183evolve rapidly. Use "mkhowto.sh --help" for information on using the
184formatting tool.
Fred Drake6355bd41998-03-27 05:17:21 +0000185
186
Fred Drake4912beb1998-03-11 17:07:35 +0000187Copyright notice
188================
189
190The Python source is copyrighted, but you can freely use and copy it
191as long as you don't change or remove the copyright notice:
192
193----------------------------------------------------------------------
194Copyright 1991-1995 by Stichting Mathematisch Centrum, Amsterdam,
195The Netherlands.
196
197 All Rights Reserved
198
199Permission to use, copy, modify, and distribute this software and its
200documentation for any purpose and without fee is hereby granted,
201provided that the above copyright notice appear in all copies and that
202both that copyright notice and this permission notice appear in
203supporting documentation, and that the names of Stichting Mathematisch
204Centrum or CWI or Corporation for National Research Initiatives or
205CNRI not be used in advertising or publicity pertaining to
206distribution of the software without specific, written prior
207permission.
208
209While CWI is the initial source for this software, a modified version
210is made available by the Corporation for National Research Initiatives
211(CNRI) at the Internet address ftp://ftp.python.org.
212
213STICHTING MATHEMATISCH CENTRUM AND CNRI DISCLAIM ALL WARRANTIES WITH
214REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF
215MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL STICHTING MATHEMATISCH
216CENTRUM OR CNRI BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL
217DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
218PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
219TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
220PERFORMANCE OF THIS SOFTWARE.
221----------------------------------------------------------------------