[Python-checkins] r66069 - in doctools/branches/0.4.x: CHANGES sphinx/texinputs/sphinx.sty

georg.brandl python-checkins at python.org
Sat Aug 30 15:21:40 CEST 2008


Author: georg.brandl
Date: Sat Aug 30 15:21:40 2008
New Revision: 66069

Log:
XeTeX fix by Markus Gritsch.


Modified:
   doctools/branches/0.4.x/CHANGES
   doctools/branches/0.4.x/sphinx/texinputs/sphinx.sty

Modified: doctools/branches/0.4.x/CHANGES
==============================================================================
--- doctools/branches/0.4.x/CHANGES	(original)
+++ doctools/branches/0.4.x/CHANGES	Sat Aug 30 15:21:40 2008
@@ -1,6 +1,8 @@
 Release 0.4.3 (in development)
 ==============================
 
+* Add a fix when using XeTeX.
+
 * Unify handling of LaTeX escaping.
 
 * Rebuild everything when the ``extensions`` config value changes.

Modified: doctools/branches/0.4.x/sphinx/texinputs/sphinx.sty
==============================================================================
--- doctools/branches/0.4.x/sphinx/texinputs/sphinx.sty	(original)
+++ doctools/branches/0.4.x/sphinx/texinputs/sphinx.sty	Sat Aug 30 15:21:40 2008
@@ -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 at NormalColor{\color[rgb]{0.0,0.0,0.0}}
+  \def\py at TitleColor{\color{TitleColor}}
+\fi
+
 % Increase printable page size (copied from fullpage.sty)
 \topmargin 0pt
 \advance \topmargin by -\headheight


More information about the Python-checkins mailing list