[NTG-context] issue embedding from Lua code

Wolfgang Schuster wolfgang.schuster.lists at gmail.com
Fri Nov 1 12:06:19 CET 2019


Pablo Rodriguez schrieb am 01.11.2019 um 11:48:
>> 2. Use the asciimode environment to make TeX's special characters normal
>> letters.
> Is there any ascii mode equivalent for Lua?
>
> I mean, something like "asciimode(whatever)".

You can change catcode regimes to change meaning of the special characters.

\starttext

\startluacode

context.pushcatcodes("text")
context("%")
context("&")
context("#")
context("$")
context("~")
context.popcatcodes()

\stopluacode

\stoptext

Wolfgang



More information about the ntg-context mailing list