diff options
Diffstat (limited to 'Master')
-rw-r--r-- | Master/texmf-dist/doc/generic/luatex85/README.md | 10 | ||||
-rw-r--r-- | Master/texmf-dist/doc/generic/luatex85/luatex85.pdf | bin | 0 -> 167915 bytes | |||
-rw-r--r-- | Master/texmf-dist/source/generic/luatex85/luatex85.dtx | 262 | ||||
-rw-r--r-- | Master/texmf-dist/source/generic/luatex85/luatex85.ins | 10 | ||||
-rw-r--r-- | Master/texmf-dist/tex/generic/luatex85/luatex85.sty | 118 | ||||
-rwxr-xr-x | Master/tlpkg/bin/tlpkg-ctan-check | 2 | ||||
-rw-r--r-- | Master/tlpkg/tlpsrc/collection-luatex.tlpsrc | 1 | ||||
-rw-r--r-- | Master/tlpkg/tlpsrc/luatex85.tlpsrc | 0 |
8 files changed, 402 insertions, 1 deletions
diff --git a/Master/texmf-dist/doc/generic/luatex85/README.md b/Master/texmf-dist/doc/generic/luatex85/README.md new file mode 100644 index 00000000000..fd21bd08f7e --- /dev/null +++ b/Master/texmf-dist/doc/generic/luatex85/README.md @@ -0,0 +1,10 @@ +luatex85 - Compatibility package for luatex 0.85+ +================================================== + +This package provides emulation of pdfTeX +primitives for LuaTeX v0.85+. + +Please report any issues via +https://github.com/josephwright/luatex85/issues + +This package is maintained by David Carlisle and Joseph Wright.
\ No newline at end of file diff --git a/Master/texmf-dist/doc/generic/luatex85/luatex85.pdf b/Master/texmf-dist/doc/generic/luatex85/luatex85.pdf Binary files differnew file mode 100644 index 00000000000..f8921aecafd --- /dev/null +++ b/Master/texmf-dist/doc/generic/luatex85/luatex85.pdf diff --git a/Master/texmf-dist/source/generic/luatex85/luatex85.dtx b/Master/texmf-dist/source/generic/luatex85/luatex85.dtx new file mode 100644 index 00000000000..c1356380bcb --- /dev/null +++ b/Master/texmf-dist/source/generic/luatex85/luatex85.dtx @@ -0,0 +1,262 @@ +% \iffalse +%% Source File: luatex85.dtx +%% Copyright 2015-2016 LaTeX3 project +%% +%% This file may be distributed under the terms of the LPPL. +%% See README for details. +% +%<*dtx> + \ProvidesFile{luatex85.dtx} +%</dtx> +%<package>\ifx\ProvidesPackage\undefined +%<package>\def\next#1#2[#3]{\wlog{#2 #3}} +%<package>\expandafter\next\fi +%<package>\ProvidesPackage{luatex85} +%<driver> \ProvidesFile{luatex85.drv} +% \fi +% \ProvidesFile{luatex85.dtx} + [2016/03/01 v1.0 pdftex aliases for luatex] +% +% \iffalse +%<*driver> +\documentclass{ltxdoc} +\begin{document} +\DocInput{luatex85.dtx} +\end{document} +%</driver> +% \fi +% +% \hfuzz0.6pt +% +% \GetFileInfo{luatex85.dtx} +% +% \title{The \textsf{luatex85} Package\thanks{This file +% has version number \fileversion, last +% revised \filedate. +% Please report any issues at https://github.com/josephwright/luatex85/issues}} +% \author{LaTeX3 project} +% \date{\filedate} +% \maketitle +% +% \section{Introduction} +% +% Lua\TeX\ 0.85 and 0.87 contain many changes from Lua\TeX~0.80 as contained in \TeX{}Live 2014. +% Most notably almost all the pdf\TeX\ extended primitves with names +% \verb|\pdf...| have been renamed or removed. Lua\TeX\ is aiming for +% a cleaner separation of the ``back end'' PDF generation (that +% corresponds to the work of a dvi driver with classical \TeX). +% +% There are many other changes and bug fixes in the Lua\TeX\ sources, +% however this package is just concerned with compatibility for +% documents or packages using the pdf\TeX\ primitives. +% +% The changes are of several types: +% +% A few commands have been removed, +% as the facilities are achievable in Lua (mostly these had already +% been removed in earlier release). +% +% Some commands have been ``adopted'' as Lua\TeX\ primitives and so +% lose their \verb|\pdf| prefix (and in some cases are renamed) +% so \verb|\pdfsavepos| becomes \verb|\savepos|, but \verb|\pdfoutput| +% becomes \verb|\outputmode|. +% +% The majority of the ``back end'' commands have been removed and +% replaced by calls to one of three new primitives, +% \verb|\pdffeedback|, \verb|\pdfextension| and \verb|\pdfvariable| +% These take keywords so for example \verb|\pdfliteral| becomes +% \verb|\pdfextension literal|. +% +% The Lua\TeX\ manual lists suitable compatibility definitions +% that may be made so that documents can continue to use the old +% names. Mostly this package just consists of those definitions, with +% minor changes in some cases. (Mostly different choices over the use +% of \verb|\protected| or \verb|\edef|.) +% +% In general it is recommended that packages are updated to use the +% new primitive Lua\TeX\ syntax when used with Lua\TeX, but until +% packages are updated authors may find that adding\\% +% \verb|\RequirePackage{luatex85}|\\ +% as the first line of their +% document helps with the use of older packages with the new Lua\TeX. +% +% As noted above, there are other changes in Lua\TeX, notably the +% removal of the |\verb\write18| syntax for accessing system commands. +% The \LaTeX\ \textsf{tools} bundle includes +% the \textsf{shellesc} package which emulates +% \verb|\write18| as well as providing an alternative +% \verb|\Shellescape| syntax that may be used with all engines. +% +% Note that if packages are found that require \textsf{luatex85} +% you may want to contact the authors asking that the packages +% be updated to current Lua\TeX\ syntax. The \textsf{luatex85} package +% should be seen as a temporary aid to improve compatibility during +% the transition towards Lua\TeX~1.0 it is not intended that future +% documents should always have to load this compatibility emulation. +% +% The package is designed to also be usable with plain Lua\TeX. +% +% +% \section{Implementation} +% +% \begin{macrocode} +%<*package> +% \end{macrocode} +% +% \subsection{Checking the engine} +% \begin{macrocode} +\ifx\pdfvariable\undefined + \expandafter\endinput +\fi +% \end{macrocode} + +% \subsection{Commands promoted to Lua\TeX\ primitives.} +% +% +% \begin{macrocode} +\let\pdfpagewidth \pagewidth +\let\pdfpageheight \pageheight +\let\pdfadjustspacing \adjustspacing +\let\pdfprotrudechars \protrudechars +\let\pdfnoligatures \ignoreligaturesinfont +\let\pdffontexpand \expandglyphsinfont +\let\pdfcopyfont \copyfont +\let\pdfxform \saveboxresource +\let\pdflastxform \lastsavedboxresourceindex +\let\pdfrefxform \useboxresource +\let\pdfximage \saveimageresource +\let\pdflastximage \lastsavedimageresourceindex +\let\pdflastximagepages \lastsavedimageresourcepages +\let\pdfrefximage \useimageresource +\let\pdfsavepos \savepos +\let\pdflastxpos \lastxpos +\let\pdflastypos \lastypos +\let\pdfoutput \outputmode +\let\pdfdraftmode \draftmode +\let\pdfpxdimen \pxdimen +\let\pdfinsertht \insertht +\let\pdfnormaldeviate \normaldeviate +\let\pdfuniformdeviate \uniformdeviate +\let\pdfsetrandomseed \setrandomseed +\let\pdfrandomseed \randomseed +\let\pdfprimitive \primitive +\let\ifpdfprimitive \ifprimitive +\let\ifpdfabsnum \ifabsnum +\let\ifpdfabsdim \ifabsdim +% \end{macrocode} +% +% \subsection{Commands converted to \cs{pdffeedback}} +% Expandable commands use a sipmple |\def| internal registers that +% were accessed via |\the| in PDF\TeX\ use a |\protected| definition +% using |\numexpr| terminated by an explicit |\relax|. +% \begin{macrocode} +\protected\def\pdftexversion {\numexpr\pdffeedback version\relax} + \def\pdftexrevision {\pdffeedback revision} +\protected\def\pdflastlink {\numexpr\pdffeedback lastlink\relax} +\protected\def\pdfretval {\numexpr\pdffeedback retval\relax} +\protected\def\pdflastobj {\numexpr\pdffeedback lastobj\relax} +\protected\def\pdflastannot {\numexpr\pdffeedback lastannot\relax} + \def\pdfxformname {\pdffeedback xformname} + \def\pdfcreationdate {\pdffeedback creationdate} + \def\pdffontname {\pdffeedback fontname} + \def\pdffontobjnum {\pdffeedback fontobjnum} + \def\pdffontsize {\pdffeedback fontsize} + \def\pdfpageref {\pdffeedback pageref} + \def\pdfcolorstackinit {\pdffeedback colorstackinit} +% \end{macrocode} +% +% \subsection{Commands converted to calls to \cs{pdfextension}} +% These use a |\protected| definition. Comands that take no following +% argument are currently terminated by |\releax| as suggested in the +% Lua\TeX\ manual, although it would be appear to be sufficient to +% consistently terminate these commands with a space. +% \begin{macrocode} +\protected\def\pdfliteral {\pdfextension literal} +\protected\def\pdfcolorstack {\pdfextension colorstack} +\protected\def\pdfsetmatrix {\pdfextension setmatrix} +\protected\def\pdfsave {\pdfextension save\relax} +\protected\def\pdfrestore {\pdfextension restore\relax} +\protected\def\pdfobj {\pdfextension obj } +\protected\def\pdfrefobj {\pdfextension refobj } +\protected\def\pdfannot {\pdfextension annot } +\protected\def\pdfstartlink {\pdfextension startlink } +\protected\def\pdfendlink {\pdfextension endlink\relax} +\protected\def\pdfoutline {\pdfextension outline } +\protected\def\pdfdest {\pdfextension dest } +\protected\def\pdfthread {\pdfextension thread } +\protected\def\pdfstartthread {\pdfextension startthread } +\protected\def\pdfendthread {\pdfextension endthread\relax} +\protected\def\pdfinfo {\pdfextension info } +\protected\def\pdfcatalog {\pdfextension catalog } +\protected\def\pdfnames {\pdfextension names } +\protected\def\pdfincludechars {\pdfextension includechars } +\protected\def\pdffontattr {\pdfextension fontattr } +\protected\def\pdfmapfile {\pdfextension mapfile } +\protected\def\pdfmapline {\pdfextension mapline } +\protected\def\pdftrailer {\pdfextension trailer } +\protected\def\pdfglyphtounicode {\pdfextension glyphtounicode } +% \end{macrocode} +% +% \subsection{Commands converted to calls to \cs{pdfvariable}} +% Currently as suggested in the manual the call to |\pdfvariable| has +% no explict termination, and relies on the fact that no variable name +% is a prefix of another. |\edef| is used to save one expansion step +% when these comands are used the definition directly access the +% internal command token. +% \begin{macrocode} +\protected\edef\pdfcompresslevel {\pdfvariable compresslevel} +\protected\edef\pdfobjcompresslevel {\pdfvariable objcompresslevel} +\protected\edef\pdfdecimaldigits {\pdfvariable decimaldigits} +\protected\edef\pdfgamma {\pdfvariable gamma} +\protected\edef\pdfimageresolution {\pdfvariable imageresolution} +\protected\edef\pdfimageapplygamma {\pdfvariable imageapplygamma} +\protected\edef\pdfimagegamma {\pdfvariable imagegamma} +\protected\edef\pdfimagehicolor {\pdfvariable imagehicolor} +% \end{macrocode} +% Note that |\pdfimageaddfilename| was never actually in PDF\TeX, +% But is included here so that all the |\pdfvariable| cases are covered. +% \begin{macrocode} +\protected\edef\pdfimageaddfilename {\pdfvariable imageaddfilename} +% \end{macrocode} +% \begin{macrocode} +\protected\edef\pdfpkresolution {\pdfvariable pkresolution} +\protected\edef\pdfinclusioncopyfonts {\pdfvariable inclusioncopyfonts} +\protected\edef\pdfinclusionerrorlevel {\pdfvariable inclusionerrorlevel} +% \end{macrocode} +% Note that |\pdfreplacefont| was never actually in public releases of +% PDF\TeX, It was in Lua\TeX0.85, but discussion on luatex list +% lead to it being removed in 0.87 +% \begin{macrocode} +%\protected\edef\pdfreplacefont {\pdfvariable replacefont} +% \end{macrocode} +% \begin{macrocode} +\protected\edef\pdfgentounicode {\pdfvariable gentounicode} +\protected\edef\pdfpagebox {\pdfvariable pagebox} +\protected\edef\pdfminorversion {\pdfvariable minorversion} +\protected\edef\pdfuniqueresname {\pdfvariable uniqueresname} +\protected\edef\pdfhorigin {\pdfvariable horigin} +\protected\edef\pdfvorigin {\pdfvariable vorigin} +\protected\edef\pdflinkmargin {\pdfvariable linkmargin} +\protected\edef\pdfdestmargin {\pdfvariable destmargin} +\protected\edef\pdfthreadmargin {\pdfvariable threadmargin} +\protected\edef\pdfpagesattr {\pdfvariable pagesattr} +\protected\edef\pdfpageattr {\pdfvariable pageattr} +\protected\edef\pdfpageresources {\pdfvariable pageresources} +% \end{macrocode} +% Note that |\pdfxformattr| and |\pdfxformresources| were never +% actually in PDF\TeX, But are included here so that all the +% |\pdfvariable| cases are covered. +% \begin{macrocode} +\protected\edef\pdfxformattr {\pdfvariable xformattr} +\protected\edef\pdfxformresources {\pdfvariable xformresources} +% \end{macrocode} +% \begin{macrocode} +\protected\edef\pdfpkmode {\pdfvariable pkmode} +% \end{macrocode} +% +% \begin{macrocode} +%</package> +% \end{macrocode} +% +% \Finale +% diff --git a/Master/texmf-dist/source/generic/luatex85/luatex85.ins b/Master/texmf-dist/source/generic/luatex85/luatex85.ins new file mode 100644 index 00000000000..8a9b7e93442 --- /dev/null +++ b/Master/texmf-dist/source/generic/luatex85/luatex85.ins @@ -0,0 +1,10 @@ +\input docstrip +\keepsilent +\preamble +\endpreamble + +\askforoverwritefalse + +\generate{\file{luatex85.sty}{\from{luatex85.dtx}{package}}} + +\endbatchfile diff --git a/Master/texmf-dist/tex/generic/luatex85/luatex85.sty b/Master/texmf-dist/tex/generic/luatex85/luatex85.sty new file mode 100644 index 00000000000..ef02b7e33b5 --- /dev/null +++ b/Master/texmf-dist/tex/generic/luatex85/luatex85.sty @@ -0,0 +1,118 @@ +%% +%% This is file `luatex85.sty', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% luatex85.dtx (with options: `package') +%% +%% Source File: luatex85.dtx +%% Copyright 2015-2016 LaTeX3 project +%% +%% This file may be distributed under the terms of the LPPL. +%% See README for details. +\ifx\ProvidesPackage\undefined +\def\next#1#2[#3]{\wlog{#2 #3}} +\expandafter\next\fi +\ProvidesPackage{luatex85} + [2016/03/01 v1.0 pdftex aliases for luatex] +\ifx\pdfvariable\undefined + \expandafter\endinput +\fi + +\let\pdfpagewidth \pagewidth +\let\pdfpageheight \pageheight +\let\pdfadjustspacing \adjustspacing +\let\pdfprotrudechars \protrudechars +\let\pdfnoligatures \ignoreligaturesinfont +\let\pdffontexpand \expandglyphsinfont +\let\pdfcopyfont \copyfont +\let\pdfxform \saveboxresource +\let\pdflastxform \lastsavedboxresourceindex +\let\pdfrefxform \useboxresource +\let\pdfximage \saveimageresource +\let\pdflastximage \lastsavedimageresourceindex +\let\pdflastximagepages \lastsavedimageresourcepages +\let\pdfrefximage \useimageresource +\let\pdfsavepos \savepos +\let\pdflastxpos \lastxpos +\let\pdflastypos \lastypos +\let\pdfoutput \outputmode +\let\pdfdraftmode \draftmode +\let\pdfpxdimen \pxdimen +\let\pdfinsertht \insertht +\let\pdfnormaldeviate \normaldeviate +\let\pdfuniformdeviate \uniformdeviate +\let\pdfsetrandomseed \setrandomseed +\let\pdfrandomseed \randomseed +\let\pdfprimitive \primitive +\let\ifpdfprimitive \ifprimitive +\let\ifpdfabsnum \ifabsnum +\let\ifpdfabsdim \ifabsdim +\protected\def\pdftexversion {\numexpr\pdffeedback version\relax} + \def\pdftexrevision {\pdffeedback revision} +\protected\def\pdflastlink {\numexpr\pdffeedback lastlink\relax} +\protected\def\pdfretval {\numexpr\pdffeedback retval\relax} +\protected\def\pdflastobj {\numexpr\pdffeedback lastobj\relax} +\protected\def\pdflastannot {\numexpr\pdffeedback lastannot\relax} + \def\pdfxformname {\pdffeedback xformname} + \def\pdfcreationdate {\pdffeedback creationdate} + \def\pdffontname {\pdffeedback fontname} + \def\pdffontobjnum {\pdffeedback fontobjnum} + \def\pdffontsize {\pdffeedback fontsize} + \def\pdfpageref {\pdffeedback pageref} + \def\pdfcolorstackinit {\pdffeedback colorstackinit} +\protected\def\pdfliteral {\pdfextension literal} +\protected\def\pdfcolorstack {\pdfextension colorstack} +\protected\def\pdfsetmatrix {\pdfextension setmatrix} +\protected\def\pdfsave {\pdfextension save\relax} +\protected\def\pdfrestore {\pdfextension restore\relax} +\protected\def\pdfobj {\pdfextension obj } +\protected\def\pdfrefobj {\pdfextension refobj } +\protected\def\pdfannot {\pdfextension annot } +\protected\def\pdfstartlink {\pdfextension startlink } +\protected\def\pdfendlink {\pdfextension endlink\relax} +\protected\def\pdfoutline {\pdfextension outline } +\protected\def\pdfdest {\pdfextension dest } +\protected\def\pdfthread {\pdfextension thread } +\protected\def\pdfstartthread {\pdfextension startthread } +\protected\def\pdfendthread {\pdfextension endthread\relax} +\protected\def\pdfinfo {\pdfextension info } +\protected\def\pdfcatalog {\pdfextension catalog } +\protected\def\pdfnames {\pdfextension names } +\protected\def\pdfincludechars {\pdfextension includechars } +\protected\def\pdffontattr {\pdfextension fontattr } +\protected\def\pdfmapfile {\pdfextension mapfile } +\protected\def\pdfmapline {\pdfextension mapline } +\protected\def\pdftrailer {\pdfextension trailer } +\protected\def\pdfglyphtounicode {\pdfextension glyphtounicode } +\protected\edef\pdfcompresslevel {\pdfvariable compresslevel} +\protected\edef\pdfobjcompresslevel {\pdfvariable objcompresslevel} +\protected\edef\pdfdecimaldigits {\pdfvariable decimaldigits} +\protected\edef\pdfgamma {\pdfvariable gamma} +\protected\edef\pdfimageresolution {\pdfvariable imageresolution} +\protected\edef\pdfimageapplygamma {\pdfvariable imageapplygamma} +\protected\edef\pdfimagegamma {\pdfvariable imagegamma} +\protected\edef\pdfimagehicolor {\pdfvariable imagehicolor} +\protected\edef\pdfimageaddfilename {\pdfvariable imageaddfilename} +\protected\edef\pdfpkresolution {\pdfvariable pkresolution} +\protected\edef\pdfinclusioncopyfonts {\pdfvariable inclusioncopyfonts} +\protected\edef\pdfinclusionerrorlevel {\pdfvariable inclusionerrorlevel} +\protected\edef\pdfgentounicode {\pdfvariable gentounicode} +\protected\edef\pdfpagebox {\pdfvariable pagebox} +\protected\edef\pdfminorversion {\pdfvariable minorversion} +\protected\edef\pdfuniqueresname {\pdfvariable uniqueresname} +\protected\edef\pdfhorigin {\pdfvariable horigin} +\protected\edef\pdfvorigin {\pdfvariable vorigin} +\protected\edef\pdflinkmargin {\pdfvariable linkmargin} +\protected\edef\pdfdestmargin {\pdfvariable destmargin} +\protected\edef\pdfthreadmargin {\pdfvariable threadmargin} +\protected\edef\pdfpagesattr {\pdfvariable pagesattr} +\protected\edef\pdfpageattr {\pdfvariable pageattr} +\protected\edef\pdfpageresources {\pdfvariable pageresources} +\protected\edef\pdfxformattr {\pdfvariable xformattr} +\protected\edef\pdfxformresources {\pdfvariable xformresources} +\protected\edef\pdfpkmode {\pdfvariable pkmode} +\endinput +%% +%% End of file `luatex85.sty'. diff --git a/Master/tlpkg/bin/tlpkg-ctan-check b/Master/tlpkg/bin/tlpkg-ctan-check index a9c55e8337b..5c31d8a9c5d 100755 --- a/Master/tlpkg/bin/tlpkg-ctan-check +++ b/Master/tlpkg/bin/tlpkg-ctan-check @@ -358,7 +358,7 @@ my @TLP_working = qw( luaindex luainputenc luaintro lualatex-doc lualatex-doc-de lualatex-math lualibs luamplib luaotfload - luasseq luatex-def luatexbase luatexja luatexko luatextra + luasseq luatex-def luatex85 luatexbase luatexja luatexko luatextra luatodonotes luaxml lxfonts ly1 m-tx macros2e macroswap mafr magaz mailing mailmerge diff --git a/Master/tlpkg/tlpsrc/collection-luatex.tlpsrc b/Master/tlpkg/tlpsrc/collection-luatex.tlpsrc index 4cba22fe621..fe6a09d39d9 100644 --- a/Master/tlpkg/tlpsrc/collection-luatex.tlpsrc +++ b/Master/tlpkg/tlpsrc/collection-luatex.tlpsrc @@ -27,6 +27,7 @@ depend luamplib depend luaotfload depend luasseq depend luatex-def +depend luatex85 depend luatexbase depend luatexko depend luatextra diff --git a/Master/tlpkg/tlpsrc/luatex85.tlpsrc b/Master/tlpkg/tlpsrc/luatex85.tlpsrc new file mode 100644 index 00000000000..e69de29bb2d --- /dev/null +++ b/Master/tlpkg/tlpsrc/luatex85.tlpsrc |