![](https://secure.gravatar.com/avatar/d0e94fb08d4620cfbd2f8f59a7868637.jpg?s=120&d=mm&r=g)
Hi everybody, this is bizarre, but hear me out: a file that I have has a mixture of xml, TeX and Lua. It compiles cleanly, no problem, on macos and linux. I also have a little raspberry pi on which I have installed lmtx. The file compiles, BUT: it has one additional page. The first page of the document is empty and has the word "on" in the upper left hand corner of the text area. I have checked several times, it always comes out like this. Everything else is exactly the same - context version, file and environment files (everything under git, so really identical). The "on" does not appear if I just make a "hello world" document on the raspi. So my question is: how can I begin to explore where this word creeps in? I suspect it's something in the linux-aarch64 tree or some test for this architecture that is the culprit, but what would be a good way to trace it? All best Thomas
![](https://secure.gravatar.com/avatar/46562c7d27388490d62e8d7a5bc960dd.jpg?s=120&d=mm&r=g)
On 4/7/2024 7:08 PM, Thomas A. Schmitz wrote:
Hi everybody,
this is bizarre, but hear me out: a file that I have has a mixture of xml, TeX and Lua. It compiles cleanly, no problem, on macos and linux. I also have a little raspberry pi on which I have installed lmtx. The file compiles, BUT: it has one additional page. The first page of the document is empty and has the word "on" in the upper left hand corner of the text area. I have checked several times, it always comes out like this. Everything else is exactly the same - context version, file and environment files (everything under git, so really identical). The "on" does not appear if I just make a "hello world" document on the raspi. So my question is: how can I begin to explore where this word creeps in? I suspect it's something in the linux-aarch64 tree or some test for this architecture that is the culprit, but what would be a good way to trace it?
can you make a format with line 25 of context.mkxl uncommented to see if you get a message (not production, just a test) 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 -----------------------------------------------------------------
![](https://secure.gravatar.com/avatar/d0e94fb08d4620cfbd2f8f59a7868637.jpg?s=120&d=mm&r=g)
On 4/7/24 19:21, Hans Hagen wrote:
can you make a format with line 25 of context.mkxl uncommented to see if you get a message (not production, just a test)
Hans
That should give a message "some spurious input in line..." in the output or the log, right? No, did not see such a message. Thomas
![](https://secure.gravatar.com/avatar/46562c7d27388490d62e8d7a5bc960dd.jpg?s=120&d=mm&r=g)
On 4/7/2024 7:37 PM, Thomas A. Schmitz wrote:
On 4/7/24 19:21, Hans Hagen wrote:
can you make a format with line 25 of context.mkxl uncommented to see if you get a message (not production, just a test)
Hans
That should give a message "some spurious input in line..." in the output or the log, right? No, did not see such a message. ok, so this "on" ... where does it come from .. you can try to run with \tracingall and then quit the run after the first and search the log for !on to get a clue
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 -----------------------------------------------------------------
![](https://secure.gravatar.com/avatar/d0e94fb08d4620cfbd2f8f59a7868637.jpg?s=120&d=mm&r=g)
On 4/7/24 19:44, Hans Hagen wrote:
ok, so this "on" ... where does it come from .. you can try to run with \tracingall and then quit the run after the first and search the log for !on to get a clue
Hans
Found it - and I'm embarrassed to say it was in my own environment file, not in the lmtx distribution. I have a Lua function that prints information about the computer model and the operating system into a layer. Unfortunately, there was an "elseif" in there somewhere which should catch exceptions (such as a raspberry pi), but instead of concatenating the relevant return values to display in the layer, I had a ' context (" on ")' in there (probably for debugging) which I forgot about. Sorry for the noise - I was getting too sophisticated for my own good... Thomas
![](https://secure.gravatar.com/avatar/46562c7d27388490d62e8d7a5bc960dd.jpg?s=120&d=mm&r=g)
On 4/7/2024 10:14 PM, Thomas A. Schmitz wrote:
On 4/7/24 19:44, Hans Hagen wrote:
ok, so this "on" ... where does it come from .. you can try to run with \tracingall and then quit the run after the first and search the log for !on to get a clue
Hans
Found it - and I'm embarrassed to say it was in my own environment file, not in the lmtx distribution. I have a Lua function that prints information about the computer model and the operating system into a layer. Unfortunately, there was an "elseif" in there somewhere which should catch exceptions (such as a raspberry pi), but instead of concatenating the relevant return values to display in the layer, I had a ' context (" on ")' in there (probably for debugging) which I forgot about.
Sorry for the noise - I was getting too sophisticated for my own good... No problem, is it a rpi 5? If so, how does that one perform?
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 -----------------------------------------------------------------
![](https://secure.gravatar.com/avatar/d0e94fb08d4620cfbd2f8f59a7868637.jpg?s=120&d=mm&r=g)
On 4/7/24 22:33, Hans Hagen wrote:
No problem, is it a rpi 5? If so, how does that one perform?
Yes, it's a Pi 5 with 8GB of RAM, and I'm very satisfied with the performance. I use it headless for backup, file serving, and the occasional context job that ties the cpu up for a long time, and it's plenty fast for what I do with it. Runs less hot than the 3B that I have in my office for the same purpose (and supposedly the 4, but I've never had one of those). Thomas
participants (2)
-
Hans Hagen
-
Thomas A. Schmitz