mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
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:
parent
32edf2ce94
commit
87a05a41cb
@ -41,7 +41,7 @@ copyright = '2008, Georg Brandl'
|
|||||||
#
|
#
|
||||||
# The short X.Y version.
|
# The short X.Y version.
|
||||||
import sphinx
|
import sphinx
|
||||||
version = sphinx.__version__
|
version = sphinx.__released__
|
||||||
# The full version, including alpha/beta/rc tags.
|
# The full version, including alpha/beta/rc tags.
|
||||||
release = version
|
release = version
|
||||||
|
|
||||||
|
@ -21,6 +21,7 @@ from sphinx.util.console import darkred, nocolor
|
|||||||
|
|
||||||
__revision__ = '$Revision$'
|
__revision__ = '$Revision$'
|
||||||
__version__ = '0.5'
|
__version__ = '0.5'
|
||||||
|
__released__ = '0.5'
|
||||||
|
|
||||||
|
|
||||||
def usage(argv, msg=None):
|
def usage(argv, msg=None):
|
||||||
|
@ -61,6 +61,17 @@
|
|||||||
\pdfcompresslevel=9
|
\pdfcompresslevel=9
|
||||||
\fi\fi
|
\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)
|
% Increase printable page size (copied from fullpage.sty)
|
||||||
\topmargin 0pt
|
\topmargin 0pt
|
||||||
\advance \topmargin by -\headheight
|
\advance \topmargin by -\headheight
|
||||||
|
Loading…
Reference in New Issue
Block a user