ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Paul Menzel <paulepanter@users.sourceforge.net>
To: ntg-context@ntg.nl
Subject: Re:  ∫ and $\intop$ is not displayed correctly compared to $\int$.
Date: Sun, 11 Dec 2011 12:44:24 +0100	[thread overview]
Message-ID: <1323603864.8919.74.camel@mattotaupa> (raw)
In-Reply-To: <BANLkTi=biHBqM46LXKMAVjA9X24de7s8gA@mail.gmail.com>


[-- Attachment #1.1.1: Type: text/plain, Size: 4047 bytes --]

[My former message was not delivered and awaits moderator approval
because it is bigger than 64 KB. I removed the PDF output using XITS.]

Am Sonntag, den 12.06.2011, 23:52 +0200 schrieb Mojca Miklavec:
> On Sun, Jun 12, 2011 at 15:06, Paul Menzel wrote:

> > ConTeXt  ver: 2011.05.18 22:26 MKIV  fmt: 2011.5.27  int: english/english
> >
> > the following example produces different integral signs.
> >
> > --- minimal example ---
> > \starttext
> > Using the NEO keyboard layout several math symbols can be inserted directly like $∫$ or $∩$.
> >
> > But $\int$ and $∫$ look differently.
> > \stoptext
> > --- minimal example ---

I just wanted to bring this topic up again since it is still
reproducible with ConTeXt MKIV 2011.11.25 21:29.

> However the character ∫ looks the same as \intop and ∫\nolimits looks
> the same as \int.

Yes, it does.

> As to why \intop looks so weird, I have no idea. If you add
>     \usetypescript[modern-base] \setupbodyfont[modern]
> it will work ok. Cambria Math also results in two different heights of
> the operator depending on whether limits are there or not. It might be
> a bug somewhere in virtual font setup of LM. In pdfTeX \int and \intop
> operators are positioned equally.

Using XITS it does also work although in display math mode(?) ∫ and
$\intop$ are not scaled.

I use the following example.

        \setupbodyfont[xits]
        
        \setupinteraction[state=start]
        
        \useurl[context2008][http://wiki.contextgarden.net/Context_2008.04.10][][\ConTeXt\ version 4/10/2008]
        
        \starttext
        Using the NEO keyboard layout several math symbols can be inserted directly like $∫$ or $∩$.
        
        But $\int$ by \type{\int} and $∫$ by UTF-8 character look differently. As Mojca pointed out \type{\intop} is also not type set correctly: $\intop$. This suggests that it is a problem with the Latin Modern font. \type{\intop} was added in \from[context2008].
        
        \blank
        
        • Using UTF-8 character:
        \startformula
          ∫_ℝ dx = ∞
        \stopformula
        
        • Using UTF-8 character with \type{\nolimits}:
        \startformula
          ∫\nolimits_ℝ dx = ∞
        \stopformula
        
        • Using \type{\intop}:
        \startformula
          \intop_ℝ dx = ∞
        \stopformula
        
        • Using \type{\intop\nolimits} does not work.
        \startformula
          \intop\nolimits_ℝ dx = ∞
        \stopformula
        
        • Using \type{\int}:
        \startformula
          \int_ℝ dx = ∞
        \stopformula
        
        • Using \type{\int_\limits_a}:
        \startformula
          \int\limits_a dx = ∞
        \stopformula
        
        \blank
        \CONTEXT\ \contextmark\ \contextversion
        \stoptext

Is there a chance to fix `\intop` in Latin Modern (and XITS).

Would it be a good idea to map ∫ to $\int$ instead of `\intop`? Do
people use `\intop` a lot?


Thanks,

Paul


PS: Although this seems font related, some more information just in
case. ∫ has the Unicode number(?) #222B [1] and `xev` returns the
following.

        KeyPress event, serial 33, synthetic NO, window 0x4c00001,
            root 0x102, subw 0x0, time 340829925, (244,21), root:(256,134),
            state 0x4000, keycode 39 (keysym 0x8bf, integral), same_screen YES,
            XLookupString gives 3 bytes: (e2 88 ab) "∫"
            XmbLookupString gives 3 bytes: (e2 88 ab) "∫"
            XFilterEvent returns: False
        
        KeyRelease event, serial 33, synthetic NO, window 0x4c00001,
            root 0x102, subw 0x0, time 340829989, (244,21), root:(256,134),
            state 0x4000, keycode 39 (keysym 0x8bf, integral), same_screen YES,
            XLookupString gives 3 bytes: (e2 88 ab) "∫"
            XFilterEvent returns: False

[1] http://unicode.org/charts/nameslist/n_2200.html


[-- Attachment #1.1.2: int.tex --]
[-- Type: text/x-tex, Size: 1156 bytes --]

\setupbodyfont[xits]

\setupinteraction[state=start]

\useurl[context2008][http://wiki.contextgarden.net/Context_2008.04.10][][\ConTeXt\ version 4/10/2008]

\starttext
Using the NEO keyboard layout several math symbols can be inserted directly like $∫$ or $∩$.

But $\int$ by \type{\int} and $∫$ by UTF-8 character look differently. As Mojca pointed out \type{\intop} is also not type set correctly: $\intop$. This suggests that it is a problem with the Latin Modern font. \type{\intop} was added in \from[context2008].

\blank

• Using UTF-8 character:
\startformula
  ∫_ℝ dx = ∞
\stopformula

• Using UTF-8 character with \type{\nolimits}:
\startformula
  ∫\nolimits_ℝ dx = ∞
\stopformula

• Using \type{\intop}:
\startformula
  \intop_ℝ dx = ∞
\stopformula

• Using \type{\intop\nolimits} does not work.
\startformula
  \intop\nolimits_ℝ dx = ∞
\stopformula

• Using \type{\int}:
\startformula
  \int_ℝ dx = ∞
\stopformula

• Using \type{\int_\limits_a}:
\startformula
  \int\limits_a dx = ∞
\stopformula

\blank
\CONTEXT\ \contextmark\ \contextversion
\stoptext

[-- Attachment #1.1.3: int_latin-modern.pdf --]
[-- Type: application/pdf, Size: 32896 bytes --]

[-- Attachment #1.2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 198 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:[~2011-12-11 11:44 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-06-12 13:06  " Paul Menzel
2011-06-12 21:52 ` Mojca Miklavec
2011-12-11 11:44   ` Paul Menzel [this message]
2011-12-11 12:28     ` ∫ and $\intop$ " Philipp A.
2011-12-11 12:54       ` Paul Menzel
2011-12-11 14:02       ` Aditya Mahajan
2011-12-11 16:05         ` Philipp A.

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=1323603864.8919.74.camel@mattotaupa \
    --to=paulepanter@users.sourceforge.net \
    --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).