* How to scale math with text?
@ 2018-06-04 22:37 Henri Menke
2018-06-05 0:18 ` Alan Braslau
0 siblings, 1 reply; 5+ messages in thread
From: Henri Menke @ 2018-06-04 22:37 UTC (permalink / raw)
To: ntg-context
Dear list,
probably I'm just missing something obvious. How can I scale the math
font size to match the text font size locally? In the following MWE
text is scaled to 10pt but math still appears at 12pt.
\starttext
{\tfx ABC $DEF$ GHI\par}
\stoptext
Cheers, Henri
___________________________________________________________________________________
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://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: How to scale math with text?
2018-06-04 22:37 How to scale math with text? Henri Menke
@ 2018-06-05 0:18 ` Alan Braslau
2018-06-05 16:57 ` Aditya Mahajan
0 siblings, 1 reply; 5+ messages in thread
From: Alan Braslau @ 2018-06-05 0:18 UTC (permalink / raw)
To: Henri Menke; +Cc: mailing list for ConTeXt users
On Tue, 5 Jun 2018 10:37:12 +1200
Henri Menke <henrimenke@gmail.com> wrote:
> Dear list,
>
> probably I'm just missing something obvious. How can I scale the
> math font size to match the text font size locally? In the following
> MWE text is scaled to 10pt but math still appears at 12pt.
>
> \starttext
> {\tfx ABC $DEF$ GHI\par}
> \stoptext
I believe that the "proper" way would be:
\starttext
\startparagraph [style=small]
ABC $DEF$ GHI
\stopparagraph
\stoptext
___________________________________________________________________________________
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://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: How to scale math with text?
2018-06-05 0:18 ` Alan Braslau
@ 2018-06-05 16:57 ` Aditya Mahajan
2018-06-05 21:05 ` Alan Braslau
0 siblings, 1 reply; 5+ messages in thread
From: Aditya Mahajan @ 2018-06-05 16:57 UTC (permalink / raw)
To: mailing list for ConTeXt users
On Mon, 4 Jun 2018, Alan Braslau wrote:
> On Tue, 5 Jun 2018 10:37:12 +1200
> Henri Menke <henrimenke@gmail.com> wrote:
>
>> Dear list,
>>
>> probably I'm just missing something obvious. How can I scale the
>> math font size to match the text font size locally? In the following
>> MWE text is scaled to 10pt but math still appears at 12pt.
>>
>> \starttext
>> {\tfx ABC $DEF$ GHI\par}
>> \stoptext
>
> I believe that the "proper" way would be:
>
> \starttext
>
> \startparagraph [style=small]
> ABC $DEF$ GHI
> \stopparagraph
>
> \stoptext
Or, \switchtobodyfotn[small] etc. This is what I had written in the
tugboat article on font switching (wikified at
http://wiki.contextgarden.net/Font_Switching)
"These quick font switches are meant for changing the font style,
alternative, or size of a few words: they do not change the bodyfont, so
they don't affect interline spacing or math font sizes. So, if you want to
change the font size of an entire paragraph, use \switchtobodyfont
described below in Complete Font Change. However, it is fine to use them
as style directives in setup commands, that is, using them as an option
for style=... in any setup command that accepts style option. "
Please feel free to change the phrasing if it is not clear.
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://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: How to scale math with text?
2018-06-05 16:57 ` Aditya Mahajan
@ 2018-06-05 21:05 ` Alan Braslau
2018-06-06 15:06 ` Aditya Mahajan
0 siblings, 1 reply; 5+ messages in thread
From: Alan Braslau @ 2018-06-05 21:05 UTC (permalink / raw)
To: Aditya Mahajan; +Cc: mailing list for ConTeXt users
The "style=" use is, in general, preferable for tagging (and
exporting). For less than paragraph switching, the use of
\definehighlight for example could be used.
Quick and dirty font switching is almost always poor usage...
Alan
On Tue, 5 Jun 2018 12:57:59 -0400 (EDT)
Aditya Mahajan <adityam@umich.edu> wrote:
> On Mon, 4 Jun 2018, Alan Braslau wrote:
>
> > On Tue, 5 Jun 2018 10:37:12 +1200
> > Henri Menke <henrimenke@gmail.com> wrote:
> >
> >> Dear list,
> >>
> >> probably I'm just missing something obvious. How can I scale the
> >> math font size to match the text font size locally? In the
> >> following MWE text is scaled to 10pt but math still appears at
> >> 12pt.
> >>
> >> \starttext
> >> {\tfx ABC $DEF$ GHI\par}
> >> \stoptext
> >
> > I believe that the "proper" way would be:
> >
> > \starttext
> >
> > \startparagraph [style=small]
> > ABC $DEF$ GHI
> > \stopparagraph
> >
> > \stoptext
>
> Or, \switchtobodyfotn[small] etc. This is what I had written in the
> tugboat article on font switching (wikified at
> http://wiki.contextgarden.net/Font_Switching)
>
> "These quick font switches are meant for changing the font style,
> alternative, or size of a few words: they do not change the bodyfont,
> so they don't affect interline spacing or math font sizes. So, if you
> want to change the font size of an entire paragraph, use
> \switchtobodyfont described below in Complete Font Change. However,
> it is fine to use them as style directives in setup commands, that
> is, using them as an option for style=... in any setup command that
> accepts style option. "
>
> Please feel free to change the phrasing if it is not clear.
>
> 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://context.aanhet.net archive :
> https://bitbucket.org/phg/context-mirror/commits/ wiki :
> http://contextgarden.net
> ___________________________________________________________________________________
___________________________________________________________________________________
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://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: How to scale math with text?
2018-06-05 21:05 ` Alan Braslau
@ 2018-06-06 15:06 ` Aditya Mahajan
0 siblings, 0 replies; 5+ messages in thread
From: Aditya Mahajan @ 2018-06-06 15:06 UTC (permalink / raw)
To: Alan Braslau; +Cc: mailing list for ConTeXt users
On Tue, 5 Jun 2018, Alan Braslau wrote:
> The "style=" use is, in general, preferable for tagging (and
> exporting). For less than paragraph switching, the use of
> \definehighlight for example could be used.
>
> Quick and dirty font switching is almost always poor usage...
You didn't read the first paragraph of my article :-)
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://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2018-06-06 15:06 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-06-04 22:37 How to scale math with text? Henri Menke
2018-06-05 0:18 ` Alan Braslau
2018-06-05 16:57 ` Aditya Mahajan
2018-06-05 21:05 ` Alan Braslau
2018-06-06 15:06 ` 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).