summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/csplain/opmac/opmac-luatex.tex
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/csplain/opmac/opmac-luatex.tex')
-rw-r--r--Master/texmf-dist/tex/csplain/opmac/opmac-luatex.tex31
1 files changed, 31 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/csplain/opmac/opmac-luatex.tex b/Master/texmf-dist/tex/csplain/opmac/opmac-luatex.tex
new file mode 100644
index 00000000000..4c2f8274c09
--- /dev/null
+++ b/Master/texmf-dist/tex/csplain/opmac/opmac-luatex.tex
@@ -0,0 +1,31 @@
+% opmac-xetex.tex
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%% Petr Olsak, 2016
+
+% LuaTeX renames pdfTeX primitives in 2016.
+% We need only few such primitives in OPmac.
+
+% If you are using another remanemd primitives, you can modify your macros
+% or use \input luatex85.sty
+
+\ifx\protected\undefined \let \protected=\relax \fi
+
+\let\pdfximage \saveimageresource
+\let\pdfrefximage \useimageresource
+\let\pdfpagewidth \pagewidth
+\let\pdfpageheight \pageheight
+\protected\def\pdfliteral {\pdfextension literal}
+\protected\def\pdfcolorstack {\pdfextension colorstack}
+\def\pdfcolorstackinit {\pdffeedback colorstackinit}
+\protected\def\pdfsave {\pdfextension save\relax}
+\protected\def\pdfrestore {\pdfextension restore\relax}
+\protected\def\pdfdest {\pdfextension dest }
+\protected\def\pdfstartlink {\pdfextension startlink }
+\protected\def\pdfendlink {\pdfextension endlink\relax}
+\protected\def\pdfcatalog {\pdfextension catalog }
+\protected\def\pdfoutline {\pdfextension outline }
+\protected\def\pdfsetmatrix {\pdfextension setmatrix}
+\def\pdfhorigin {\pdfvariable horigin}
+\def\pdfvorigin {\pdfvariable vorigin}
+
+\endinput