* Re: The simpleslides can not output '--'
2009-09-08 5:38 The simpleslides can not output '--' joshua lee
@ 2009-09-08 14:17 ` Aditya Mahajan
0 siblings, 0 replies; 2+ messages in thread
From: Aditya Mahajan @ 2009-09-08 14:17 UTC (permalink / raw)
To: muzili, mailing list for ConTeXt users
On Tue, 8 Sep 2009, joshua lee wrote:
> Hi All,
> Attached is the simple test file for the simpleslides which can not output
> '--', any idea? Thanks.
There is a bug somewhere (see later). As a workaround, you can use
\setuptyping[style={\definedfont[LMTypewriter10-Regular]}]
Here is a minimal example of what is happening. In simpleslides we use
\definebodyfontenvironment, otherwise the size calculations (tfa, etc) and
the math fonts do not work (at least this is what used to happen in MkII).
For some reason this means that we cannot switch to typewriter font.
Any ideas on what is wrong here?
\def\NormalSize{17pt}
\def\TitleSize {22pt}
%D The bodyfont needs to be defined so \CONTEXT\ can calculate size switches,
%D math formulas, etc.
\starttypescript [serif] [default] [size]
\definebodyfont [14pt,15pt,16pt,17pt,20pt,25pt,\NormalSize,\TitleSize]
[rm] [default]
\stoptypescript
\starttypescript [sans] [default] [size]
\definebodyfont [14pt,15pt,16pt,17pt,20pt,25pt,\NormalSize,\TitleSize]
[ss] [default]
\stoptypescript
\definebodyfontenvironment[\NormalSize]
\definebodyfontenvironment[\TitleSize]
\starttypescript[bookman]
\definetypeface [bookman] [rm] [serif] [bookman] [default]
\definetypeface [bookman] [ss] [sans] [adventor] [default]
\definetypeface [bookman] [tt] [mono] [modern] [default]
[rscale=1.075]
\definetypeface [bookman] [mm] [math] [pagella] [default]
\stoptypescript
\usetypescript[bookman]
\setupbodyfont[bookman,\NormalSize]
\starttext
\starttyping
i ++;
i --;
\stoptyping
{\tt A test i -- }
\stoptext
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 2+ messages in thread