ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Some questions regarding math typesetting
@ 2019-12-06  8:24 TeXnician
  2019-12-06 13:59 ` Otared Kavian
  2019-12-06 13:59 ` Hans Hagen
  0 siblings, 2 replies; 4+ messages in thread
From: TeXnician @ 2019-12-06  8:24 UTC (permalink / raw)
  To: ntg-context

[-- Attachment #1: Type: text/plain, Size: 915 bytes --]

Dear list,

while doing some math typesetting, I have found the following features not
working in LMTX:

1. Non-displaystyle operators are simply not shown (try \sum or \lim in text or
   scriptstyle). This works in MkIV (and iirc in LMTX versions from before
   november).
2. \underbrace{x}_{y} stopped working. It produces an underbrace but the
   subscript is not centered below the brace. It will show up as right
   subscript. This works in MkIV.
3. \startformulas does not allow numbering formulas because the number will run
   into the next column. I have posted this at

https://tex.stackexchange.com/questions/518262/context-number-formulas-side-by-side
   and Henri Menke tested that it broke in 2017. Aditya Mahajan mentioned that
   it is a bug.

For the upper two cases: Is anything wrong with my LMTX installation or did I
miss some upgrade instructions for math in LMTX?

Many thanks for an answer.

[-- Attachment #2: mwe-math.tex --]
[-- Type: text/x-tex, Size: 594 bytes --]

\starttext
\section{One}
\startitemize
\item \type{\displaystyle}: $\displaystyle\sum\lim$
\item \type{\textstyle}: $\sum\lim$
\item \type{\scriptstyle}: $\scriptstyle\sum\lim$
\stopitemize

\section{Two}

$\underbrace{xyz}_{n}$

\section{Three}
also posted at https://tex.stackexchange.com/questions/518262/context-number-formulas-side-by-side

\placeformula
\startformulas
  \startformula
    \startalign[number=auto]
      \NC a \NC= b \NR
    \stopalign
  \stopformula
  \startformula
    \startalign[number=auto]
      \NC a \NC= b \NR
    \stopalign
  \stopformula
\stopformulas
\stoptext

[-- Attachment #3: mwe-math.pdf --]
[-- Type: application/pdf, Size: 16766 bytes --]

[-- Attachment #4: Type: text/plain, Size: 493 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Some questions regarding math typesetting
  2019-12-06  8:24 Some questions regarding math typesetting TeXnician
@ 2019-12-06 13:59 ` Otared Kavian
  2019-12-06 13:59 ` Hans Hagen
  1 sibling, 0 replies; 4+ messages in thread
From: Otared Kavian @ 2019-12-06 13:59 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hi,

Regarding the first two issues your are reporting on, your file typesets correctly with my installation of LMTX (version 2019.12.04 21:35). I get the three different sizes of \sum as expected, and the underbrace has $n$ under the middle of the brace.

The third issue is present, as you are saying in your message. But I don't know what you are trying to achieve with two \startalign...\stopalign in the same formula.

Best regards: OK

> On 6 Dec 2019, at 09:24, TeXnician <texnician@e.mail.de> wrote:
> 
> Dear list,
> 
> while doing some math typesetting, I have found the following features not
> working in LMTX:
> 
> 1. Non-displaystyle operators are simply not shown (try \sum or \lim in text or
>   scriptstyle). This works in MkIV (and iirc in LMTX versions from before
>   november).
> 2. \underbrace{x}_{y} stopped working. It produces an underbrace but the
>   subscript is not centered below the brace. It will show up as right
>   subscript. This works in MkIV.
> 3. \startformulas does not allow numbering formulas because the number will run
>   into the next column. I have posted this at
> 
> https://tex.stackexchange.com/questions/518262/context-number-formulas-side-by-side
>   and Henri Menke tested that it broke in 2017. Aditya Mahajan mentioned that
>   it is a bug.
> 
> For the upper two cases: Is anything wrong with my LMTX installation or did I
> miss some upgrade instructions for math in LMTX?
> 
> Many thanks for an answer.
> <mwe-math.tex><mwe-math.pdf>___________________________________________________________________________________
> 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://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki     : http://contextgarden.net
> ___________________________________________________________________________________

___________________________________________________________________________________
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Some questions regarding math typesetting
  2019-12-06  8:24 Some questions regarding math typesetting TeXnician
  2019-12-06 13:59 ` Otared Kavian
@ 2019-12-06 13:59 ` Hans Hagen
  2020-02-29 11:23   ` TeXnician
  1 sibling, 1 reply; 4+ messages in thread
From: Hans Hagen @ 2019-12-06 13:59 UTC (permalink / raw)
  To: mailing list for ConTeXt users, Aditya Mahajan

On 12/6/2019 9:24 AM, TeXnician wrote:
> Dear list,
> 
> while doing some math typesetting, I have found the following features not
> working in LMTX:
> 
> 1. Non-displaystyle operators are simply not shown (try \sum or \lim in text or
>     scriptstyle). This works in MkIV (and iirc in LMTX versions from before
>     november).

fixed in next beta (relates to some new stuff in the engine related to 
some border case but often happening math spacing)

> 2. \underbrace{x}_{y} stopped working. It produces an underbrace but the
>     subscript is not centered below the brace. It will show up as right
>     subscript. This works in MkIV.

idem

> 3. \startformulas does not allow numbering formulas because the number will run
>     into the next column. I have posted this at
> 
> https://tex.stackexchange.com/questions/518262/context-number-formulas-side-by-side
>     and Henri Menke tested that it broke in 2017. Aditya Mahajan mentioned that
>     it is a bug.

This one is for Aditya who knows more about these math alignments 
(needs) than I do.

Aditya: when we comment the \aligntab it's ok but i'm hesitant to do 
that patch ... so do you see bad consequences?

\def\math_alignment_NR_indeed[#1][#2]%
   {%\aligntab % HERE
    \dostoptagged % finish cell
    \strc_formulas_place_number_nested{#1}{#2}%
    \math_number_right_of_eqalign
    \global\settrue\c_math_eqalign_first
    \crcr
    \dostoptagged} % finish row

> For the upper two cases: Is anything wrong with my LMTX installation or did I
> miss some upgrade instructions for math in LMTX?
will be fixed

Hans

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
        tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Some questions regarding math typesetting
  2019-12-06 13:59 ` Hans Hagen
@ 2020-02-29 11:23   ` TeXnician
  0 siblings, 0 replies; 4+ messages in thread
From: TeXnician @ 2020-02-29 11:23 UTC (permalink / raw)
  To: ntg-context

Bump

On 06.12.19 14:59, Hans Hagen wrote:
> On 12/6/2019 9:24 AM, TeXnician wrote:
>> Dear list,
>>
>> while doing some math typesetting, I have found the following features not
>> working in LMTX:
>>
>> 3. \startformulas does not allow numbering formulas because the number will run
>>     into the next column. I have posted this at
>>
>> https://tex.stackexchange.com/questions/518262/context-number-formulas-side-by-side
>>
>>     and Henri Menke tested that it broke in 2017. Aditya Mahajan mentioned that
>>     it is a bug.
> 
> This one is for Aditya who knows more about these math alignments (needs) than I
> do.
> 
> Aditya: when we comment the \aligntab it's ok but i'm hesitant to do that patch
> ... so do you see bad consequences?
> 
> \def\math_alignment_NR_indeed[#1][#2]%
>   {%\aligntab % HERE
>    \dostoptagged % finish cell
>    \strc_formulas_place_number_nested{#1}{#2}%
>    \math_number_right_of_eqalign
>    \global\settrue\c_math_eqalign_first
>    \crcr
>    \dostoptagged} % finish row
> 
> Hans
___________________________________________________________________________________
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-02-29 11:23 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-12-06  8:24 Some questions regarding math typesetting TeXnician
2019-12-06 13:59 ` Otared Kavian
2019-12-06 13:59 ` Hans Hagen
2020-02-29 11:23   ` TeXnician

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).