diff options
author | Siep Kroonenberg <siepo@cybercomm.nl> | 2015-11-01 17:13:24 +0000 |
---|---|---|
committer | Siep Kroonenberg <siepo@cybercomm.nl> | 2015-11-01 17:13:24 +0000 |
commit | e4b9644250f9ef381cc7177db8b7f9652542b36d (patch) | |
tree | 5e4e18c94aa0887ccd6974abbdaaa5f35ee41a50 /Master/texmf-dist/scripts/epspdf/epspdf.tlu | |
parent | cffeef88bc1e8c8dedf9fe2237d72bb3f584c774 (diff) |
Small compatibility fix for luatex >=0.81
git-svn-id: svn://tug.org/texlive/trunk@38755 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/scripts/epspdf/epspdf.tlu')
-rwxr-xr-x | Master/texmf-dist/scripts/epspdf/epspdf.tlu | 30 |
1 files changed, 19 insertions, 11 deletions
diff --git a/Master/texmf-dist/scripts/epspdf/epspdf.tlu b/Master/texmf-dist/scripts/epspdf/epspdf.tlu index 463fb22f35a..7a7c2d78a97 100755 --- a/Master/texmf-dist/scripts/epspdf/epspdf.tlu +++ b/Master/texmf-dist/scripts/epspdf/epspdf.tlu @@ -6,9 +6,10 @@ kpse.set_program_name('texlua') -- 0.6.0: first texlua version -- 0.6.1: allow TeX installation on path with spaces +-- 0.6.2: compatibility fix for luatex 0.81 -ep_version = '0.6.1' -ep_copyright = '2006, 2008, 2009, 2010, 2011, 2013, 2014' +ep_version = '0.6.2' +ep_copyright = '2006, 2008, 2009, 2010, 2011, 2013, 2014, 2015' --[[ @@ -1528,6 +1529,13 @@ function PsPdf:pdf_crop() #3% \fi } + +% future modification: \pdfoutput => \outputmode +\begingroup\expandafter\expandafter\expandafter\endgroup + \expandafter\ifx\csname pdfoutput\endcsname\relax + \let\pdfoutput \outputmode +\fi + \begingroup \newlinechar=10 % \endlinechar=\newlinechar % @@ -1540,8 +1548,8 @@ function PsPdf:pdf_crop() 'pdfcompresslevel', 'pdfhorigin', 'pdfvorigin', - 'pdfpagewidth', - 'pdfpageheight', + 'pagewidth', + 'pageheight', 'pdfmapfile', 'pdfximage', 'pdflastximage', @@ -1559,8 +1567,8 @@ function PsPdf:pdf_crop() \global\let\pdfcompresslevel\TESTpdfcompresslevel % \global\let\pdfhorigin\TESTpdfhorigin % \global\let\pdfvorigin\TESTpdfvorigin % - \global\let\pdfpagewidth\TESTpdfpagewidth % - \global\let\pdfpageheight\TESTpdfpageheight % + \global\let\pagewidth\TESTpagewidth % + \global\let\pageheight\TESTpageheight % \global\let\pdfmapfile\TESTpdfmapfile % \global\let\pdfximage\TESTpdfximage % \global\let\pdflastximage\TESTpdflastximage % @@ -1602,11 +1610,11 @@ function PsPdf:pdf_crop() }% \pdfhorigin=-#2bp\relax \pdfvorigin=#3bp\relax - \pdfpagewidth=#4bp\relax - \advance\pdfpagewidth by -#2bp\relax - \pdfpageheight=#5bp\relax - \advance\pdfpageheight by -#3bp\relax - \ht0=\pdfpageheight + \pagewidth=#4bp\relax + \advance\pagewidth by -#2bp\relax + \pageheight=#5bp\relax + \advance\pageheight by -#3bp\relax + \ht0=\pageheight \shipout\box0\relax } ]] |