blob: 55b2469734ac44b42ae4915e5c7e0821b2c2d4ba [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
140 - LaTeX2HTML 98.1p1, or newer. Releases are available at
Fred Drake71472a51998-03-04 15:21:02 +0000141 <http://www-dsed.llnl.gov/files/programs/unix/latex2html/>.
Fred Drake34eefe51998-03-03 21:41:22 +0000142
143
144What if Times fonts are not available?
145--------------------------------------
146
147As distributed, the LaTeX documents use PostScript Times fonts. This
148is done since they are much better looking and produce smaller
149PostScript files. If, however, your TeX installation does not support
Fred Drake4912beb1998-03-11 17:07:35 +0000150them, they may be easily disabled. Edit the file
151texiinputs/manual.cls and comment out the line that starts
152"\RequirePackage{times}" using a "%" character at the beginning of the
153line. An alternative is to install the right fonts and LaTeX style
154file.
155
156
157What if I want to use A4 paper?
158-------------------------------
159
Fred Drake099b76c1998-05-11 16:31:32 +0000160Instead of building the PostScript by giving the command "make", give
161the command "make PAPER=a4"; the output will be produced in the
162paper-a4/ subdirectory.
Guido van Rossuma417b661997-12-08 20:51:26 +0000163
164
Guido van Rossumf1245a81995-03-20 13:00:53 +0000165Making HTML files
166-----------------
167
Fred Drake34eefe51998-03-03 21:41:22 +0000168The LaTeX documents can be converted to HTML using Nikos Drakos'
169LaTeX2HTML converter. See the Makefile; after some twiddling, "make
Guido van Rossuma417b661997-12-08 20:51:26 +0000170l2h" should do the trick.
Guido van Rossumf1245a81995-03-20 13:00:53 +0000171
Fred Drake4912beb1998-03-11 17:07:35 +0000172
Fred Drake6355bd41998-03-27 05:17:21 +0000173What else is in here?
174---------------------
175
176There is a new LaTeX document class called "howto". This is used for
177the new series of Python HOWTO documents which is being coordinated by
178Andrew Kuchling <amk@acm.org>. The file howto.tex is a commented
Fred Drake099b76c1998-05-11 16:31:32 +0000179example which may be used a template. A script to "do the right
Fred Drake6355bd41998-03-27 05:17:21 +0000180thing" to format a howto document is included as tools/mkhowto.sh.
181Support for this document class is still new, but is expected to
Fred Drake16a19c41998-04-03 05:41:38 +0000182evolve rapidly. Use "mkhowto.sh --help" for information on using the
183formatting tool.
Fred Drake6355bd41998-03-27 05:17:21 +0000184
185
Fred Drake4912beb1998-03-11 17:07:35 +0000186Copyright notice
187================
188
189The Python source is copyrighted, but you can freely use and copy it
190as long as you don't change or remove the copyright notice:
191
192----------------------------------------------------------------------
193Copyright 1991-1995 by Stichting Mathematisch Centrum, Amsterdam,
194The Netherlands.
195
196 All Rights Reserved
197
198Permission to use, copy, modify, and distribute this software and its
199documentation for any purpose and without fee is hereby granted,
200provided that the above copyright notice appear in all copies and that
201both that copyright notice and this permission notice appear in
202supporting documentation, and that the names of Stichting Mathematisch
203Centrum or CWI or Corporation for National Research Initiatives or
204CNRI not be used in advertising or publicity pertaining to
205distribution of the software without specific, written prior
206permission.
207
208While CWI is the initial source for this software, a modified version
209is made available by the Corporation for National Research Initiatives
210(CNRI) at the Internet address ftp://ftp.python.org.
211
212STICHTING MATHEMATISCH CENTRUM AND CNRI DISCLAIM ALL WARRANTIES WITH
213REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF
214MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL STICHTING MATHEMATISCH
215CENTRUM OR CNRI BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL
216DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
217PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
218TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
219PERFORMANCE OF THIS SOFTWARE.
220----------------------------------------------------------------------