On 11/28/2018 9:33 AM, Joseph Canedo wrote:
I’d like to change some input to modify used font but only in parts of
it, for example to implement having first line with different font. So
basically if I have text with macros etc…:
% firstlines-001.tex
\setupbodyfont
[pagella]
\setupalign
[t
y in context lua code, or elsewhere.
Thanks
De : Hans Hagen
Envoyé le :mercredi 28 novembre 2018 09:04
À : Joseph Canedo; mailing list for ConTeXt users
Objet :Re: [NTG-context] Grammar to parse TeX input?
On 11/27/2018 11:00 PM, Joseph Canedo wrote:
> I’ve tried context.processbuffer bu
On 11/27/2018 11:00 PM, Joseph Canedo wrote:
I’ve tried context.processbuffer but I am afraid it’s not what I am
after, most probably I have not phrased clearly my question.
What I am looking for is roughly what’s described in Taco’s presentation
https://meeting.contextgarden.net/2014/talks/20
: mailing list for ConTeXt users; Joseph Canedo
Objet :Re: [NTG-context] Grammar to parse TeX input?
On 11/26/2018 3:19 PM, Joseph Canedo wrote:
> \startluacode
>
> function zzz_function(text)
>
> - How to process ‘text’ to get bits which are macros, groups etc… ?
> Eventually e
On 11/26/2018 3:19 PM, Joseph Canedo wrote:
\startluacode
function zzz_function(text)
- How to process ‘text’ to get bits which are macros, groups etc… ?
Eventually expanded ?
end
\stopluacode
\definebuffer[ZZZBuffer]
\def\StartZZZ{\grabbufferdata[ZZZBuffer][StartZZZ][StopZZZ]}
\def\Stop
Dear list,
I use a buffer to make some text processing. That text contains TeX macros etc…
and I’d like to know if there is some feature in lua to parse the text to
extract bits which macros, normal text etc… ?
Thanks
Best regards
Joseph
Example of pseudo MWE follows.
\startluacode
functio