ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Why do size changes affect my math font?
@ 2005-08-15  7:09 Brooks Moses
  2005-08-15  7:33 ` Hans Hagen
  2005-08-15  7:43 ` Hans Hagen
  0 siblings, 2 replies; 5+ messages in thread
From: Brooks Moses @ 2005-08-15  7:09 UTC (permalink / raw)


Consider the following simple document, with is a minimalist version of the 
slides that I'm currently working on:

   \starttext
   The variables are $u$ and $p$.
   \stoptext

This works fine; the text is in roman and the math in italics, just as I 
desire.  However, I need a larger font for my slides, and thus I'm also 
using a font size command, like so:

   \starttext
   \tfc
   The variables are $u$ and $p$.
   \stoptext

This causes the math to be in roman instead of italic.  (It's not in "text 
font" per se; an \it after the \tfc will italicise the text but not the 
math, creating a quite odd effect.)

Is there a reason for this?  What's the cleanest way to fix it for all the 
various size commands?

Thanks,
- Brooks

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

* Re: Why do size changes affect my math font?
  2005-08-15  7:09 Why do size changes affect my math font? Brooks Moses
@ 2005-08-15  7:33 ` Hans Hagen
  2005-08-15  7:58   ` Brooks Moses
  2005-08-15  7:43 ` Hans Hagen
  1 sibling, 1 reply; 5+ messages in thread
From: Hans Hagen @ 2005-08-15  7:33 UTC (permalink / raw)


Brooks Moses wrote:

> Consider the following simple document, with is a minimalist version 
> of the slides that I'm currently working on:
>
>   \starttext
>   The variables are $u$ and $p$.
>   \stoptext
>
> This works fine; the text is in roman and the math in italics, just as 
> I desire.  However, I need a larger font for my slides, and thus I'm 
> also using a font size command, like so:
>
>   \starttext
>   \tfc
>   The variables are $u$ and $p$.
>   \stoptext
>
> This causes the math to be in roman instead of italic.  (It's not in 
> "text font" per se; an \it after the \tfc will italicise the text but 
> not the math, creating a quite odd effect.)
>
> Is there a reason for this?  What's the cleanest way to fix it for all 
> the various size commands?

i'll have a look, for teh moment say: 

\bigmath

at the top of your document (this triggers a more extensive synchronization)

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

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

* Re: Why do size changes affect my math font?
  2005-08-15  7:09 Why do size changes affect my math font? Brooks Moses
  2005-08-15  7:33 ` Hans Hagen
@ 2005-08-15  7:43 ` Hans Hagen
  2005-08-15 15:08   ` Taco Hoekwater
  1 sibling, 1 reply; 5+ messages in thread
From: Hans Hagen @ 2005-08-15  7:43 UTC (permalink / raw)


Brooks Moses wrote:

> Consider the following simple document, with is a minimalist version 
> of the slides that I'm currently working on:
>
>   \starttext
>   The variables are $u$ and $p$.
>   \stoptext
>
> This works fine; the text is in roman and the math in italics, just as 
> I desire.  However, I need a larger font for my slides, and thus I'm 
> also using a font size command, like so:
>
>   \starttext
>   \tfc
>   The variables are $u$ and $p$.
>   \stoptext
>
> This causes the math to be in roman instead of italic.  (It's not in 
> "text font" per se; an \it after the \tfc will italicise the text but 
> not the math, creating a quite odd effect.)
>
> Is there a reason for this?  What's the cleanest way to fix it for all 
> the various size commands?

question for taco:

i had \fam\mrfam but it seems that the math family at the start of math 
is set to -1, so maybe we need:

\def\synchronizetext % stylish text in mmode
  {\ifsynchronizemathfonts\the\textstrategies\fam\minusone\fi}

\def\synchronizemath % math stuff in mmode
  {\ifsynchronizemathfonts\the\mathstrategies\fam\minusone\fi}

\def\synchronizesymb % stylish math stuff in mmode
  {\ifsynchronizemathfonts\the\symbstrategies\fam\minusone\fi}

does this sound ok? 

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

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

* Re: Why do size changes affect my math font?
  2005-08-15  7:33 ` Hans Hagen
@ 2005-08-15  7:58   ` Brooks Moses
  0 siblings, 0 replies; 5+ messages in thread
From: Brooks Moses @ 2005-08-15  7:58 UTC (permalink / raw)


At 12:33 AM 8/15/2005, Hans Hagen wrote:
>Brooks Moses wrote:
[...]
>>   \starttext
>>   \tfc
>>   The variables are $u$ and $p$.
>>   \stoptext
>>
>>This causes the math to be in roman instead of italic.  (It's not in 
>>"text font" per se; an \it after the \tfc will italicise the text but not 
>>the math, creating a quite odd effect.)
>>
>>Is there a reason for this?  What's the cleanest way to fix it for all 
>>the various size commands?
>
>i'll have a look, for teh moment say:
>\bigmath
>
>at the top of your document (this triggers a more extensive synchronization)

Thanks!  That's exactly the simple and quick workaround that I was hoping 
for, for this project that's due tomorrow.  :)

I look forward to the "proper" fix for the future, as well.

- Brooks

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

* Re: Why do size changes affect my math font?
  2005-08-15  7:43 ` Hans Hagen
@ 2005-08-15 15:08   ` Taco Hoekwater
  0 siblings, 0 replies; 5+ messages in thread
From: Taco Hoekwater @ 2005-08-15 15:08 UTC (permalink / raw)
  Cc: mailing list for ConTeXt users

Hans Hagen wrote:
> \def\synchronizesymb % stylish math stuff in mmode
>  {\ifsynchronizemathfonts\the\symbstrategies\fam\minusone\fi}
> 
> does this sound ok?

These assignments are unneeded, this will do:

   {\ifsynchronizemathfonts\the\textstrategies\fi}

But I don't recall why there was a \fam assignment in the first place.
Something with an earlier attempt at \boldmath perhaps?

Taco

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

end of thread, other threads:[~2005-08-15 15:08 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-08-15  7:09 Why do size changes affect my math font? Brooks Moses
2005-08-15  7:33 ` Hans Hagen
2005-08-15  7:58   ` Brooks Moses
2005-08-15  7:43 ` Hans Hagen
2005-08-15 15:08   ` Taco Hoekwater

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).