summaryrefslogtreecommitdiff
path: root/tex/context/base/mkiv/syst-ini.mkiv
diff options
context:
space:
mode:
authorHans Hagen <pragma@wxs.nl>2018-11-29 20:53:37 +0100
committerContext Git Mirror Bot <phg@phi-gamma.net>2018-11-29 20:53:37 +0100
commit9bd28a3039a458b054459fe1ef80161b107b798f (patch)
treec15bf6aedc4313de999a97bf92dc63b16ca60794 /tex/context/base/mkiv/syst-ini.mkiv
parent744095aa4676553437db0d71c281a74557a3222f (diff)
downloadcontext-9bd28a3039a458b054459fe1ef80161b107b798f.tar.gz
2018-11-29 19:54:00
Diffstat (limited to 'tex/context/base/mkiv/syst-ini.mkiv')
-rw-r--r--tex/context/base/mkiv/syst-ini.mkiv21
1 files changed, 19 insertions, 2 deletions
diff --git a/tex/context/base/mkiv/syst-ini.mkiv b/tex/context/base/mkiv/syst-ini.mkiv
index f7b73a30e..f9f685f76 100644
--- a/tex/context/base/mkiv/syst-ini.mkiv
+++ b/tex/context/base/mkiv/syst-ini.mkiv
@@ -1042,6 +1042,8 @@
% module after which the official interfaces have to be used. This is needed for
% modules not made by ctx developers.
+\ifdefined\pdfextension
+
\normalprotected\def\pdfliteral {\pdfextension literal }
\normalprotected\def\pdfcolorstack {\pdfextension colorstack }
\normalprotected\def\pdfsetmatrix {\pdfextension setmatrix }
@@ -1148,8 +1150,18 @@
\normalprotected\def\maximumpdfcompression{\pdfobjcompresslevel\plusnine \pdfcompresslevel\plusnine }
\normalprotected\def\normalpdfcompression {\pdfobjcompresslevel\plusthree \pdfcompresslevel\plusthree}
+\else
+ \let\nopdfcompression \relax
+ \let\maximumpdfcompression\relax
+ \let\normalpdfcompression \relax
+\fi
+
\normalpdfcompression
+\ifdefined\outputmode \else
+ \newcount\outputmode
+\fi
+
\outputmode \zerocount % we generate the format in this mode
%D Basic status stuff.
@@ -1191,8 +1203,13 @@
%D We get rid of the funny \TEX\ offset defaults of one inch by setting them to zero.
-\voffset\zeropoint \let\voffset\relax \newdimen\voffset % prevent messing up
-\hoffset\zeropoint \let\hoffset\relax \newdimen\hoffset % prevent messing up
+\voffset\zeropoint \let\voffset\relax \newdimen\voffset
+\hoffset\zeropoint \let\hoffset\relax \newdimen\hoffset
+
+\let\pageleftoffset \hoffset
+\let\pagerightoffset \hoffset
+\let\pagetopoffset \voffset
+\let\pagebottomoffset\voffset
%D Handy.