Taco Hoekwater schrieb am 19.07.2019 um 16:20:
On 19 Jul 2019, at 16:03, Alan Braslau <[email protected]> wrote:
On Fri, 19 Jul 2019 14:39:11 +0200
Taco Hoekwater <[email protected]> wrote:
but that is quite silly. Is there some official command to ‘fix' this
issue?
\bold{ bla bla}
Because of the streaming nature of xml processing via lua, that is
not really an option for me, but even if I could make that work for me,
I do not like having to write
context(‘{‘)
...
context(‘}‘)
in a cld file. To me, that feels like it sort of defeats the purpose.
I can easily define a command, of course, like this:
\def\switchalternativeonly[#1]{\getvalue{#1}\relax}
I had the same idea because we have a \switchstyleonly command.
\unexpanded\def\switchalternativeonly[#1]%
{\font_helpers_set_current_font_alternative{#1}}
and then
context.start()
context.switchalternativeonly({myvariable})
lxml.flush(t)
context.stop()
I was just wondering if there was a nice pre-cooked solution somewhere.
When you don't mind using bold, italic etc. to change the font style.
\starttext
xx {\applyalternativestyle{bold} xx} xx
\stoptext
Wolfgang
_______________________________________________
dev-context mailing list
[email protected]
https://mailman.ntg.nl/mailman/listinfo/dev-context