summaryrefslogtreecommitdiff
path: root/tex/generic/context/luatex/luatex-plain.tex
diff options
context:
space:
mode:
authorContext Git Mirror Bot <phg42.2a@gmail.com>2015-06-12 10:15:04 +0200
committerContext Git Mirror Bot <phg42.2a@gmail.com>2015-06-12 10:15:04 +0200
commitc727ed7331960718681fa4222bec81fb577b56fb (patch)
treee90818d7ead83f08561f6c89396e1f5f1074b157 /tex/generic/context/luatex/luatex-plain.tex
parent3e816646efde05d34564646800299790d32a2607 (diff)
downloadcontext-c727ed7331960718681fa4222bec81fb577b56fb.tar.gz
2015-06-12 10:08:00
Diffstat (limited to 'tex/generic/context/luatex/luatex-plain.tex')
-rw-r--r--tex/generic/context/luatex/luatex-plain.tex23
1 files changed, 22 insertions, 1 deletions
diff --git a/tex/generic/context/luatex/luatex-plain.tex b/tex/generic/context/luatex/luatex-plain.tex
index c9a9e36cf..f209f4792 100644
--- a/tex/generic/context/luatex/luatex-plain.tex
+++ b/tex/generic/context/luatex/luatex-plain.tex
@@ -11,7 +11,26 @@
\directlua {tex.enableprimitives('', tex.extraprimitives())}
-\pdfoutput=1
+% We assume that pdf is used.
+
+\pdfoutput 1
+
+% We set the page dimensions because otherwise the backend does weird things
+% when we have for instance this on a line of its own:
+%
+% \hbox to 100cm {\hss wide indeed\hss}
+%
+% The page dimension calculation is a fuzzy one as there are some compensations
+% for the \hoffset and \voffset and such. I remember long discussions and much
+% trial and error in figuring this out during pdftex development times. Where
+% a dvi driver will project on a papersize (and thereby clip) the pdf backend
+% has to deal with the lack of a page concept on tex by some guessing. Normally
+% a macro package will set the dimensions to something reasonable anyway.
+
+\pdfpagewidth 8.5in
+\pdfpageheight 11.0in
+
+% We load some code at runtime:
\everyjob \expandafter {%
\the\everyjob
@@ -23,6 +42,8 @@
% \input {luatex-gadgets}%
}
+% We also patch the version number:
+
\edef\fmtversion{\fmtversion+luatex}
\dump