2,972 reputation
21026
bio website example.com
location Canada
age 35
visits member for 3 years, 8 months
seen yesterday

Happy user of Django, Python, Perl, C++, Tex, Javascript, PostgreSQL.

XƎTEX:

X<sub>&#x18e;</sub>T<sub>E</sub>X

2d
comment Escape a string printed from Lua using ConTeXt
One note, context("%!tex!", text) seems to handle "\" in an unintuitive way. For example, the string "\escape" results in "<LINEBREAK>escape". This may not be the desired behaviour. The catcodes solution does not have this particular caveat.
Jul
29
accepted Escape a string printed from Lua using ConTeXt
Jul
29
comment Escape a string printed from Lua using ConTeXt
Thanks Aditya - why do you think one would prefer these over the discussed catcodes? other than Hans saying so, which ought to be compelling enough :-) —just curious.
Jul
26
comment What is a simple example of something you can do with LuaTeX?
I believe, in mkiv at least, one might prefer \ctxlua to \directlua and \startlua for blocks.
Jul
25
revised Escape a string printed from Lua using ConTeXt
added 49 characters in body
Jul
25
answered Escape a string printed from Lua using ConTeXt
Jul
25
comment Escape a string printed from Lua using ConTeXt
It looks like the proper catcode might be \notcatcodes from catc-def.mkiv
Jul
25
revised Escape a string printed from Lua using ConTeXt
note verbatim
Jul
24
accepted Get or change ConTeXt path for components/projects/environment
Jul
23
comment Escape a string printed from Lua using ConTeXt
Thanks @phg. I am afraid it is not apparent from the link how one employs said catcodes. Incidentally, and aside, if there is no such thing as a TeX compiler, what is the mechanism by which the TeX source is converted to machine instructions?
Jul
23
asked Escape a string printed from Lua using ConTeXt
Jul
23
revised Get or change ConTeXt path for components/projects/environment
add note re --path
Jul
21
answered Get or change ConTeXt path for components/projects/environment
Jul
21
comment Get or change ConTeXt path for components/projects/environment
Thanks @Metafox - it is probably also worth noting that using \usepath[.., ../..] enables discrimination by subpath i.e. \component components/X will not retrieve products/X. Whereas \usepath[..] \usesubpath[components,products] with \component X is ambiguous —— TeX might end up using either the products/X or components/X.
Jul
21
comment Get or change ConTeXt path for components/projects/environment
@Metafox: That seems to work. Could you be so kind as to document the arguments to those? That would be a good answer.
Jul
21
revised Get or change ConTeXt path for components/projects/environment
more info,
Jul
21
revised Get or change ConTeXt path for components/projects/environment
added 403 characters in body
Jul
21
revised Get or change ConTeXt path for components/projects/environment
noted context magazine and the readfile tracker output
Jul
21
revised Get or change ConTeXt path for components/projects/environment
add ref to readfilename
Jul
21
revised Get or change ConTeXt path for components/projects/environment
add note on where error is from