[NTG-context] Defining new font switches (solved?)

Idris Samawi Hamid ishamid at lamar.colostate.edu
Fri Apr 8 23:43:49 CEST 2005

Ok, I think I have come closer to understanding the \definestyle problem.  The 
problem (bug?) is in  \definetypeface. Consider the following test typescript:

\definestyle [mvmystyle] [\mv] []

\starttypescript [serif] [mystyle] [name]

  \definefontsynonym [MySerif]     [cmcsc10]

  \definefontsynonym [Serif]       [MySerif]


\starttypescript [serif] [mystyle] [size]

    [tf=Serif sa 1,
     mv=Serif sa 1]


\starttypescript [MYTest]


  \definetypeface [mytest] [rm] [serif] [mystyle]
  %[mystyle] [encoding=default]


Now consider the following test file:

% output=pdf interface=en



{\tf This is a test.}

{\normal This is a test.}

{\mv This is a test.}

{\mvmystyle This is a test.}


Consider the  \definetypeface line. If we leave the comment in place, then the 
\tf switch will work (and give us small caps) while the \mv switch will give 
an undefined control sequence. If we uncomment the last two options in  
\definetypeface, then \mv will also work.

Why do predefined switches like \tf work with 4 options while user-defined 
style options fail? Is this a bug or feature (seems inconsistent)?

Thnx in advance as always, and happy weekend

Professor Idris Samawi Hamid
Department of Philosophy
Colorado State University
Fort Collins, CO 80523

More information about the ntg-context mailing list