On 11/5/2021 11:18, Hans Hagen via ntg-context wrote:
On 11/5/2021 3:19 PM, Rik Kabel via ntg-context wrote:
Hello brain trust,

How can \typesetbuffer be instructed to use the same engine as the document which contains it?

With the following example:


\startbuffer[Buffer]
   \startTEXpage \contextmark \stopTEXpage
\stopbuffer
\starttext
   \contextmark\
   \typesetbuffer[Buffer]
\stoptext

I get "MKIV LMTX" when it is processed with context --luatex. I want the buffer to be processed as MkIV.
Does patching line 691 in buff-ini.lua

    template = (jit and "--jit --engine=luajittex" or "--engine=luatex") .. " --purgeall %?path: --path=%path% ?% %filename%",

work okay? Run "context --make" after patching.

Hans

Yes, that seems to do it. context --make and context --make --luatex were needed, I think.

--
Rik

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to