ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* The simpleslides can not output '--'
@ 2009-09-08  5:38 joshua lee
  2009-09-08 14:17 ` Aditya Mahajan
  0 siblings, 1 reply; 2+ messages in thread
From: joshua lee @ 2009-09-08  5:38 UTC (permalink / raw)
  To: ntg-context


[-- Attachment #1.1: Type: text/plain, Size: 133 bytes --]

Hi All,
Attached is the simple test file for the simpleslides which can not output
'--', any idea? Thanks.

-- 
Best Regards,
Joshua

[-- Attachment #1.2: Type: text/html, Size: 173 bytes --]

[-- Attachment #2: test.tex --]
[-- Type: application/x-tex, Size: 343 bytes --]

[-- Attachment #3: test.pdf --]
[-- Type: application/pdf, Size: 3079 bytes --]

[-- Attachment #4: Type: text/plain, Size: 487 bytes --]

___________________________________________________________________________________
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

* 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

end of thread, other threads:[~2009-09-08 14:17 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-09-08  5:38 The simpleslides can not output '--' joshua lee
2009-09-08 14:17 ` Aditya Mahajan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).