diff options
author | Karl Berry <karl@freefriends.org> | 2016-04-22 21:19:09 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2016-04-22 21:19:09 +0000 |
commit | e139215c9b77f799e573649198fb2558c4e3bb25 (patch) | |
tree | ed0e2f37586bbb351d8dafd61f908e57f6f4e484 /Master/texmf-dist/tex/csplain/opmac | |
parent | 740159ec8f1abc4f8a55a8615d083e65f80743be (diff) |
csplain
git-svn-id: svn://tug.org/texlive/trunk@40683 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/csplain/opmac')
-rw-r--r-- | Master/texmf-dist/tex/csplain/opmac/opmac-luatex.tex | 31 | ||||
-rw-r--r-- | Master/texmf-dist/tex/csplain/opmac/opmac.tex | 13 |
2 files changed, 41 insertions, 3 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 diff --git a/Master/texmf-dist/tex/csplain/opmac/opmac.tex b/Master/texmf-dist/tex/csplain/opmac/opmac.tex index 6f7e5da9002..28940e0864e 100644 --- a/Master/texmf-dist/tex/csplain/opmac/opmac.tex +++ b/Master/texmf-dist/tex/csplain/opmac/opmac.tex @@ -5,7 +5,7 @@ %% The history of versions is at the end of this file, after \endpinput \ifx\OPmacversion\undefined \else \endinput \fi -\def\OPmacversion{Apr. 2016a} +\def\OPmacversion{Apr. 2016b} \immediate\write16{This is OPmac (Olsak's Plain macros), version <\OPmacversion>} %%%%%%%%%%%%%% Basic macros, sec. 3.1 in opmac-d.pdf @@ -21,12 +21,16 @@ \def\addprotect#1{\addto\protectlist{\doprotect#1}} \addprotect~ +\ifx\pdfextension\undefined \else + \let\pdfoutput=\outputmode \def\pdfcolorstackinit{\pdffeedback colorstackinit}\fi + \newif\ifpdftex \pdftextrue \ifx\pdfoutput\undefined \pdftexfalse \else \ifnum\pdfoutput=0 \pdftexfalse \fi \fi \ifx\XeTeXversion\undefined \else \pdftextrue \fi \def\sdef#1{\expandafter\def\csname#1\endcsname} \def\sxdef#1{\expandafter\xdef\csname#1\endcsname} +\def\slet#1#2{\expandafter\let\csname#1\expandafter\endcsname\csname#2\endcsname} \def\adef#1{\catcode`#1=13 \begingroup \lccode`\~=`#1\lowercase{\endgroup\def~}} @@ -868,7 +872,7 @@ \def\ensureblacko#1{#1} \def\ensureblackoA#1{\colorstackpush\pdfblackcolor #1\colorstackpop} -\ifx\pdfcolorstack\undefined +\ifx\pdfcolorstackinit\undefined \def\colorstackpush#1{\pdfliteral{#1 k #1 K}} \def\colorstackpop{\colorstackpush\currentcolor} \let\colorstackset=\colorstackpush @@ -1628,6 +1632,7 @@ %%%%%%%%%%%%%% XeTeX specific + REF file is read now -- sec 3.26 in opmac-d.pdf \ifx\XeTeXversion\undefined \else \pdftexfalse \input opmac-xetex \fi +\ifx\pdfextension\undefined \else \input opmac-luatex \fi \inputref \endinput @@ -1764,6 +1769,8 @@ Jan. 2016 \inspicpage introduced Mar. 2016 \thefnote default changed: ^{num}) -> ^{num} Apr. 2016 \frame: redundant group removed \isnextchar improved (using \toks) - \eoldef introduced to \tit, \chap, \sec, \secc, see OPmac trick 0121 +Apr. 2016a \eoldef introduced to \tit, \chap, \sec, \secc, see OPmac trick 0121 +Apr. 2016b \input opmac-luatex.tex introduced + \slet introduced %%%%%%%%%%%%%% End of opmac.tex |