From 5c823a770ce9807abc769b074ed09329099f5277 Mon Sep 17 00:00:00 2001 From: jfbu Date: Mon, 18 Apr 2016 12:35:24 +0200 Subject: [PATCH] Load compatibility patch for LuaTeX 0.85+ See http://ctan.org/pkg/luatex85 for more info. Old packages relying on pdf naming of primitives will break under LuaTeX 0.85+, which will be generally available starting with TeXLive 2016 release. modified: sphinx/texinputs/sphinx.sty --- sphinx/texinputs/sphinx.sty | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/sphinx/texinputs/sphinx.sty b/sphinx/texinputs/sphinx.sty index 86f470a64..681e47e36 100644 --- a/sphinx/texinputs/sphinx.sty +++ b/sphinx/texinputs/sphinx.sty @@ -8,6 +8,12 @@ \NeedsTeXFormat{LaTeX2e}[1995/12/01] \ProvidesPackage{sphinx}[2010/01/15 LaTeX package (Sphinx markup)] +\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 named primitives. + \IfFileExists{luatex85.sty}{\RequirePackage{luatex85}}{} +\fi + \@ifclassloaded{memoir}{}{\RequirePackage{fancyhdr}} \RequirePackage{textcomp}