[Python-modules-commits] [sphinx] 01/04: Load compatibility patch for LuaTeX 0.85+
Dmitry Shachnev
mitya57 at moszumanska.debian.org
Tue May 17 14:30:10 UTC 2016
This is an automated email from the git hooks/post-receive script.
mitya57 pushed a commit to branch master
in repository sphinx.
commit 1618a3aaf8d06716c0ab4c1177f2517e08f1340f
Author: jfbu <jfbu at free.fr>
Date: Tue May 17 17:15:59 2016 +0300
Load compatibility patch for LuaTeX 0.85+
Taken from: https://github.com/sphinx-doc/sphinx/pull/2462
Updated from: https://github.com/sphinx-doc/sphinx/pull/2493
---
sphinx/texinputs/sphinxhowto.cls | 6 ++++++
sphinx/texinputs/sphinxmanual.cls | 6 ++++++
2 files changed, 12 insertions(+)
diff --git a/sphinx/texinputs/sphinxhowto.cls b/sphinx/texinputs/sphinxhowto.cls
index 26e63a7..8607ef8 100644
--- a/sphinx/texinputs/sphinxhowto.cls
+++ b/sphinx/texinputs/sphinxhowto.cls
@@ -5,6 +5,12 @@
\NeedsTeXFormat{LaTeX2e}[1995/12/01]
\ProvidesClass{sphinxhowto}[2009/06/02 Document class (Sphinx HOWTO)]
+\ifx\directlua\undefined\else
+% if compiling with lualatex 0.85 or later load compatibility patch issued by
+% the LaTeX team for older packages relying on \pdf<name> named primitives.
+ \IfFileExists{luatex85.sty}{\RequirePackage{luatex85}}{}
+\fi
+
% 'oneside' option overriding the 'twoside' default
\newif\if at oneside
\DeclareOption{oneside}{\@onesidetrue}
diff --git a/sphinx/texinputs/sphinxmanual.cls b/sphinx/texinputs/sphinxmanual.cls
index a6b9b39..b576b67 100644
--- a/sphinx/texinputs/sphinxmanual.cls
+++ b/sphinx/texinputs/sphinxmanual.cls
@@ -5,6 +5,12 @@
\NeedsTeXFormat{LaTeX2e}[1995/12/01]
\ProvidesClass{sphinxmanual}[2009/06/02 Document class (Sphinx manual)]
+\ifx\directlua\undefined\else
+% if compiling with lualatex 0.85 or later load compatibility patch issued by
+% the LaTeX team for older packages relying on \pdf<name> named primitives.
+ \IfFileExists{luatex85.sty}{\RequirePackage{luatex85}}{}
+\fi
+
% chapters starting at odd pages (overridden by 'openany' document option)
\PassOptionsToClass{openright}{\sphinxdocclass}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/sphinx.git
More information about the Python-modules-commits
mailing list