* From XeLaTeX's Unicode-math to ConTeXt's typescript
@ 2013-07-12 6:48 Joas Kinouani
2013-07-13 10:30 ` Wolfgang Schuster
0 siblings, 1 reply; 2+ messages in thread
From: Joas Kinouani @ 2013-07-12 6:48 UTC (permalink / raw)
To: ntg-context
[-- Attachment #1.1: Type: text/plain, Size: 2519 bytes --]
Hello everyone,
I search a way to translate the following XeLaTeX's declarations (based on
the unicode-math package):
\setmainfont{Linux Libertine G}
\setsansfont[Scale=MatchLowercase]{Liberation Sans}
\setmonofont[Scale=MatchLowercase,
ItalicFont=lmmono10-italic.otf,
BoldFont=lmmonolt10-bold.otf,
BoldItalicFont=lmmonolt10-boldoblique.otf,
SmallCapsFont=lmmonocaps10-regular]{lmmono10-regular.otf}
\setmathfont[Scale=MatchLowercase]{TeX Gyre Termes Math}
\setmathfont[Scale=MatchLowercase, range=\mathup]{linlibertine_r_g.ttf}
\setmathfont[Scale=MatchLowercase, range=\mathbfup]{linlibertine_rz_g.ttf}
\setmathfont[Scale=MatchLowercase,
range=\mathsfup]{liberationsans-regular.ttf}
\setmathfont[Scale=MatchLowercase,
range=\mathsfit]{liberationsans-italic.ttf}
\setmathfont[Scale=MatchLowercase,
range=\mathbfsfup]{liberationsans-bold.ttf}
\setmathfont[Scale=MatchLowercase,
range=\mathbfsfit]{liberationsans-bolditalic.ttf}
\setmathfont[Scale=MatchLowercase, range=\mathtt]{lmmono10-italic.otf}
\setmathfont[Scale=MatchLowercase, range=\mathscr]{asana-math.otf}
into a ConTeXt's typescript. I succeed to set the serif, sansserif and mono
fonts; but I need help for the math settings.
\startenvironment liberty
\starttypescript [liberty]
\definefontsynonym [Serif] [file:LinLibertine_R_G]
\definefontsynonym [SerifCaps] [Serif] [features=smallcaps]
\definefontsynonym [SerifItalic] [file:LinLibertine_RI_G]
\definefontsynonym [SerifSlanted] [SerifItalic]
\definefontsynonym [SerifBold] [file:LinLibertine_RZ_G]
\definefontsynonym [SerifBoldItalic] [file:LinLibertine_RZI_G]
\definefontsynonym [SerifBoldSlanted] [SerifBoldItalic]
\definefontsynonym [Sans] [file:LiberationSans-Regular]
\definefontsynonym [SansCaps] [Sans] [features=smallcaps]
\definefontsynonym [SansItalic] [file:LiberationSans-Italic]
\definefontsynonym [SansSlanted] [SansItalic]
\definefontsynonym [SansBold] [file:LiberationSans-Bold]
\definefontsynonym [SansBoldItalic] [file:LiberationSans-BoldItalic]
\definefontsynonym [SansBoldSlanted] [SansBoldItalic]
\definetypeface [liberty] [rm] [serif] [liberty] [default]
\definetypeface [liberty] [ss] [sans] [liberty] [default] [rscale=0.816]
\definetypeface [liberty] [tt] [mono] [modern] [default]
\stoptypescript
\setupbodyfont[liberty, serif, 10pt]
\stopenvironment
Thanks in advance.
Joas Kinouani
PS: Does someone know what is the equivalent of Scale=MatchLowercase?
[-- Attachment #1.2: Type: text/html, Size: 21473 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] 2+ messages in thread
* Re: From XeLaTeX's Unicode-math to ConTeXt's typescript
2013-07-12 6:48 From XeLaTeX's Unicode-math to ConTeXt's typescript Joas Kinouani
@ 2013-07-13 10:30 ` Wolfgang Schuster
0 siblings, 0 replies; 2+ messages in thread
From: Wolfgang Schuster @ 2013-07-13 10:30 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 232 bytes --]
Am 12.07.2013 um 08:48 schrieb Joas Kinouani <joasyannick@gmail.com>:
> PS: Does someone know what is the equivalent of Scale=MatchLowercase?
You can use “rscale=auto” in the last argument of \definetypeface.
Wolfgang
[-- Attachment #1.2: Type: text/html, Size: 1607 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] 2+ messages in thread
end of thread, other threads:[~2013-07-13 10:30 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-07-12 6:48 From XeLaTeX's Unicode-math to ConTeXt's typescript Joas Kinouani
2013-07-13 10:30 ` Wolfgang Schuster
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).