ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Mojca Miklavec <mojca.miklavec.lists@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Math setup with Times (Termes)
Date: Tue, 10 Nov 2009 19:10:31 +0100	[thread overview]
Message-ID: <6faad9f00911101010p13c88d9dv2022727b0ec7bd9@mail.gmail.com> (raw)
In-Reply-To: <4AF73161.9000102@gmail.com>

2009/11/8 Vyatcheslav Yatskovsky:
>
> The problem is with math font setup. If I use default math font, two
> problems arise:
>
> 1) Greek letters are slanted, while they supposed by our standards to be
> straight.

Something like \mr could work in mkiv, but I don't think that it does.
(But should be easy to fix.)

> 2) Cyrillic does not work in math,

How do you expect it to work? Just return italic cyrilic letters?
Maybe Taco knows it better - do "any letters from the font" need to
have extra parameters to be usable with math? You can of course use
   $\text{\it some cyrilic here}$
at any time.

> while some indexes are in Ukrainian.
>
> I also try to setup Times New Roman (from Windows) to replace default math
> font. This would be perfect solution for me, but I've lost completely.
>
> For my current point, I found that my TimesNR typescript behaves just like
> Gyre-Termes, so you can experiment on the latter (without need of Windows).
> This is my minimal example (see attachment also):
>
> \usetypescript[termes]\setupbodyfont[termes, 14pt]
> \starttext
> $this this math text$
> \stoptext
>
> The main problem is that Latin letters in math are not slanted at all! I
> only found that some tricky conversion is done by original-youngryu-tx.map ,

I don't if this file is used in mkiv, but then I'm not sure how these
tfm files work without map files at all.

> but it's far beyond my understanding to fix something in it.

There is one line that definitely needs to be fixed, but I have no idea how.

Here:

mathematics.make_font ( "tx-math", {
    { name = "texgyretermes-regular.otf", features = "virtualmath",
main = true },
    { name = "rtxr.tfm", vector = "tex-mr" } ,

this line:
    { name = "rtxmi.tfm", vector = "tex-mi", skewchar=0x7F },
might need to become:
    { name = "txmi.tfm", vector = "tex-mi", skewchar=0x7F },

    { name = "txsy.tfm", vector = "tex-sy", skewchar=0x30, parameters = true } ,
    { name = "txex.tfm", vector = "tex-ex", extension = true } ,
    { name = "txsya.tfm", vector = "tex-ma" },
    { name = "txsyb.tfm", vector = "tex-mb" },
} )

But if I change that then nothing happens. Maybe the reason is that
MKIV does not read map files and consequently has no idea what to do
with txmi(.tfm) that comes from rtxmi.pfb, or at least one would need
to rewrite "tex-mi" for times.

I don't know yet how to do it (I don't know how luatex reads in pfb
files with characters with non-standard names). This support is
definitely missing from the ConTeXt core and needs both a tiny help
from Hans' hands and someone writing a vector (or some other trick to
make the original tfm file work).

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


  parent reply	other threads:[~2009-11-10 18:10 UTC|newest]

Thread overview: 50+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.329.1257669716.22155.ntg-context@ntg.nl>
2009-11-08 21:00 ` Vyatcheslav Yatskovsky
2009-11-08 21:18   ` Wolfgang Schuster
2009-11-09  0:14   ` Aditya Mahajan
2009-11-10 18:10   ` Mojca Miklavec [this message]
2009-11-10 20:12     ` Mojca Miklavec
2009-11-11  8:38       ` Hans Hagen
2009-11-11 15:01         ` Mojca Miklavec
2009-11-11 15:06           ` luigi scarso
2009-11-11 20:50             ` Martin Schröder
2009-11-11 15:21           ` Aditya Mahajan
2009-11-11 15:36             ` Mojca Miklavec
2009-11-11 15:54               ` Hans Hagen
2009-11-11 16:02                 ` Mojca Miklavec
2009-11-11 16:06                   ` Wolfgang Schuster
2009-11-11 16:37                     ` Mojca Miklavec
2009-11-11 16:57                       ` Wolfgang Schuster
2009-11-12 11:25                         ` Mojca Miklavec
2009-11-12 11:41                           ` Hans Hagen
2009-11-12 12:42                             ` Mojca Miklavec
2009-11-12 12:44                               ` Mojca Miklavec
2009-11-12 13:45                                 ` Mojca Miklavec
2009-11-12 14:56                                   ` Wolfgang Schuster
     [not found]                                     ` <6faad9f00911120702w1f3eadb1if91bbd65a594a6c1@mail.gmail.com>
     [not found]                                       ` <4AFC25CB.90906@gmail.com>
2009-11-12 15:19                                         ` Mojca Miklavec
2009-11-12  9:42                       ` Hans Hagen
2009-11-12 11:25                         ` Mojca Miklavec
2009-11-12 11:38                           ` Hans Hagen
2009-11-11 16:13               ` Hans Hagen
2009-11-11 16:39                 ` Bernhard Rosensteiner
2009-11-11 17:26                 ` definereferenceformat problem Bernhard Rosensteiner
2009-11-25  1:50                   ` Chen Shen
2009-11-28 14:51                     ` Chen Shen
2009-11-28 16:36                   ` Peter Münster
2009-11-28 17:04                     ` Chen Shen
2009-11-11 15:37           ` Math setup with Times (Termes) Hans Hagen
2009-11-11 15:58             ` Mojca Miklavec
2009-11-08 21:17 ` Itemize withing description Vyatcheslav Yatskovsky
2009-11-09  0:08   ` Aditya Mahajan
     [not found] <mailman.343.1257760041.22155.ntg-context@ntg.nl>
2009-11-09 11:43 ` Math setup with Times (Termes) Vyatcheslav Yatskovsky
     [not found] <mailman.384.1257957327.22155.ntg-context@ntg.nl>
2009-11-12  1:16 ` Vyatcheslav Yatskovsky
2009-11-12  1:23 ` Vyatcheslav Yatskovsky
     [not found] <mailman.396.1258033393.22155.ntg-context@ntg.nl>
2009-11-12 14:19 ` Vyatcheslav Yatskovsky
2009-11-12 14:38   ` Mojca Miklavec
2009-11-12 16:52     ` Hans Hagen
2009-11-12 14:25 ` Vyatcheslav Yatskovsky
2009-11-12 14:41   ` Mojca Miklavec
2009-11-12 15:02 ` Vyatcheslav Yatskovsky
2009-11-12 15:07   ` Taco Hoekwater
     [not found] <mailman.403.1258044997.22155.ntg-context@ntg.nl>
2009-11-12 17:05 ` Vyatcheslav Yatskovsky
2009-11-12 17:34   ` Mojca Miklavec
     [not found] <mailman.407.1258061400.22155.ntg-context@ntg.nl>
2009-11-12 23:40 ` Vyatcheslav Yatskovsky

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=6faad9f00911101010p13c88d9dv2022727b0ec7bd9@mail.gmail.com \
    --to=mojca.miklavec.lists@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).