ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* non-integer bodyfont size
@ 2007-05-11 17:49 Sanjoy Mahajan
  2007-05-11 17:59 ` Hans Hagen
  0 siblings, 1 reply; 3+ messages in thread
From: Sanjoy Mahajan @ 2007-05-11 17:49 UTC (permalink / raw)
  To: ntg-context

I'm a bit confused about font sizes.  I had a bunch of missing \Delta
symbols in inline math (e.g. $\Delta x$), which I tracked down to

\setupbodyfont[10.5pt]

The non-integral point size works for text but not for math (the \Delta
turned into a backquote).  How to fix that?

type-siz.tex has several sections to which I could add
\definebodyfontenvironment or \definebodyfont lines.  Which sections
would I add to?  Or can I put the additions outside of that file?  And,
most crucially, what are the magic lines :-)

Thanks for suggestions, which I'll wikify.

-Sanjoy
___________________________________________________________________________________
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] 3+ messages in thread

* Re: non-integer bodyfont size
  2007-05-11 17:49 non-integer bodyfont size Sanjoy Mahajan
@ 2007-05-11 17:59 ` Hans Hagen
  2007-05-14 17:29   ` Sanjoy Mahajan
  0 siblings, 1 reply; 3+ messages in thread
From: Hans Hagen @ 2007-05-11 17:59 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Sanjoy Mahajan wrote:
> I'm a bit confused about font sizes.  I had a bunch of missing \Delta
> symbols in inline math (e.g. $\Delta x$), which I tracked down to
>
> \setupbodyfont[10.5pt]
>
> The non-integral point size works for text but not for math (the \Delta
> turned into a backquote).  How to fix that?
>
> type-siz.tex has several sections to which I could add
> \definebodyfontenvironment or \definebodyfont lines.  Which sections
> would I add to?  Or can I put the additions outside of that file?  And,
> most crucially, what are the magic lines :-)
>
> Thanks for suggestions, which I'll wikify.
>   
you need to define a bodyfont environment 

Hans 

-----------------------------------------------------------------
                                          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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: non-integer bodyfont size
  2007-05-11 17:59 ` Hans Hagen
@ 2007-05-14 17:29   ` Sanjoy Mahajan
  0 siblings, 0 replies; 3+ messages in thread
From: Sanjoy Mahajan @ 2007-05-14 17:29 UTC (permalink / raw)
  To: mailing list for ConTeXt users

> you need to define a bodyfont environment 

Can I get away with the following, which just does \definebodyfont for
math?  It worked but maybe I'm missing a bodyfont type?  Sans serif
work even without adding anything else (tested by adding "\ss \input
tufte" after \stopformula).  Too much works correctly and
automatically, so I'm worried!

\definebodyfont [10.5pt] [mm]
    [mr=xcmr10 at 10.5pt,
     ex=cmex10 at 10.5pt,
     mi=cmmi10 at 10.5pt,
     sy=cmsy10 at 10.5pt]

\setupbodyfont[10.5pt]
\starttext
\startformula
\Delta x
\stopformula
\stoptext


-Sanjoy

`Not all those who wander are lost.' (J.R.R. Tolkien)
___________________________________________________________________________________
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] 3+ messages in thread

end of thread, other threads:[~2007-05-14 17:29 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-05-11 17:49 non-integer bodyfont size Sanjoy Mahajan
2007-05-11 17:59 ` Hans Hagen
2007-05-14 17:29   ` Sanjoy 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).