summaryrefslogtreecommitdiff
path: root/sphinx/texinputs
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2009-03-16 00:05:15 +0100
committerGeorg Brandl <georg@python.org>2009-03-16 00:05:15 +0100
commit84c3f48f85256f3d39edb5b7421d0ffb3837b8db (patch)
tree5f347e4d8c4e2052f4bc1de9bee6e5e8fd553bb7 /sphinx/texinputs
parent283b43ee72c4969f3ee5bcf3bf06231c574d2da7 (diff)
parent125f29cfc23baabfe708669d45f50d4d3773edee (diff)
downloadsphinx-84c3f48f85256f3d39edb5b7421d0ffb3837b8db.tar.gz
merge with 0.5
Diffstat (limited to 'sphinx/texinputs')
-rw-r--r--sphinx/texinputs/sphinx.sty18
1 files changed, 18 insertions, 0 deletions
diff --git a/sphinx/texinputs/sphinx.sty b/sphinx/texinputs/sphinx.sty
index c799d688..a2bc3dbf 100644
--- a/sphinx/texinputs/sphinx.sty
+++ b/sphinx/texinputs/sphinx.sty
@@ -17,11 +17,15 @@
\RequirePackage{makeidx}
\RequirePackage{framed}
\RequirePackage{color}
+% For highlighted code.
\RequirePackage{fancyvrb}
+% For table captions.
\RequirePackage{threeparttable}
% Handle footnotes in tables.
\RequirePackage{footnote}
\makesavenoteenv{tabulary}
+% For floating figures in the text.
+\RequirePackage{wrapfig}
% Redefine these colors to your liking in the preamble.
\definecolor{TitleColor}{rgb}{0.126,0.263,0.361}
@@ -454,6 +458,20 @@
\fi
}{\end{fulllineitems}}
+% class method ----------------------------------------------------------
+% \begin{classmethoddesc}[classname]{methodname}{args}
+\newcommand{\classmethodline}[3][\@undefined]{
+ \py@sigline{class \bfcode{#2}}{#3}}
+\newenvironment{classmethoddesc}[3][\@undefined]{
+ \begin{fulllineitems}
+ \ifx\@undefined#1\relax
+ \classmethodline{#2}{#3}
+ \else
+ \def\py@thisclass{#1}
+ \classmethodline{#2}{#3}
+ \fi
+}{\end{fulllineitems}}
+
% object data attribute --------------------------------------------------
% \begin{memberdesc}[classname]{membername}
\newcommand{\memberline}[2][\py@classbadkey]{%