ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen <pragma@wxs.nl>
Subject: Re: fontsize in math
Date: Thu, 06 Mar 2003 14:29:57 +0100	[thread overview]
Message-ID: <5.1.0.14.1.20030306142322.03552e80@server-1> (raw)
In-Reply-To: <6949B866-4F0C-11D7-A82F-003065568054@science.uva.nl>

At 02:14 PM 3/5/2003 +0100, you wrote:
>Hi Hans,
>
>I encountered an issue in fontsizing in math mode that I do not understand.
>Searched the manual but couldn't find (or missed) the clue.
>
>Using the green presentation style but changed to a somewhat larger 
>fontsize by adding:
>\setupbodyfont[lbr, sans, 17.3pt]       % lucidabright
>
>typesetting the following text:
>{abc$abc$abc} --- {\tfx abc$abc$abc} --- {\tfx abc}{$\tfx abc$}{\tfx abc}
>
>In the first the abc's have the same size.
>In the second the math part has kept its size, the other two are smaller.
>In the third the math part is now so small is doesn't match in size as it 
>did in the first.
>
>I would have thought the math would vary in accordance with the \tfx.
>However, within $'s the font does not follow the outside \tfx, while 
>inside a different size seems to be chosen. I am baffled.
>Can you point in the right direction? Thanks.

The x and xx sizes are meant for text purposes, like text super and 
subscripts and pseudo kaps; opposite to a-d sizes that are meant for heads 
and so; as a result, x and xx are fast, a-d are slower due to the fact that 
math is synchronzied (can be turned on/off)

When you want to switch to a smaller/larger bodyfont, you should use

\smallbodyfont == \switchtobodyfont[smallbodyfont]
\bigbodyfont   == ...

This will switch the whole thing (kee pin mind that for math also the two 
smaller super/sub sizes have to be set up). When using typescripts (i.e. 
namespaces font sets with global file resolving) the penalty in terms of 
time is small.

So:

   use \smallbidyfont instead of \tfx in your case

btw, in the third example the second tfx is actually a tfxx, so {text \tfx 
text \tfx text} makes the last one real small; as said, the main reason for 
the x sizes in in super/sub scripts and pseudo kaps (we use those a lot in 
educ docs and these commands also obey the font style)

Hans
-------------------------------------------------------------------------
                                   Hans Hagen | PRAGMA ADE | pragma@wxs.nl
                       Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-------------------------------------------------------------------------
                        information: http://www.pragma-ade.com/roadmap.pdf
                     documentation: http://www.pragma-ade.com/showcase.pdf
-------------------------------------------------------------------------

      reply	other threads:[~2003-03-06 13:29 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-03-05 13:14 Hans van der Meer
2003-03-06 13:29 ` Hans Hagen [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=5.1.0.14.1.20030306142322.03552e80@server-1 \
    --to=pragma@wxs.nl \
    --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).