summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2015-10-07 22:09:58 +0000
committerKarl Berry <karl@freefriends.org>2015-10-07 22:09:58 +0000
commit76d512571a67e5fbb1a910796c5d0a10102b066f (patch)
tree68c825afb1f42346736a309cba371a207228c975 /Master/texmf-dist/tex
parentaecc22852dba44c69d40ead0558215bf4bc17a6a (diff)
For upcoming luatex:
(\pagewidth, \pageheight): set these if they are defined. (\pdfpagewidth, \pdfpageheight): do not set these if they are not defined. From Akira and Hans. git-svn-id: svn://tug.org/texlive/trunk@38581 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex')
-rw-r--r--Master/texmf-dist/tex/generic/config/pdftexconfig.tex13
1 files changed, 11 insertions, 2 deletions
diff --git a/Master/texmf-dist/tex/generic/config/pdftexconfig.tex b/Master/texmf-dist/tex/generic/config/pdftexconfig.tex
index 52327d9c8c0..cca13327ab0 100644
--- a/Master/texmf-dist/tex/generic/config/pdftexconfig.tex
+++ b/Master/texmf-dist/tex/generic/config/pdftexconfig.tex
@@ -1,10 +1,19 @@
+% $Id$
% Set pdfTeX parameters for pdf mode (replacing pdftex.cfg file).
% Thomas Esser, 2004. public domain.
\pdfoutput=1
+%
+% In 2015, a new luatex replaced \pdfpage{width,height} with just
+% \page{width,height}. So set any that's defined.
+\ifx\pdfpagewidth\undefined\else \pdfpagewidth=210 true mm \fi
+\ifx\pagewidth\undefined\else \pagewidth=210 true mm \fi
+%
+\ifx\pdfpageheight\undefined\else \pdfpageheight=297 true mm \fi
+\ifx\pageheight\undefined\else \pageheight=297 true mm \fi
+%
+% Other settings.
\pdfcompresslevel=9
\pdfdecimaldigits=3
-\pdfpagewidth=210 true mm
-\pdfpageheight=297 true mm
\pdfhorigin=1 true in
\pdfvorigin=1 true in
\pdfpkresolution=600