[NTG-context] lmtx error: You can't use 'integer 340' in internal vertical mode

Hans Hagen j.hagen at xs4all.nl
Sat Feb 20 17:12:00 CET 2021

On 2/20/2021 4:42 PM, juh wrote:
> Am Fri, Feb 19, 2021 at 01:17:15PM +0100 schrieb Hans Hagen:
>> On 2/19/2021 11:46 AM, juh wrote:
>>> Am Fri, Feb 19, 2021 at 10:47:36AM +0100 schrieb Hans Hagen:
>>>> The question is: what happens in that file with modes?
>>> Nothing too fancy. I attached the files with mode definitions
>> works here so you need to make a mwe
> Maybe it was the option --arrange. When I unset it, lmtx compiles without
> problems and the result seems to be ok.
> I believe that I needed the options earlier because I position three pages on a a4 paper to get
> a folded flyer. The option seems to be obsolete now.
hm, but it still makes sense to know if something fails .. keep en eye on it

this integer message just means that some number reference ends up in 
the list while \the or something similar needs to be used; it's normally 
a signal of something wrong in a macro; in luamatatex we use cheap 
integers for modes, think of


and then \foo is not supposed to show up on its own (unless you use 
\the\foo and then you see 123) but is to be used in a context where a 
number is expected ... so, it's not something 'dramatic' happening here 
and at least we get some signal

now, when for instance we use a traditional cheap integer, like


we can use that as a number (\ifnum\foo ...) but when we put that one 
someplacem like

   test \foo test

tex will not complain but just typeset that number. Now, because these 
states normally are 0, 1 or 2, you actually would get a reference to a 
character but these are never in normal fonts so what you get then is 
some 'invisible' glyph node

depending on the place you can get an empty page, an empty line, messed 
up spacing, or just nothing if it in the text stream so if this is some 
old issue you'd see some side effect too (but no error message)

maybe that gives a clue (like a message about a font not having a 
character on the console or in the log)


                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
        tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl

More information about the ntg-context mailing list