Re: [NTG-context] Font switch \x does not work

2009-05-13 Thread Hans Hagen

Vyatcheslav Yatskovsky wrote:

Hello,

Font switching described in sec.5.3 of the manual, does not work in mkiv.

{\x some text }

! Undefined control sequence.
l.48 {\x
 some text }
?
! Emergency stop.


indeed: \x \xi \v etx are dropped in mkiv


-
  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
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Font switch \x does not work

2009-05-13 Thread Aditya Mahajan

On Thu, 14 May 2009, Vyatcheslav Yatskovsky wrote:


Hello,

Font switching described in sec.5.3 of the manual, does not work in mkiv.

{\x some text }

! Undefined control sequence.
l.48 {\x
some text }
?
! Emergency stop.


This has been removed from mkiv. There was a discussion about it a few 
weeks back which concluded with a suggestion that we should have a 
compatibility module for mkiv. I guess we should start filling in 
m-mkii.mkiv.


Hans, here is a version that takes care of \x, etc.

Aditya% todo

% Compatibility for font-ini
\let\normalxi=\xi

\definebodyfontswitch [xii]  [\!!twelvepoint]
\definebodyfontswitch [xi]   [\!!elevenpoint]
\definebodyfontswitch [x][\!!tenpoint]
\definebodyfontswitch [ix]   [\!!ninepoint]
\definebodyfontswitch [viii] [\!!eightpoint]
\definebodyfontswitch [vii]  [\!!sevenpoint]
\definebodyfontswitch [vi]   [\!!sixpoint]

\def\xi{\ifmmode\normalxi\else\elevenpoint\fi}
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Font switch \x does not work

2009-05-13 Thread Aditya Mahajan

On Wed, 13 May 2009, Aditya Mahajan wrote:


On Thu, 14 May 2009, Vyatcheslav Yatskovsky wrote:


Hello,

Font switching described in sec.5.3 of the manual, does not work in mkiv.

{\x some text }

! Undefined control sequence.
l.48 {\x
some text }
?
! Emergency stop.


This has been removed from mkiv. There was a discussion about it a few weeks 
back which concluded with a suggestion that we should have a compatibility 
module for mkiv. I guess we should start filling in m-mkii.mkiv.


Hans, here is a version that takes care of \x, etc.


which should be surrounded by \unprotect and \protect.

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___