ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* accessing tex.sprint from pure Lua code.
@ 2022-08-30 17:34 Hans van der Meer via ntg-context
  2022-08-30 18:00 ` Hans Hagen via ntg-context
  0 siblings, 1 reply; 3+ messages in thread
From: Hans van der Meer via ntg-context @ 2022-08-30 17:34 UTC (permalink / raw)
  To: NTG ConTeXt; +Cc: Hans van der Meer


[-- Attachment #1.1: Type: text/plain, Size: 151 bytes --]

How can ik access the tex library in pure Lua for tex.sprint and token.setmacro?
I guess something like
require XYZ
?

dr. Hans van der Meer



[-- Attachment #1.2: Type: text/html, Size: 1322 bytes --]

[-- Attachment #2: Type: text/plain, Size: 496 bytes --]

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

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: accessing tex.sprint from pure Lua code.
  2022-08-30 17:34 accessing tex.sprint from pure Lua code Hans van der Meer via ntg-context
@ 2022-08-30 18:00 ` Hans Hagen via ntg-context
       [not found]   ` <6B2E26D5-FA28-4B23-A523-FEA7C0621600@ziggo.nl>
  0 siblings, 1 reply; 3+ messages in thread
From: Hans Hagen via ntg-context @ 2022-08-30 18:00 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Hans Hagen

On 8/30/2022 7:34 PM, Hans van der Meer via ntg-context wrote:
> How can ik access the tex library in pure Lua for tex.sprint and token.setmacro?
> I guess something like
> require XYZ
> ?
what do you mean with pure lua

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 / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : https://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: accessing tex.sprint from pure Lua code.
       [not found]   ` <6B2E26D5-FA28-4B23-A523-FEA7C0621600@ziggo.nl>
@ 2022-08-30 18:05     ` Hans Hagen via ntg-context
  0 siblings, 0 replies; 3+ messages in thread
From: Hans Hagen via ntg-context @ 2022-08-30 18:05 UTC (permalink / raw)
  To: Hans van der Meer, mailing list for ConTeXt users; +Cc: Hans Hagen

On 8/30/2022 8:02 PM, Hans van der Meer wrote:
> In Terminal (say Unix window) calling
> 
> lua some-file.lua
> 
> and within that file code like
> tex.sprint ...
> token...
> 
> Thus calling in the tex-library outside ConTeXt.
no, tex is not a library .. but of course you can make a small tex file 
that wraps your lua and run that file with context

keep in mind that tex is a ecosystem: fotns, languages etc

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 / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : https://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-08-30 18:05 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-30 17:34 accessing tex.sprint from pure Lua code Hans van der Meer via ntg-context
2022-08-30 18:00 ` Hans Hagen via ntg-context
     [not found]   ` <6B2E26D5-FA28-4B23-A523-FEA7C0621600@ziggo.nl>
2022-08-30 18:05     ` Hans Hagen via ntg-context

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).