summaryrefslogtreecommitdiffstats
path: root/Doc/lib/lib.tex
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1992-01-07 16:40:44 (GMT)
committerGuido van Rossum <guido@python.org>1992-01-07 16:40:44 (GMT)
commit1230c08b8e158142baaa7619384bd7f6856532b2 (patch)
treec430a78d3f8030ab58da9854701f1d9cd151d92d /Doc/lib/lib.tex
parent46b1638044ab8afaa78843a8f5f76213f20ef023 (diff)
downloadcpython-1230c08b8e158142baaa7619384bd7f6856532b2.zip
cpython-1230c08b8e158142baaa7619384bd7f6856532b2.tar.gz
cpython-1230c08b8e158142baaa7619384bd7f6856532b2.tar.bz2
Changes needed for indexing.
Diffstat (limited to 'Doc/lib/lib.tex')
-rw-r--r--Doc/lib/lib.tex45
1 files changed, 34 insertions, 11 deletions
diff --git a/Doc/lib/lib.tex b/Doc/lib/lib.tex
index c11cb5b..101d33e 100644
--- a/Doc/lib/lib.tex
+++ b/Doc/lib/lib.tex
@@ -2,24 +2,44 @@
\documentstyle[myformat]{report} % To preview with xdvi
-% Support to leave changebars in...
+% Underscores are not magic throughout this document
+\catcode`_=12
+
+% Dummy \cbstart and \cbend so I can leave the changebars in...
\newcommand{\cbstart}{}
\newcommand{\cbend}{}
-% A command to force the text after an item to start on a new line
+% Define \itembreak: force the text after an item to start on a new line
\newcommand{\itembreak}{
- \mbox{}\\*[0mm]
+\mbox{}
+\\*[0mm]
+}
+
+% Define \itemjoin: some negative vspace to join two items together
+\newcommand{\itemjoin}{
+\mbox{}
+\vspace{-\itemsep}
+\vspace{-\parsep}
}
-% A command to define a function item
-\newcommand{\funcitem}[2]{\item[#1(#2)]}
+% Define \funcitem{func}{args}: define a function item
+\newcommand{\funcitem}[2]{
+\index{#1@{\tt#1}}
+\item[{\tt #1(#2)}]
+\
+}
-% A command to define a data item
-\newcommand{\dataitem}[1]{\item[#1]}
+% Define \dataitem{name}: define a data item
+\newcommand{\dataitem}[1]{
+\index{#1@{\tt#1}}
+\item[{\tt #1}]
+\
+}
-% A command to define an exception item
+% Define \excitem{name}{string}: define an exception item
\newcommand{\excitem}[2]{
-\item[#1 = {\tt '#2'}]
+\index{#1@{\tt#1}}
+\item[{\tt #1 = '#2'}]
\itembreak
}
@@ -34,6 +54,8 @@
E-mail: {\tt guido@cwi.nl}
}
+\makeindex
+
\begin{document}
\pagenumbering{roman}
@@ -63,7 +85,8 @@ language.
\input{lib1.tex} % intro; built-in types, functions and exceptions
\input{lib2.tex} % built-in modules
\input{lib3.tex} % standard modules
-\input{lib4.tex} % OS-dependent appendixes
-\input{lib5.tex} % Graphics appendixes
+\input{lib4.tex} % OS-dependent chapters
+\input{lib5.tex} % Graphics chapters
+\input{libindex.tex} % The index
\end{document}