after installation of standalone context I tried to compile the following MWE:

\setupbodyfontenvironment[default][em=italic]

\usemodule[simplefonts][size=10pt]

\setmainfont[Constantia]

\starttext

Serif typeface: regular, {\em italic}, {\bf bold} and {\bf\em bold italic} fonts.

\stoptext

It works, but I got a failure like tex error on line 802 in file c:/.../t-simplefonts.mkiv: ! Undefined control sequence.

After pressing the "s" the compilation works.

How to prevent this?

Best regards, Thomas

Add \letvalue{@NX}\noexpand before \usemodule[simplefonts]. It seems like the \@NX variable was removed from the core.

\setupbodyfontenvironment[default][em=italic]

\letvalue{@NX}\noexpand
\usemodule[simplefonts][size=10pt]

\setmainfont[Constantia]

\starttext

Serif typeface: regular, {\em italic}, {\bf bold} and {\bf\em bold italic} fonts.

\stoptext

In other news, simplefonts has been deprecated and you should use \definefontfamily nowadays.

\setupbodyfontenvironment[default][em=italic]

\definefontfamily[mainface][rm][Constantia]
\setupbodyfont[mainface]

\starttext

Serif typeface: regular, {\em italic}, {\bf bold} and {\bf\em bold italic} fonts.

\stoptext

Your Answer

 

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.