ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Csikos Bela <bcsikos425@freemail.hu>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: mathsf / mathversions in context
Date: Thu, 20 Oct 2016 16:59:31 +0200 (CEST)	[thread overview]
Message-ID: <freemail.20161020165931.91611.1@fmxmldata05.freemail.hu> (raw)
In-Reply-To: <5803C59F.2060508@gmail.com>

Wolfgang Schuster <schuster.wolfgang@gmail.com> írta:

Thank you again. Now I am even more confused.

>> 3. I found that if I write \definefontfamily     [docuf] [mm] [TeX Gyre Pagella Math]
>> before \definefallbackfamily lines, the latter have no effect. Is this normal?
>> Shouldn't the order of definition lines be indifferent?
>The fallbackfamily settings are applied to a typeface and the 
>\definefontfamily commands creates the typeface, without \definefontfamily the
>fallbacks are never used because there is no font which can use the settings.

Sorry, but I don't understand the answer. If I have the code:

\definefallbackfamily [documentfont] [mm] [Tex Gyre Adventor] [preset=math:lowercaseitalic]
\definefontfamily     [documentfont] [mm] [TeX Gyre Pagella Math]

then Tex Gyre Adventor font is used for math (\definefallbackfamily has effect).

If I have this code:

\definefontfamily     [documentfont] [mm] [TeX Gyre Pagella Math]
\definefallbackfamily [documentfont] [mm] [Tex Gyre Adventor] [preset=math:lowercaseitalic]

then Tex Gyre Pagella is used for math (\definefallbackfamily has no effect).

According to your answer the opposite should happen, shouldn't?
I am confused.

>The x and xx perform not the same scaling as a, b etc. but you can 
>define your own sizes which behave the same way as a etc.
>
>\definefontsize[m]
>\definefontsize[n]
>
>\definebodyfontenvironment[default][m=0.8,n=0.9]

OK. How can I use this setting together with \definefontfamily and
\definefallbackfamily?

I have this code:

\definefallbackfamily [documentfont] [mm] [Tex Gyre Adventor] [preset=math:lowercaseitalic]
\definefallbackfamily [documentfont] [mm] [Tex Gyre Adventor] [preset=math:uppercaseitalic]
\definefallbackfamily [documentfont] [mm] [Tex Gyre Adventor] [preset=math:uppercasenormal]
\definefallbackfamily [documentfont] [mm] [Tex Gyre Adventor] [preset=math:lowercasenormal]
\definefallbackfamily [documentfont] [mm] [Tex Gyre Adventor] [preset=math:digitsnormal]
\definefallbackfamily [documentfont] [mm] [Tex Gyre Adventor] [preset=math:digitsitalic]
\definefontfamily     [documentfont] [mm] [TeX Gyre Pagella Math]
\setupbodyfont[documentfont,10pt]

\definefontsize[m]
\definefontsize[n]

\definebodyfontenvironment[default][m=0.8,n=0.6]

\starttext

This paragraph contains text and $\tf math$.

{\tfa This paragraph contains text and $\tf math$.}

{\tfb This paragraph contains text and $\tf math$.}

\stoptext

The result in this case is italic math font. How can I have it upright?
(If I comment out \definefontsize and \definebodyfontenvironment lines,
the math font are upright.)

Thank you in advance,

bcsikos




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

  reply	other threads:[~2016-10-20 14:59 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-10-11 19:52 Csikos Bela
2016-10-11 21:02 ` Wolfgang Schuster
2016-10-14 14:56   ` Csikos Bela
2016-10-16 18:23     ` Wolfgang Schuster
2016-10-20 14:59       ` Csikos Bela [this message]
2016-10-26 18:22         ` Wolfgang Schuster
2016-10-27 16:42           ` Csikos Bela

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=freemail.20161020165931.91611.1@fmxmldata05.freemail.hu \
    --to=bcsikos425@freemail.hu \
    --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).