From 974640d66e61e81cb197ad96fdff7b08343e4c5a Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Sat, 6 Mar 2021 21:58:15 +0000 Subject: context git-svn-id: svn://tug.org/texlive/trunk@58167 c570f23f-e606-0410-a88d-b1316a301751 --- .../texmf-dist/tex/context/base/mkxl/back-res.mkxl | 34 ++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 Master/texmf-dist/tex/context/base/mkxl/back-res.mkxl (limited to 'Master/texmf-dist/tex/context/base/mkxl/back-res.mkxl') diff --git a/Master/texmf-dist/tex/context/base/mkxl/back-res.mkxl b/Master/texmf-dist/tex/context/base/mkxl/back-res.mkxl new file mode 100644 index 00000000000..8a18eef991f --- /dev/null +++ b/Master/texmf-dist/tex/context/base/mkxl/back-res.mkxl @@ -0,0 +1,34 @@ +%D \module +%D [ file=back-res, +%D version=2019.05.23, % 2009.04.15, +%D title=\CONTEXT\ Backend Macros, +%D subtitle=Resources, +%D author=Hans Hagen, +%D date=\currentdate, +%D copyright={PRAGMA ADE \& \CONTEXT\ Development Team}] +%C +%C This module is part of the \CONTEXT\ macro||package and is +%C therefore copyrighted by \PRAGMA. See mreadme.pdf for +%C details. + +\writestatus{loading}{ConTeXt Backend Macros / Resources} + +\registerctxluafile{back-res}{autosuffix} + +\unprotect + +%D We overload the primitives with our own but use a bit of indirection for the +%D purpose of tracing. Some of these are needed for packages like tikz. + +% todo: public implementors (we can update the lua code anyway) + +\permanent\protected\def\saveboxresource {\clf_saveboxresource} +\permanent\protected\def\lastsavedboxresourceindex {\numexpr\clf_lastsavedboxresourceindex\relax} +\permanent\protected\def\useboxresource {\clf_useboxresource} + +\permanent\protected\def\saveimageresource {\clf_saveimageresource} +\permanent\protected\def\lastsavedimageresourceindex{\numexpr\clf_lastsavedimageresourceindex\relax} +\permanent\protected\def\lastsavedimageresourcepages{\numexpr\clf_lastsavedimageresourcepages\relax} +\permanent\protected\def\useimageresource {\clf_useimageresource} + +\protect \endinput -- cgit v1.2.3