[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

\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: int_latin-modern.pdf
Description: Adobe PDF document

Attachment: signature.asc
Description: This is a digitally signed message part

___________________________________________________________________________________
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 via email to