ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* [NTG-context] Strange error at lxml-mms.lmt:749
@ 2024-02-25 20:24 Andres Conrado Montoya
  2024-02-25 20:38 ` [NTG-context] " Andres Conrado Montoya
  0 siblings, 1 reply; 6+ messages in thread
From: Andres Conrado Montoya @ 2024-02-25 20:24 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 2040 bytes --]

I keep bumping into this error, I have no idea what may be causing it, in a
statistics book with lots of math:

registered function call [250]:
...mtx/tex/texmf-context/tex/context/base/mkxl/lxml-mms.lmt:749: attempt to
index a nil value (local 'a2')

I have checked everything. I have tried commenting out many things and the
weird part is that it fails in a simple math expression: \math{E_{i}j}.
Even a simple $y$ or \math{a+b} will trigger the error. However, this same
file Im working on has many formulas before that, those work fine. I
changed all the $...$ to \math{...} just in case, but with no success.

Already tried remaking, regenerating, updating the distribution.

Do you have any ideas to work this out? I don't know how to provide a MWE
for this because it's a very big project (statistics book).

I have tried 2 versions, the system-wide one, just upgraded:
mtx-context     | ConTeXt Process Management 1.06
mtx-context     | current version: 2024.02.22 18:31

And a less recent version, attached to the project:
mtx-context     | ConTeXt Process Management 1.05
mtx-context     | current version: 2024.02.14 13:38


Any help will be much appreciated.

-- 
Andrés Conrado Montoya
Andi Kú
andresconrado@gmail.com
http://sesentaycuatro.com
http://messier87.com
http://chiquitico.org
----------------------------------------
Los fines no justifican los medios, porque la medida verdadera de nuestro
carácter está dada por los medios que estamos dispuestos a utilizar, no por
los fines que proclamamos.
----------------------------------------

“You develop an instant global consciousness, a people orientation, an
intense dissatisfaction with the state of the world, and a compulsion to do
something about it. From out there on the moon, international politics look
so petty. You want to grab a politician by the scruff of the neck and drag
him a quarter of a million miles out and say, ‘Look at that, you son of a
bitch.’” — Apollo 14 astronaut Edgar Mitchell

[-- Attachment #1.2: Type: text/html, Size: 2768 bytes --]

[-- Attachment #2: Type: text/plain, Size: 511 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 6+ messages in thread
* [NTG-context] Re: Strange error at lxml-mms.lmt:749
@ 2024-02-25 23:16 Andres Conrado Montoya
  0 siblings, 0 replies; 6+ messages in thread
From: Andres Conrado Montoya @ 2024-02-25 23:16 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 1759 bytes --]

Thank you for your interest, Aditya. The error was kindly fixed by Hans
introducing the following fix at line 993 in
tex/texmf-context/tex/context/base/mkxl/back-exp-imp-mth.lmt:

function extras.msubsup(di,element,n,fulltag)
         local data = di.data
         local nuc = found(data)
         local sup = found(data,"sup")
         local sub = found(data,"sub")
         data[1] = nuc or dummy_nucleus
         data[2] = sub or dummy_nucleus
         data[3] = sup or dummy_nucleus
         data.__i__ = 3
         local sp = specifications[di.fulltag]
         if attributes then
             attributes.mathsupindex = sp.supshifted
             attributes.mathsubindex = sp.subshifted
         else
             di.attributes = {
                 mathsupindex = sp.supshifted,
                 mathsubindex = sp.subshifted,
             }
         end
     end

This solved the issue.

-- 
Andrés Conrado Montoya
Andi Kú
andresconrado@gmail.com
http://sesentaycuatro.com
http://messier87.com
http://chiquitico.org
----------------------------------------
Los fines no justifican los medios, porque la medida verdadera de nuestro
carácter está dada por los medios que estamos dispuestos a utilizar, no por
los fines que proclamamos.
----------------------------------------

“You develop an instant global consciousness, a people orientation, an
intense dissatisfaction with the state of the world, and a compulsion to do
something about it. From out there on the moon, international politics look
so petty. You want to grab a politician by the scruff of the neck and drag
him a quarter of a million miles out and say, ‘Look at that, you son of a
bitch.’” — Apollo 14 astronaut Edgar Mitchell

[-- Attachment #1.2: Type: text/html, Size: 2473 bytes --]

[-- Attachment #2: Type: text/plain, Size: 511 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

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

end of thread, other threads:[~2024-02-25 23:21 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-02-25 20:24 [NTG-context] Strange error at lxml-mms.lmt:749 Andres Conrado Montoya
2024-02-25 20:38 ` [NTG-context] " Andres Conrado Montoya
2024-02-25 20:58   ` Andres Conrado Montoya
2024-02-25 21:36     ` Aditya Mahajan
     [not found]     ` <CAGhDZhAowVSgrk3Qe2AU1Vd5Cyp+Zntd4Xr4HMge-e7UG0GCgA@mail.gmail.com>
2024-02-25 21:49       ` Andres Conrado Montoya
2024-02-25 23:16 Andres Conrado Montoya

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