Sans serif for all math in a document.-
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
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 -----------------------------------------------------------------
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
On 6 Jun 2016, at 20:20, Freddy Omar López Quintero
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
Thanks for your tips!!
On Mon, Jun 6, 2016 at 4:26 PM, Hans Åberg
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
On 6 Jun 2016, at 22:48, Freddy Omar López Quintero
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
On 6/6/2016 11:10 PM, Hans Åberg wrote:
On 6 Jun 2016, at 22:48, Freddy Omar López Quintero
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 -----------------------------------------------------------------
On 7 Jun 2016, at 00:05, Hans Hagen
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.
participants (4)
-
Freddy Omar López Quintero
-
Hans Hagen
-
Hans Åberg
-
Wolfgang Schuster