ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Otared Kavian <otared@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: ssty feature is not activated for math
Date: Fri, 18 Jun 2010 22:33:56 +0200	[thread overview]
Message-ID: <C0EA7978-53DC-43A5-943B-4F942F498F8C@gmail.com> (raw)
In-Reply-To: <20100618154340.GA15154@khaled-laptop>

On 18 juin 2010, at 17:43, Khaled Hosny wrote:

> Compare the size of the primes with xits, cambria and modern, only the
> later is correct.

Hi Khaled, Hi Hans,

Thank you so much to bith of you and all other people involved in the project for giving us so rapidly the ability to use stix, and xits, fonts.
I tried for a week or so both stix and xits fonts on many of the documents I have in ConTeXt. I can say that as far as simple text is concerned everything works like a charm. However, regarding stix and xits there are some issues with math mode:

• With stix fonts, the integral sign doesn't scale up correctly, and the placement and maybe the sizes of the indices and derivative signs are incorrect.

• With xits fonts, the integral sign is correct but the placement of the indices and exponents are not always correct (see the example below). Also for some reasons the greek letters are not anymore italicized.

I have also a question regarding the use of calligraphic script style, like the font rsfs, which are contained in xits and stix: how can one use them?

With my best regards: OK
%%% file xits-sample.tex

\usetypescript[xits]

\let\|\Vert
\starttext
\startbuffer[math-sample]

Let $\alpha \in {\Bbb R}$. Then $z:={\rm e}^{{\rm i}\alpha} \in {\Bbb C}$ and $|z|=1$. Let ${\ss\bf H}$ be a Hilbert space. In the case where ${\ss\bf H} = H^1_{0}(\Omega)$, the classical Sobolev space on a smooth bounded domain $\Omega \subset {\Bbb R}^n$, we have the Poincaré inequality stating that
\startformula
\lambda_{1}\int_{\Omega}u(x)^2dx =: \lambda_{1}\| u\|^2 \leq \| \nabla u \|^2 := \int_{\Omega}|\nabla u(x)|^2dx.
\stopformula
In particular if $n=1$ and $\Omega = (0,1)$
\startformula
\pi^2\int_{0}^{1} u(x)^2dx \leq \int_{0}^1u'(x)^2dx. \qquad
\zeta(2)=\sum_{n=1}^\infty {1\over n^2 } ={\pi^2\over 6}
\stopformula
On the other hand $\int_{1}^{2} xdx=3/2$, while $\zeta(4)=\sum_{n=1}^\infty  n^{-4} = \pi^4/ 90$.

A function $f$ is said to have a derivative at $x_{0}\in {\Bbb R}$, if the limite
\startformula
\lim_{h \to 0}{f(x_{0}+h) - f(x_{0})\over h} 
\stopformula
exists. In this case the above limit is denoted $f'(x_{0})$. One can easily see that $(uf)'=u'f+uf'$ (and not $u'f'$\dots).
\startformula
\Delta u := \sum_{j=1}^n {\partial^2 u\over \partial x_{j}^2 } = \sum_{j=1}^n \partial_{jj}u.
\stopformula
\stopbuffer

This is a sample of maths with Latin Modern:
\getbuffer[math-sample]

\start
\switchtobodyfont[xits]
This is a sample of Xits fonts\dots{} Version 1.002. Note that the integral sign and the numbers 1 and 2 are not correctly placed in $\int_{1}^2$, and $\Omega$ in $\int_{\Omega}$ is a little bit far from the integral sign $\int$. Also the derivative sign in $f'$ is slightly misplaced (actually too high), but this may be accepted as it is.

\getbuffer[math-sample]
\stop

\stoptext
%%%% end file xits-sample.tex
___________________________________________________________________________________
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:[~2010-06-18 20:33 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-06-18 15:43 Khaled Hosny
2010-06-18 19:49 ` Hans Hagen
2010-06-18 20:33 ` Otared Kavian [this message]
2010-06-18 21:15   ` Khaled Hosny
2010-06-19  5:29     ` Otared Kavian
2010-06-19 13:01       ` Khaled Hosny
2010-06-18 22:19   ` Hans Hagen

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=C0EA7978-53DC-43A5-943B-4F942F498F8C@gmail.com \
    --to=otared@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).