* Sans serif for all math in a document.-
@ 2016-06-06 18:20 Freddy Omar López Quintero
2016-06-06 20:03 ` Hans Hagen
2016-06-06 20:26 ` Hans Åberg
0 siblings, 2 replies; 8+ messages in thread
From: Freddy Omar López Quintero @ 2016-06-06 18:20 UTC (permalink / raw)
To: ntg-context
[-- Attachment #1.1: Type: text/plain, Size: 685 bytes --]
Hello,
I'm trying to make a document that need fill the requirement to have all
fonts sans serifed; but, with the following minimal code, just work for the
normal text and doesn't for the math portion.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\starttext
\usemodule[simplefonts]% [size=11pt]
\setmainfont[Latin Modern Sans]
\setmathfont[Latin Modern Sans]
\startsection[title={Testing ConTeXt}]
This is my {\em first} ConTeXt document.
\startformula
Y=X\beta+\varepsilon
\stopformula
\stopsection
\stoptext
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Could you help me?
Thanks in advance!
--
«...my role is to be on the bottom of things.»
Donald Knuth
[-- Attachment #1.2: Type: text/html, Size: 3827 bytes --]
[-- Attachment #2: test2.pdf --]
[-- Type: application/pdf, Size: 9880 bytes --]
[-- Attachment #3: Type: text/plain, Size: 485 bytes --]
___________________________________________________________________________________
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://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Sans serif for all math in a document.-
2016-06-06 18:20 Sans serif for all math in a document.- Freddy Omar López Quintero
@ 2016-06-06 20:03 ` Hans Hagen
2016-06-06 21:03 ` Wolfgang Schuster
2016-06-06 20:26 ` Hans Åberg
1 sibling, 1 reply; 8+ messages in thread
From: Hans Hagen @ 2016-06-06 20:03 UTC (permalink / raw)
To: mailing list for ConTeXt users
On 6/6/2016 8:20 PM, Freddy Omar López Quintero wrote:
> Hello,
>
> I'm trying to make a document that need fill the requirement to have all
> fonts sans serifed; but, with the following minimal code, just work for
> the normal text and doesn't for the math portion.
>
> %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
> \starttext
> \usemodule[simplefonts]% [size=11pt]
> \setmainfont[Latin Modern Sans]
> \setmathfont[Latin Modern Sans]
> \startsection[title={Testing ConTeXt}]
>
> This is my {\em first} ConTeXt document.
>
> \startformula
> Y=X\beta+\varepsilon
> \stopformula
>
> \stopsection
> \stoptext
> %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
>
> Could you help me?
There is support for hvmath (a virtual unicode font is constructed then)
but you need to get those files somewhere.
An alternative is to roll out your own virtual math font (take a look at
the *.lfg files that have math in their name).
On the agenda for the tex gyre project is a serif math font (lato or so)
but that will take a while (also awaits funding).
Hans
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | www.pragma-ade.com | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Sans serif for all math in a document.-
2016-06-06 18:20 Sans serif for all math in a document.- Freddy Omar López Quintero
2016-06-06 20:03 ` Hans Hagen
@ 2016-06-06 20:26 ` Hans Åberg
2016-06-06 20:48 ` Freddy Omar López Quintero
1 sibling, 1 reply; 8+ messages in thread
From: Hans Åberg @ 2016-06-06 20:26 UTC (permalink / raw)
To: mailing list for ConTeXt users; +Cc: Freddy Omar López Quintero
> On 6 Jun 2016, at 20:20, Freddy Omar López Quintero <freddy.lopez.quintero@gmail.com> wrote:
> I'm trying to make a document that need fill the requirement to have all fonts sans serifed; but, with the following minimal code, just work for the normal text and doesn't for the math portion.
The STIX fonts have them, except for non-bold Greek it seems, but they must be accessed directly, either by typing directly in UTF-8, or somehow redefine them.
\setupbodyfont[xits,10pt]
\startformula
\startalign
\NC Y \NC= X\beta+\varepsilon \NR
\NC 𝘠 \NC= 𝘟𝝱+ 𝝴 \NR
\stopalign
\stopformula
___________________________________________________________________________________
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://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Sans serif for all math in a document.-
2016-06-06 20:26 ` Hans Åberg
@ 2016-06-06 20:48 ` Freddy Omar López Quintero
2016-06-06 21:10 ` Hans Åberg
0 siblings, 1 reply; 8+ messages in thread
From: Freddy Omar López Quintero @ 2016-06-06 20:48 UTC (permalink / raw)
To: Hans Åberg; +Cc: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 854 bytes --]
Thanks for your tips!!
On Mon, Jun 6, 2016 at 4:26 PM, Hans Åberg <haberg-1@telia.com> wrote:
>
> > On 6 Jun 2016, at 20:20, Freddy Omar López Quintero <
> freddy.lopez.quintero@gmail.com> wrote:
>
> > I'm trying to make a document that need fill the requirement to have all
> fonts sans serifed; but, with the following minimal code, just work for the
> normal text and doesn't for the math portion.
>
> The STIX fonts have them, except for non-bold Greek it seems, but they
> must be accessed directly, either by typing directly in UTF-8, or somehow
> redefine them.
>
> \setupbodyfont[xits,10pt]
>
> \startformula
> \startalign
> \NC Y \NC= X\beta+\varepsilon \NR
> \NC 𝘠 \NC= 𝘟𝝱+ 𝝴 \NR
> \stopalign
> \stopformula
>
>
>
--
«...my role is to be on the bottom of things.»
Donald Knuth
[-- Attachment #1.2: Type: text/html, Size: 2144 bytes --]
[-- Attachment #2: Type: text/plain, Size: 485 bytes --]
___________________________________________________________________________________
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://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Sans serif for all math in a document.-
2016-06-06 20:03 ` Hans Hagen
@ 2016-06-06 21:03 ` Wolfgang Schuster
0 siblings, 0 replies; 8+ messages in thread
From: Wolfgang Schuster @ 2016-06-06 21:03 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 1878 bytes --]
> Hans Hagen <mailto:pragma@wxs.nl>
> 6. Juni 2016 um 22:03
>
>
> There is support for hvmath (a virtual unicode font is constructed
> then) but you need to get those files somewhere.
>
> An alternative is to roll out your own virtual math font (take a look
> at the *.lfg files that have math in their name).
>
> On the agenda for the tex gyre project is a serif math font (lato or
> so) but that will take a while (also awaits funding).
The font fallback mechanism is another alternative but one shouldn’t
expect too much because a real sans serif math is necessary to get
larger operators.
\definefontfamily [mainface] [ss] [Latin Modern Sans]
\definefallbackfamily [mainface] [mm] [Latin Modern Sans]
[preset=math:digitsnormal]
\definefallbackfamily [mainface] [mm] [Latin Modern Sans]
[preset=math:digitsbold]
\definefallbackfamily [mainface] [mm] [Latin Modern Sans]
[preset=math:uppercasenormal]
\definefallbackfamily [mainface] [mm] [Latin Modern Sans]
[preset=math:uppercaseitalic]
\definefallbackfamily [mainface] [mm] [Latin Modern Sans]
[preset=math:uppercasebold]
\definefallbackfamily [mainface] [mm] [Latin Modern Sans]
[preset=math:uppercasebolditalic]
\definefallbackfamily [mainface] [mm] [Latin Modern Sans]
[preset=math:lowercasenormal]
\definefallbackfamily [mainface] [mm] [Latin Modern Sans]
[preset=math:lowercaseitalic]
\definefallbackfamily [mainface] [mm] [Latin Modern Sans]
[preset=math:lowercasebold]
\definefallbackfamily [mainface] [mm] [Latin Modern Sans]
[preset=math:lowercasebolditalic]
\definefontfamily [mainface] [mm] [Latin Modern Math]
\setupbodyfont[mainface]
\starttext
abcdefg ABCDEFG 123456
\startformula
{\tf abcdefg\,ABCDEFG} \quad abcdefg\,ABCDEFG \quad 123456
\quad {\bf 123456}
\stopformula
\stoptext
Wolfgang
[-- Attachment #1.2: Type: text/html, Size: 3015 bytes --]
[-- Attachment #2: Type: text/plain, Size: 485 bytes --]
___________________________________________________________________________________
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://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Sans serif for all math in a document.-
2016-06-06 20:48 ` Freddy Omar López Quintero
@ 2016-06-06 21:10 ` Hans Åberg
2016-06-06 22:05 ` Hans Hagen
0 siblings, 1 reply; 8+ messages in thread
From: Hans Åberg @ 2016-06-06 21:10 UTC (permalink / raw)
To: Freddy Omar López Quintero; +Cc: mailing list for ConTeXt users
> On 6 Jun 2016, at 22:48, Freddy Omar López Quintero <freddy.lopez.quintero@gmail.com> wrote:
>
> Thanks for your tips!!
You are welcome. Unicode has added math styles, which some fonts have, like STIX. Those not in the chart below have other positions, as they were added earlier.
http://www.unicode.org/charts/
http://www.unicode.org/charts/PDF/U1D400.pdf
___________________________________________________________________________________
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://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Sans serif for all math in a document.-
2016-06-06 21:10 ` Hans Åberg
@ 2016-06-06 22:05 ` Hans Hagen
2016-06-06 22:32 ` Hans Åberg
0 siblings, 1 reply; 8+ messages in thread
From: Hans Hagen @ 2016-06-06 22:05 UTC (permalink / raw)
To: mailing list for ConTeXt users, Freddy Omar López Quintero
On 6/6/2016 11:10 PM, Hans Åberg wrote:
>
>> On 6 Jun 2016, at 22:48, Freddy Omar López Quintero <freddy.lopez.quintero@gmail.com> wrote:
>>
>> Thanks for your tips!!
>
> You are welcome. Unicode has added math styles, which some fonts have, like STIX. Those not in the chart below have other positions, as they were added earlier.
>
> http://www.unicode.org/charts/
> http://www.unicode.org/charts/PDF/U1D400.pdf
they are not really styles but alphabets, where shapes have some meaning
in a domain
you can just enter the right coee points or you can switch to an
alphabet with (a combination of) commands
for complete sans support one needs more (also in order to distinguish
betwene sans alphabets and sans sans ones)
the same applies to bold .. they are bold alphabets + a few bold symbols
with special meaning
Hans
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | www.pragma-ade.com | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Sans serif for all math in a document.-
2016-06-06 22:05 ` Hans Hagen
@ 2016-06-06 22:32 ` Hans Åberg
0 siblings, 0 replies; 8+ messages in thread
From: Hans Åberg @ 2016-06-06 22:32 UTC (permalink / raw)
To: mailing list for ConTeXt users; +Cc: Freddy Omar López Quintero
> On 7 Jun 2016, at 00:05, Hans Hagen <pragma@wxs.nl> wrote:
>
> On 6/6/2016 11:10 PM, Hans Åberg wrote:
>> You are welcome. Unicode has added math styles, which some fonts have, like STIX. Those not in the chart below have other positions, as they were added earlier.
>>
>> http://www.unicode.org/charts/
>> http://www.unicode.org/charts/PDF/U1D400.pdf
>
> they are not really styles but alphabets, where shapes have some meaning in a domain
>
> you can just enter the right coee points or you can switch to an alphabet with (a combination of) commands
>
> for complete sans support one needs more (also in order to distinguish betwene sans alphabets and sans sans ones)
>
> the same applies to bold .. they are bold alphabets + a few bold symbols with special meaning
Those math semantic sanfs-serif styles were added because in some types of applied math, they are required, as in the standard I indicated in another thread. However, the OP did not indicate their use.
___________________________________________________________________________________
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://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2016-06-06 22:32 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-06-06 18:20 Sans serif for all math in a document.- Freddy Omar López Quintero
2016-06-06 20:03 ` Hans Hagen
2016-06-06 21:03 ` Wolfgang Schuster
2016-06-06 20:26 ` Hans Åberg
2016-06-06 20:48 ` Freddy Omar López Quintero
2016-06-06 21:10 ` Hans Åberg
2016-06-06 22:05 ` Hans Hagen
2016-06-06 22:32 ` Hans Åberg
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).