From: <joasyannick@gmail.com>
To: "ntg-context@ntg.nl" <ntg-context@ntg.nl>
Subject: Baskervald ADF Virtual Math Fonts
Date: Sun, 13 Apr 2014 06:32:07 +0000 [thread overview]
Message-ID: <534a386f.c3acc20a.67e1.319f@mx.google.com> (raw)
[-- Attachment #1.1: Type: text/plain, Size: 3007 bytes --]
Hello,
I am going to solve my problem here:
http://tex.stackexchange.com/questions/123647/from-xelatexs-unicode-math-to-contexts-typescript
with virtual math fonts. I use Baskervald ADF instead of Libertine. I was pleased to see that the following files produced effects:
Extract from environment file fonts.tex: ------------------------------------------------
\startenvironment fonts
\starttypescript [math] [fonts]
\loadfontgoodies[baskervald-math]
\definefontsynonym[MathRoman][file:texgyrepagella-math@baskervald-math]
\stoptypescript
\definetypeface [fonts] [mm] [math] [fonts] [default] [features=default]
\setupbodyfont [fonts, 12pt]
\stopenvironment
-------------------------------------------------------------------------------------------------------
Extract from goodies file baskervald-math.lfg: ------------------------------------------
return {
name = "baskervald-math",
version = "1.00",
comment = "Goodies that give math support for the Baskervald ADF font.",
author = "author",
copyright = "copyrigth",
mathematics = {
virtuals = {
["baskervald-math"] = {
{ name = "texgyrepagella-math.otf", features = "virtualmath", main = true },
{ name = "BaskervaldADFStd.otf", features = "virtualmath", vector = "tex-mr-missing" } ,
{ name = "BaskervaldADFStd-Italic", vector = "tex-it" } ,
{ name = "BaskervaldADFStd-Bold.otf", vector = "tex-bf", skewchar=0x7F } ,
{ name = "BaskervaldADFStd-BoldItalic.otf", vector = "tex-bi" } ,
{ name = "corbel.ttf", vector = "tex-ss", optional=true },
{ name = "UbuntuMono-R.ttf", vector = "tex-tt", optional=true },
},
}
}
}
---------------------------------------------------------------------------------------------------------
Now I have two questions.
The first and most important question is: Where do I define my own vector mapping? Should I modify ConTeXt’s source code in the math-ttv.lua file? How do I define my own baskervald-math.lua and what should I write in it (for example for mapping Pagella’s upright mathematic glyphs to Baskervald’s upright glyphs)?
The second question is this. I have the following Project structure:
Book (root directory)
Book/book.tex (Project file)
Book/fonts.tex (environment file)
Book/Volume1 (subdirectory)
Book/Volume1/volume1.tex (product file)
Book/Volume1/Chapter1 (subsubdirectory)
Book/Volume1/Chapter1/chapter1.tex (component file)
I am forced to put the goodies file baskervald-math.lfg in Book/Volume1/Chapter1. When I put it in Book and compiled chapter1.tex separately ConTeXt failed to find it. What should I do to have the file baskervald-math.lfg in the Book directory and make ConTeXt find it when invoked from Book/Volume1/Chapter1.
Best regards,
Joas.
[-- Attachment #1.2: Type: text/html, Size: 6095 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
___________________________________________________________________________________
next reply other threads:[~2014-04-13 6:32 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-04-13 6:32 joasyannick [this message]
2014-04-13 15:52 ` Hans Hagen
2014-04-13 19:01 joasyannick
2014-04-13 19:47 ` Wolfgang Schuster
2014-04-17 18:17 joasyannick
2014-04-17 19:05 ` Aditya Mahajan
2014-04-18 6:20 joasyannick
2014-04-18 6:38 ` Mikael P. Sundqvist
2014-04-18 14:28 ` Wolfgang Schuster
2014-04-18 17:59 ` Mikael P. Sundqvist
2014-04-18 14:23 ` Wolfgang Schuster
2014-04-18 16:36 joasyannick
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=534a386f.c3acc20a.67e1.319f@mx.google.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).