I want to create a new style alternative, which would allow me to change the text and font (to uppercase bold in this example) while also increasing the letterspacing. However, trying to do this leads to a crash:
\setuppapersize[S3]
\definecharacterkerning [mykerning] [factor=0.16]
\definealternativestyle [mystyle]
[
\WORDS\bfx\setcharacterkerning[mykerning]
]
\starttext
{\WORDS\bfx\setcharacterkerning[mykerning] It works here.}
{\mystyle It crashes here.}
\stoptext
tex error > tex error on line 13 in file /home/…/test.tex: ! Argument of \setcharacterkerning has an extra }
Why does this crash occur? (\WORDS
works, why not \setcharacterkerning
?) Is there a way to fix it? I want to be able to use it as an argument for style=
.