Merged revisions 66061,66069 via svnmerge from

svn+ssh://pythondev@svn.python.org/doctools/branches/0.4.x

........
  r66061 | georg.brandl | 2008-08-30 11:43:20 +0200 (Sat, 30 Aug 2008) | 2 lines

  Show last released version in built docs.
........
  r66069 | georg.brandl | 2008-08-30 15:21:40 +0200 (Sat, 30 Aug 2008) | 2 lines

  XeTeX fix by Markus Gritsch.
........
This commit is contained in:
Georg Brandl 2008-08-30 21:56:43 +00:00
parent 32edf2ce94
commit 87a05a41cb
3 changed files with 13 additions and 1 deletions

View File

@ -41,7 +41,7 @@ copyright = '2008, Georg Brandl'
#
# The short X.Y version.
import sphinx
version = sphinx.__version__
version = sphinx.__released__
# The full version, including alpha/beta/rc tags.
release = version

View File

@ -21,6 +21,7 @@ from sphinx.util.console import darkred, nocolor
__revision__ = '$Revision$'
__version__ = '0.5'
__released__ = '0.5'
def usage(argv, msg=None):

View File

@ -61,6 +61,17 @@
\pdfcompresslevel=9
\fi\fi
% Detect if we're using XeLaTeX
\IfFileExists{ifxetex.sty}{%
\RequirePackage{ifxetex}
}{% not using xelatex
\newif\ifxetex\xetexfalse
}
\ifxetex
\def\py@NormalColor{\color[rgb]{0.0,0.0,0.0}}
\def\py@TitleColor{\color{TitleColor}}
\fi
% Increase printable page size (copied from fullpage.sty)
\topmargin 0pt
\advance \topmargin by -\headheight