[Python-checkins] CVS: python/dist/src/Doc/texinputs python.sty,1.71,1.72
Fred L. Drake
fdrake@users.sourceforge.net
Fri, 02 Mar 2001 10:57:07 -0800
Update of /cvsroot/python/python/dist/src/Doc/texinputs
In directory usw-pr-cvs1:/tmp/cvs-serv27726/texinputs
Modified Files:
python.sty
Log Message:
Label classes and exceptions explicitly in the documentation (for their
*desc environments).
Index: python.sty
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/texinputs/python.sty,v
retrieving revision 1.71
retrieving revision 1.72
diff -C2 -r1.71 -r1.72
*** python.sty 2001/01/22 17:50:42 1.71
--- python.sty 2001/03/02 18:57:05 1.72
***************
*** 117,124 ****
\parindent = 0mm
\parskip = 2mm
! \hbadness = 5000 % don't print trivial gripes
! \pagestyle{empty} % start this way; change for
! \pagenumbering{roman} % ToC & chapters
% Use this to set the font family for headers and other decor:
--- 117,124 ----
\parindent = 0mm
\parskip = 2mm
! \hbadness = 5000 % don't print trivial gripes
! \pagestyle{empty} % start this way; change for
! \pagenumbering{roman} % ToC & chapters
% Use this to set the font family for headers and other decor:
***************
*** 599,603 ****
\global\def\py@thisclass{#1}
\begin{fulllineitems}
! \item[\code{\bfcode{#1}(\py@varvars{#2})}%
\index{#1@{\py@idxcode{#1}} (class in \py@thismodule)}]
}{\end{fulllineitems}}
--- 599,603 ----
\global\def\py@thisclass{#1}
\begin{fulllineitems}
! \item[\strong{class }\code{\bfcode{#1}(\py@varvars{#2})}%
\index{#1@{\py@idxcode{#1}} (class in \py@thismodule)}]
}{\end{fulllineitems}}
***************
*** 609,613 ****
\global\def\py@thisclass{#1}
\begin{fulllineitems}
! \item[\code{\bfcode{#1}(\py@varvars{#2})}%
\index{#1@{\py@idxcode{#1}} (exception in \py@thismodule)}]
}{\end{fulllineitems}}
--- 609,613 ----
\global\def\py@thisclass{#1}
\begin{fulllineitems}
! \item[\strong{exception }\code{\bfcode{#1}(\py@varvars{#2})}%
\index{#1@{\py@idxcode{#1}} (exception in \py@thismodule)}]
}{\end{fulllineitems}}
***************
*** 679,683 ****
\newenvironment{excdesc}[1]{
\begin{fulllineitems}
! \item[\bfcode{#1}%
\index{#1@{\py@idxcode{#1}} (exception in \py@thismodule)}]
}{\end{fulllineitems}}
--- 679,683 ----
\newenvironment{excdesc}[1]{
\begin{fulllineitems}
! \item[\strong{exception }\bfcode{#1}%
\index{#1@{\py@idxcode{#1}} (exception in \py@thismodule)}]
}{\end{fulllineitems}}
***************
*** 754,762 ****
\newcommand{\py@url}[1]{{%
\pdfannotlink attr{/Border [0 0 0]} user{/S /URI /URI (#1)}%
! \py@LinkColor% color of the link text
\mbox{\small\textsf{#1}}%
! \py@NormalColor% Turn it back off; these are declarative
! \pdfendlink}% and don't appear bound to the current
! }% formatting "box".
}
\let\url=\py@url
--- 754,762 ----
\newcommand{\py@url}[1]{{%
\pdfannotlink attr{/Border [0 0 0]} user{/S /URI /URI (#1)}%
! \py@LinkColor% color of the link text
\mbox{\small\textsf{#1}}%
! \py@NormalColor% Turn it back off; these are declarative
! \pdfendlink}% and don't appear bound to the current
! }% formatting "box".
}
\let\url=\py@url
***************
*** 792,800 ****
\newcommand{\method}[1]{\texttt{#1}}
! \newcommand{\pytype}[1]{#1} % built-in Python type
\newcommand{\cfunction}[1]{\texttt{#1}}
! \newcommand{\ctype}[1]{\texttt{#1}} % C struct or typedef name
! \newcommand{\cdata}[1]{\texttt{#1}} % C variable, typically global
\newcommand{\mimetype}[1]{{\small\textsf{#1}}}
--- 792,800 ----
\newcommand{\method}[1]{\texttt{#1}}
! \newcommand{\pytype}[1]{#1} % built-in Python type
\newcommand{\cfunction}[1]{\texttt{#1}}
! \newcommand{\ctype}[1]{\texttt{#1}} % C struct or typedef name
! \newcommand{\cdata}[1]{\texttt{#1}} % C variable, typically global
\newcommand{\mimetype}[1]{{\small\textsf{#1}}}
***************
*** 810,818 ****
\index{environment variables!{#1}}%
}
! \newcommand{\makevar}[1]{#1} % variable in a Makefile
\newcommand{\character}[1]{\samp{#1}}
% constants defined in Python modules or C headers, not language constants:
! \newcommand{\constant}[1]{\code{#1}} % manifest constant, not syntactic
\newcommand{\manpage}[2]{{\emph{#1}(#2)}}
--- 810,818 ----
\index{environment variables!{#1}}%
}
! \newcommand{\makevar}[1]{#1} % variable in a Makefile
\newcommand{\character}[1]{\samp{#1}}
% constants defined in Python modules or C headers, not language constants:
! \newcommand{\constant}[1]{\code{#1}} % manifest constant, not syntactic
\newcommand{\manpage}[2]{{\emph{#1}(#2)}}