ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Aditya Mahajan <adityam@umich.edu>
To: muzili@gmail.com, mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: The simpleslides can not output '--'
Date: Tue, 8 Sep 2009 10:17:31 -0400 (EDT)	[thread overview]
Message-ID: <alpine.LNX.2.00.0909081009550.20306@ybpnyubfg.ybpnyqbznva> (raw)
In-Reply-To: <9dc88b850909072238u92a904awc923fe084dd1d4c8@mail.gmail.com>

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
___________________________________________________________________________________


      reply	other threads:[~2009-09-08 14:17 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-09-08  5:38 joshua lee
2009-09-08 14:17 ` Aditya Mahajan [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=alpine.LNX.2.00.0909081009550.20306@ybpnyubfg.ybpnyqbznva \
    --to=adityam@umich.edu \
    --cc=muzili@gmail.com \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).