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: Fri, 14 Oct 2016 16:56:28 +0200 (CEST)	[thread overview]
Message-ID: <freemail.20161014165628.26475.1@fmxmldata06.freemail.hu> (raw)
In-Reply-To: <57FD5359.7090207@gmail.com>

Wolfgang Schuster írta:

>>I would like to set up Tex Gyre Adventor sans serif
>>font as my math font (even if it doesn't havemath symbols). I have 
>>two questions related to this problem.
>>
>>1. In latex I can specify 
>>math font versions, define a specific font as math serif / normal, 
>>another as mathsans serif etc. 
>>(http://milde.users.sourceforge.net/LUCR/Math/math-font-selection.xhtml).
> >Is this possiblein context, and if yes, how?
>
>ConTeXt doesn’t use the same style switches as LaTeX.

Thanks. Is there a way to change font family locally in math mode?
For example how can I use serif if sans serif is the default math font?

>3. You can use the font fallback mechanism to replace certain character 
>in the math font with characters from a text font.
>
>\definefontfamily     [mathfont] [rm] [Tex Gyre Bonum]
>\definefallbackfamily [mathfont] [mm] [Tex Gyre Adventor] 
>[preset=math:lowercaseitalic]
>\definefallbackfamily [mathfont] [mm] [Tex Gyre Adventor] 
>[tf=style:italic,range=0x068,offset=0x0210E]% Planck constant
>\definefontfamily     [mathfont] [mm] [Tex Gyre Pagella Math]
>
>\setupbodyfont[mathfont,10pt]
>

I played a lot with these setups and have questions.
I use this font setting:

\definefontfamily     [docuf] [rm] [TeX Gyre Bonum] 
\definefontfamily     [docuf] [ss] [TeX Gyre Adventor]
\definefontfamily     [docuf] [tt] [Latin Modern Mono] [features=none]

\definefallbackfamily [docuf] [mm] [Tex Gyre Adventor] [preset=math:uppercasenormal]%,scale=.6]
\definefallbackfamily [docuf] [mm] [Tex Gyre Adventor] [preset=math:uppercasebold]%,scale=.6]
\definefallbackfamily [docuf] [mm] [Tex Gyre Adventor] [preset=math:uppercaseitalic]%,scale=.6]
\definefallbackfamily [docuf] [mm] [Tex Gyre Adventor] [preset=math:uppercasebolditalic]%,scale=.6]

\definefallbackfamily [docuf] [mm] [Tex Gyre Adventor] [preset=math:lowercasenormal]%,scale=.6]
\definefallbackfamily [docuf] [mm] [Tex Gyre Adventor] [preset=math:lowercasebold]%,scale=.6]
\definefallbackfamily [docuf] [mm] [Tex Gyre Adventor] [preset=math:lowercaseitalic]%,scale=.6]
\definefallbackfamily [docuf] [mm] [Tex Gyre Adventor] [preset=math:lowercasebolditalic]%,scale=.6]

\definefallbackfamily [docuf] [mm] [Tex Gyre Adventor] [preset=math:digitsnormal]%,scale=.6]
\definefallbackfamily [docuf] [mm] [Tex Gyre Adventor] [preset=math:digitsbold]%,scale=.6]
\definefallbackfamily [docuf] [mm] [Tex Gyre Adventor] [preset=math:digitsitalic]%,scale=.6]
\definefallbackfamily [docuf] [mm] [Tex Gyre Adventor] [preset=math:digitsbolditalic]%,scale=.6]

\definefontfamily     [docuf] [mm] [TeX Gyre Pagella Math]

\setupbodyfont[docuf,24pt]

1. If I want to use a scale factor is it possible the give the scale factor by using
the preset a,b,c,d,x,xx values? Or I must specify the scale factors as numbers?

2. Scaling occurs compared to which font in the definition list?

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?

4. If I write a paragraph with different font size, how can I scale the embedded math
too automatically? For example if I write

\placefigure[here]{Figure title}{\ss\tfxx
A B C D \math{E~F~G~}}

A B C D is typeset with small fonts but E F G not; it will be huge compared to
A B C D. I can't manually scale the math part because it is inserted here
by chemfig module and I can't redefine how it typesets fonts.

Thanks 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  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

  reply	other threads:[~2016-10-14 14:56 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 [this message]
2016-10-16 18:23     ` Wolfgang Schuster
2016-10-20 14:59       ` Csikos Bela
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.20161014165628.26475.1@fmxmldata06.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).