summaryrefslogtreecommitdiff
path: root/sandbox/dkuhlman/README_docpy
blob: f5dfec768818e7d8fd2986ce4a733df213c6de3e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
=======================================================
Python LaTeX -- reStructuredText for Documenting Python
=======================================================


What it does -- Python LaTeX generates LaTeX suitable as input to
the "Documenting Python" system.  This system is described at:

    http://www.python.org/dev/doc/devel/doc/doc.html


Installation
------------

If you have a standard Docutils installation, then you should be
able to go to the parent directory of the ``docutils`` directory,
then do the following::

    unzip rstdocpy-1.0b.zip

This will create (overlay) the following files::

    README_docpy
    Docs/Makefile
    Docs/pythonlatex_intro.txt
    docutils/docs/rst/docpy.html
    docutils/docutils/writers/python_latex.py
    docutils/tools/python_latex.py

In order to use the above files in place, you may have to do
something like::

    export PYTHONPATH=/w1/Python/DocUtils/docutils:$PYTHONPATH

You will also need the "Documenting Python" tools installed.  They
are in the ``Doc`` directory of the Python source code
distribution.


Testing
-------

After the above installation, you should be able to go to the
``Msgs`` directory and convert the document ``docpy_intro.rst``.

First, edit the file ``Msgs/Makefile``.  Change the path that
points to the location where the Python source code is installed.
Then type::

    cd Msgs
    make clean
    make


Documentation
-------------

The file ``Msgs/docpy_intro.rst`` contains an introduction.

See the companion document 'Quick reStructuredText for
"Documenting Python"' (docutils/docs/rst/docpy.html) for
additional mark-up that can be used when generating LaTeX for
"Documenting Python". The first section of this document has
information specific to the generation of LaTeX for Documenting
Python. In addition, that document also adds another column to the
specification tables.  This additional column describes the LaTeX
commands generated by this writer.


More Information
----------------

Find out more about Docutils at::

    http://docutils.sourceforge.net/

More information about the Documenting Python system is at::

    http://www.python.org/dev/doc/devel/doc/doc.html


Acknowledgements
-----------------

Thanks to the Docutils project members for Docutils.  In
particular, thanks to project coordinator David Goodger.

Thanks to Engelbert Gruber for the implementation of the latex
writer.  That implementation formed the starting point for this
writer.  He should get much of the credit for this writer also,
however, any bugs were likely introduced by me.


Contact
-------

Please let me know about suggestions and problems::

    Dave Kuhlman
    dkuhlman@rexx.com
    http://www.rexx.com/~dkuhlman