dr. Hans van der Meer
On 19 May 2023, at 11:43, Gerben Wierda via ntg-context <ntg-context@ntg.nl> wrote:

I want to use a variable for a font size so I can set it based on language (as some translated texts have widely different sizes)

This fails:

%===========================
\newdimen\relationsFontSize
\relationsFontSize=8pt
\starttext
\switchtobodyfont[\relationsFontSize]
Hello, world!
\stoptext
%===========================

How can I use a variable to steer \switchtobodyfont size?


___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : https://contextgarden.net
___________________________________________________________________________________