ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Joas Kinouani" <joasyannick@gmail.com>
To: <ntg-context@ntg.nl>
Subject: From XeLaTeX's Unicode-math to ConTeXt's typescript
Date: Fri, 12 Jul 2013 08:48:47 +0200	[thread overview]
Message-ID: <000001ce7ecb$dd727610$98576230$@gmail.com> (raw)


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

             reply	other threads:[~2013-07-12  6:48 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-07-12  6:48 Joas Kinouani [this message]
2013-07-13 10:30 ` Wolfgang Schuster

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='000001ce7ecb$dd727610$98576230$@gmail.com' \
    --to=joasyannick@gmail.com \
    --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).