Re: ntg-context Digest, Vol 10, Issue 21
Am Donnerstag, 7. April 2005 12:00 schrieb Hans Hagen
% define a typeface
\definetypeface [modern] [rm] [serif] [modern-base] [default] \definetypeface [modern] [ss] [sans] [modern-base] [default] \definetypeface [modern] [tt] [mono] [modern-base] [default] \definetypeface [modern] [mm] [math] [modern-base] [default]
% overloaad a mapping
% \startfontclass[modern] % \definefontsynonym [ComputerModernMath-Roman] [ComputerModernSans] % \definefontsynonym [ComputerModernMath-Italic] [ComputerModernSans-Italic] % \stopfontclass
\startfontclass[modern] \definefontsynonym [MathRoman] [Sans] \definefontsynonym [MathItalic] [SansItalic] \stopfontclass
% initialize the typeface
\setupbodyfont[modern,ss]
\starttext Some text, we can read it without serifs. But the formula: $ \frac{1}{x-2} $ is not in the same font. \stoptext
you can put this in one of the dark corners of the wiki -)
Thank you Hans, but for me ist results in : ! Undefined control sequence. l.15 \startfontclass [modern] Whats wrong? Kai
Kai Straube said this at Thu, 7 Apr 2005 21:31:27 +0200:
\startfontclass[modern] \definefontsynonym [MathRoman] [Sans] \definefontsynonym [MathItalic] [SansItalic] \stopfontclass
but for me ist results in :
! Undefined control sequence. l.15 \startfontclass [modern]
Whats wrong?
I had the same problem. I think that might be a new (private?) command. In any case, in the short term, a workaround is to comment out the start/ stopfontclass lines. -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Adam T. Lindsay, Computing Dept. atl@comp.lancs.ac.uk Lancaster University, InfoLab21 +44(0)1524/510.514 Lancaster, LA1 4WA, UK Fax:+44(0)1524/510.492 -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Kai Straube wrote:
! Undefined control sequence. l.15 \startfontclass [modern]
Whats wrong?
just comment those two start/stop lines then ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
participants (3)
-
Adam Lindsay
-
Hans Hagen
-
Kai Straube