Re: [NTG-context] can typesetbuffer use the same engine?

2021-11-05 Thread Rik Kabel via ntg-context


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
___


Re: [NTG-context] can typesetbuffer use the same engine?

2021-11-05 Thread Hans Hagen via ntg-context

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

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-
___
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
___