An error which is not in .log file
After trying to compile a long file with LMTX (previously with MKIV all compiles perfectly), I get an error structures > bookmark: Referències structure > sectioning > chapter @ level 2 : 0.1 -> Referències publications > list > collecting entries using method 'global' and sort order 'default' pages > flushing realpage 296, userpage 294, subpage 296 structures > bookmark: Índex alfabètic structure > sectioning > chapter @ level 2 : 0.2 -> \headtext {index} pages > flushing realpage 297, userpage 295, subpage 297 structures > end of sectionblock 'backpart' close source > level 1, order 147, name './ng-exercicis.conTeXt' (\end occurred inside a group at level 8) 8:0: semisimple group entered at line 276: \begingroup 7:0: semisimple group entered at line 5: \begingroup 6:0: semisimple group entered at line 5: \begingroup 5:0: semisimple group entered at line 114: \begingroup 4:0: semisimple group entered at line 114: \begingroup 3:0: semisimple group entered at line 5: \begingroup 2:0: semisimple group entered at line 5: \begingroup 1:0: semisimple group entered at line 27: \begingroup 0:0: bottomlevel mkiv lua stats > used config file: selfautoparent:/texmf/web2c/texmfcnf.lua mkiv lua stats > used cache path: /home/xan/bin/context-current/tex/texmf-cache/luametatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e mkiv lua stats > resource resolver: loadtime 0.004 seconds, 0 scans with scantime 0.000 seconds, 0 shared scans, 240 found files, scanned paths: <none> mkiv lua stats > stored bytecode data: 512 modules (0.181 sec), 105 tables (0.010 sec), 617 chunks (0.191 sec) mkiv lua stats > traced context: maxstack: 1715, freed: 2, unreachable: 1713 mkiv lua stats > cleaned up reserved nodes: 85 nodes, 11 lists of 671 mkiv lua stats > node memory usage: 291 attribute, 62 dir, 91 glue, 3281 gluespec, 1 glyph, 1 hlist, 1 kern, 2 math, 645 mathspec, 4 penalty, 18 rule, 2 temp, 66305 whatsit mkiv lua stats > node list callback tasks: 16 unique task lists, 18 instances (re)created, 119367 calls mkiv lua stats > h-node processing time: 0.653 seconds including kernel mkiv lua stats > attribute processing time: 0.119 seconds front- and backend mkiv lua stats > driver time: 0.693 seconds mkiv lua stats > used backend: pdf mkiv lua stats > jobdata time: 0.054 seconds saving, 0.000 seconds loading mkiv lua stats > callbacks: file: 69204, saved: 309548, direct: 957, function: 244605, value: 7598, message: 0, bytecode: 617, late 0, total: 632529 (0 per page) mkiv lua stats > randomizer: initialized with value 0.45060333164985 mkiv lua stats > v-node processing time: 0.259 seconds mkiv lua stats > loaded tex modules: 4 requested, 1 found (*-tikz), 3 missing (*-pgfmat *-pgfmath *-pgfrcs) mkiv lua stats > loaded patterns: ca::65 en::1, load time: 0.000 mkiv lua stats > interactive elements: 74 references, 950 destinations mkiv lua stats > loaded fonts: 13 files: latinmodern-math.otf, lmmono10-regular.otf, lmroman10-bold.otf, lmroman10-italic.otf, lmroman10-regular.otf, lmromancaps10-regular.otf, lmromanslant10-regular.otf, lmsans10-bold.otf, lmsans10-boldoblique.otf, lmsans10-regular.otf, texgyreschola-bold.otf, texgyreschola-math.otf, texgyreschola-regular.otf mkiv lua stats > font engine: otf 3.133, afm 1.513, tfm 1.000, 68 instances, 51 shared in backend, 8 common vectors, 43 common hashes, load time 1.181 seconds mkiv lua stats > body font sizes: defined: 10pt 11pt 12pt 14.4pt 17.3pt 20.7pt 4pt 5pt 6pt 7pt 8pt 9pt, undefined: 11.2pt 12.8pt 14pt 16.8pt 16pt 19.2pt 24pt 30pt 36pt mkiv lua stats > metapost: 0.000 seconds, loading: 0.033, execution: 0.000, n: 3, average: 0.011, instances: 1, luacalls: 14196 (file: 13784, text: 0, script: 393, log: 19), memory: 3.881 M mkiv lua stats > math tweaking time: 0.474 seconds, 84 math goodie tables mkiv lua stats > math processing time: 0.292 seconds mkiv lua stats > graphics processing time: 1.768 seconds including tex, 268 processed images, 57 unique asked, 27 bad names mkiv lua stats > publications load time: 0.005 seconds, 2963 bytes, 11 definitions, 0 shortcuts mkiv lua stats > pdf annotations: 74 links (74 unique), 0 special mkiv lua stats > font embedding time: 0.018 seconds, 13 fonts mkiv lua stats > result saved in file: ng-exercicis.pdf, compresslevel 1, objectcompresslevel 3 mkiv lua stats > positions: 311 collected, 0 deltas, 307 shared partials, 133 partial entries mkiv lua stats > cross referencing: 713 identified, 269 unknown mkiv lua stats > used platform: linux-64, type: unix, binary subtree: texmf-linux-64 mkiv lua stats > used engine: luametatex version: 2.10.10, functionality level: 20230803, format id: 697, compiler: gcc mkiv lua stats > tex properties: 806417 hash slots used of 2097152, 70025 control sequences, approximate memory usage: 82 MB mkiv lua stats > lua properties: engine: lua 5.4, used memory: 213 MB, ctx: 198 MB, max: 306 MB, symbol mask: utf (τεχ) mkiv lua stats > runtime: 20.941 seconds, 297 processed pages, 297 shipped pages, 14.183 pages/second mtx-context | fatal error: return code: 1 but this not appear in .log file. What can I do for seeing what happens? Thanks in advance, Xavier PS: I could share my sourcecode with public git repo if you prefer.
On 8/15/2023 4:50 PM, Xavier B. wrote:
After trying to compile a long file with LMTX (previously with MKIV all compiles perfectly), I get an error
structures > bookmark: Referències structure > sectioning > chapter @ level 2 : 0.1 -> Referències publications > list > collecting entries using method 'global' and sort order 'default' pages > flushing realpage 296, userpage 294, subpage 296 structures > bookmark: Índex alfabètic structure > sectioning > chapter @ level 2 : 0.2 -> \headtext {index} pages > flushing realpage 297, userpage 295, subpage 297 structures > end of sectionblock 'backpart' close source > level 1, order 147, name './ng-exercicis.conTeXt' (\end occurred inside a group at level 8) 8:0: semisimple group entered at line 276: \begingroup
so check what starts at line 276 and see what should match ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl -----------------------------------------------------------------
On 8/15/23 17:35, Xavier B. wrote:
I have the document split in several files.
Hi Xavier, as someone already mentioned it, the way to check would be: mtxrun --scripts check your-document.tex But this doesn‘t parse \input, so you need to create a loop. In Unix, it would read something like: for i in *.conTeXt; do mtxrun --scripts check $i; done Windows might require something similar to (inspired by https://ss64.com/nt/for.html): for %%I (*.context) do mtxrun --scripts check %%I It might report the cause this way. When ConTeXt quits unexpectedly ("mtx-context | fatal error: return code: 1" is a error message from the console), it might be a started command not closed, such as in: \starttext \startitemize \item a \stoptext Just in case it might help, Pablo
I don't have line 276. This is what I have (169 lines): % Fitxer ConTeXt MIV % carregam les opcions d'entorn \environment ng-entorn-minimal.conTeXt \environment ng-entorn-taules.conTeXt \environment ng-entorn-teoria.conTeXt \environment ng-entorn-colors.conTeXt % bibliografia \usebtxdataset[default][ng-bibliografia.bib] \setupbtx[dataset=default] \usebtxdefinitions[aps] % el text \starttext \startfrontmatter \input ng-pre-portada.conTeXt \input ng-pre-llicencia.conTeXt \input ng-pre-informacio-document.conTeXt \completecontent \stopfrontmatter \startbodymatter \startpart[title=Aritmètica] \input ng-aritmetica-nombres-naturals-operacions.conTeXt \page[yes] \input ng-aritmetica-divisibilitat.conTeXt \page[yes] \input ng-aritmetica-sencers-operacions.conTeXt \page[yes] \input ng-aritmetica-fraccions-operacions.conTeXt \page[yes] \input ng-aritmetica-fraccions-simplificacio-i-etc.conTeXt \page[yes] \input ng-aritmetica-percentatges.conTeXt \page[yes] \input ng-aritmetica-problemes-nombres-sencers.conTeXt \page[yes] \input ng-aritmetica-problemes-nombres-fraccions.conTeXt \page[yes] \input ng-aritmetica-arrodoniment-i-truncament.conTeXt \page[yes] \input ng-aritmetica-representacio-sobre-la-recta-numerica.conTeXt \page[yes] \input ng-aritmetica-sequencies.conTeXt \page[yes] \input ng-aritmetica-potencies-exponent-sencer-calcul.conTeXt \page[yes] \input ng-aritmetica-propietats-de-les-potencies.conTeXt \page[yes] \input ng-aritmetica-notacio-cientifica-calcul.conTeXt \page[yes] \input ng-aritmetica-notacio-cientifica-problemes.conTeXt \stoppart \startpart[title=Relacions entre variables] \input ng-relacions-variables-proporcionalitat-directa.conTeXt \page[yes] \input ng-relacions-variables-percentatges-problemes.conTeXt \page[yes] \input ng-relacions-variables-repartiments-proporcionals.conTeXt \page[yes] \input ng-relacions-variables-proporcionalitat-inversa.conTeXt \page[yes] \input ng-relacions-variables-conversio-unitats.conTeXt \page[yes] \input ng-relacions-variables-funcio-lineal-problemes.conTeXt \page[yes] \input ng-relacions-variables-funcio-afi-problemes.conTeXt \page[yes] \input ng-relacions-variables-funcio-quadratica-problemes.conTeXt \page[yes] \input ng-relacions-variables-funcio-exponencial-problemes.conTeXt \stoppart \startpart[title=Àlgebra] \input ng-algebra-equacions-primer-grau.conTeXt \page[yes] \input ng-algebra-equacions-segon-grau.conTeXt \page[yes] \input ng-algebra-equacions-segon-grau-problemes-geometrics.conTeXt \page[yes] \input ng-algebra-sistemes-de-equacions-lineals-2-per-2.conTeXt \page[yes] \input ng-algebra-sistemes-de-equacions-lineals-2-per-2-problemes-comparativa.conTeXt \stoppart \startpart[title=Geometria] \input ng-geometria-teorema-de-Pitagores.conTeXt \page[yes] \input ng-geometria-teorema-de-Pitagores-problemes.conTeXt \page[yes] \input ng-proporcionalitat-geometrica-escala-grafica.conTeXt \page[yes] \input ng-proporcionalitat-geometrica-escala-numerica.conTeXt \page[yes] \input ng-proporcionalitat-geometrica-figures-semblants.conTeXt \page[yes] \input ng-proporcionalitat-geometrica-homotecies.conTeXt \page[yes] \input ng-proporcionalitat-geometrica-teorema-de-tales.conTeXt \stoppart \startpart[title=Estadística] \input ng-estadistica-tipus-de-variables.conTeXt \page[yes] \input ng-estadistica.conTeXt \page[yes] \input ng-estadistica-parametres-dispersio.conTeXt \page[yes] \input ng-estadistica-grafics-i-diagrames.conTeXt \stoppart \startpart[title=Probabilitat] \input ng-probabilitat-experiments-simples.conTeXt \page[yes] \input ng-probabilitat-experiments-compostos.conTeXt \page[yes] \input ng-probabilitat-probabilitat-condicionada.conTeXt \page[yes] \input ng-probabilitat-algebra-de-successos.conTeXt \stoppart \stopbodymatter \startappendices \startpart[title=Apunts teòrics] \input ng-teoria-proporcionalitat-numerica.conTeXt \page[yes] \input ng-teoria-equacions-de-segon-grau.conTeXt \page[yes] \input ng-teoria-funcio-quadratica.conTeXt \page[yes] \input ng-teoria-teorema-de-Pitagores.conTeXt \page[yes] \input ng-teoria-apendix-figures-usuals-arees-volums.conTeXt \page[yes] \input ng-teoria-proporcionalitat-geometrica.conTeXt \page[yes] \input ng-teoria-estadistica.conTeXt \page[yes] \input ng-teoria-probabilitat.conTeXt \stoppart \stopappendices \startbackmatter \input ng-pre-continguts-aliens.conTeXt \page[yes] % Bibliografia \startchapter[title=Referències] \placelistofpublications \stopchapter %% Índex alfabètic \completeindex \stopbackmatter \stoptext
Hi,
I suggest to comment out/add \stoptext until the error go,and that way
narrow it down. The usual way...
/Mikael
Den tis 15 aug. 2023 19:50Xavier B.
I don't have line 276. This is what I have (169 lines):
% Fitxer ConTeXt MIV
% carregam les opcions d'entorn \environment ng-entorn-minimal.conTeXt \environment ng-entorn-taules.conTeXt \environment ng-entorn-teoria.conTeXt \environment ng-entorn-colors.conTeXt
% bibliografia \usebtxdataset[default][ng-bibliografia.bib] \setupbtx[dataset=default] \usebtxdefinitions[aps]
% el text
\starttext
\startfrontmatter \input ng-pre-portada.conTeXt \input ng-pre-llicencia.conTeXt \input ng-pre-informacio-document.conTeXt \completecontent \stopfrontmatter
\startbodymatter
\startpart[title=Aritmètica]
\input ng-aritmetica-nombres-naturals-operacions.conTeXt \page[yes] \input ng-aritmetica-divisibilitat.conTeXt \page[yes] \input ng-aritmetica-sencers-operacions.conTeXt \page[yes] \input ng-aritmetica-fraccions-operacions.conTeXt \page[yes] \input ng-aritmetica-fraccions-simplificacio-i-etc.conTeXt \page[yes] \input ng-aritmetica-percentatges.conTeXt \page[yes] \input ng-aritmetica-problemes-nombres-sencers.conTeXt \page[yes] \input ng-aritmetica-problemes-nombres-fraccions.conTeXt \page[yes] \input ng-aritmetica-arrodoniment-i-truncament.conTeXt \page[yes] \input ng-aritmetica-representacio-sobre-la-recta-numerica.conTeXt \page[yes] \input ng-aritmetica-sequencies.conTeXt \page[yes] \input ng-aritmetica-potencies-exponent-sencer-calcul.conTeXt \page[yes] \input ng-aritmetica-propietats-de-les-potencies.conTeXt \page[yes] \input ng-aritmetica-notacio-cientifica-calcul.conTeXt \page[yes] \input ng-aritmetica-notacio-cientifica-problemes.conTeXt \stoppart
\startpart[title=Relacions entre variables]
\input ng-relacions-variables-proporcionalitat-directa.conTeXt \page[yes] \input ng-relacions-variables-percentatges-problemes.conTeXt \page[yes] \input ng-relacions-variables-repartiments-proporcionals.conTeXt \page[yes] \input ng-relacions-variables-proporcionalitat-inversa.conTeXt \page[yes] \input ng-relacions-variables-conversio-unitats.conTeXt \page[yes] \input ng-relacions-variables-funcio-lineal-problemes.conTeXt \page[yes] \input ng-relacions-variables-funcio-afi-problemes.conTeXt \page[yes] \input ng-relacions-variables-funcio-quadratica-problemes.conTeXt \page[yes] \input ng-relacions-variables-funcio-exponencial-problemes.conTeXt \stoppart
\startpart[title=Àlgebra] \input ng-algebra-equacions-primer-grau.conTeXt \page[yes] \input ng-algebra-equacions-segon-grau.conTeXt \page[yes] \input ng-algebra-equacions-segon-grau-problemes-geometrics.conTeXt \page[yes] \input ng-algebra-sistemes-de-equacions-lineals-2-per-2.conTeXt \page[yes] \input ng-algebra-sistemes-de-equacions-lineals-2-per-2-problemes-comparativa.conTeXt \stoppart
\startpart[title=Geometria]
\input ng-geometria-teorema-de-Pitagores.conTeXt \page[yes] \input ng-geometria-teorema-de-Pitagores-problemes.conTeXt \page[yes] \input ng-proporcionalitat-geometrica-escala-grafica.conTeXt \page[yes] \input ng-proporcionalitat-geometrica-escala-numerica.conTeXt \page[yes] \input ng-proporcionalitat-geometrica-figures-semblants.conTeXt \page[yes] \input ng-proporcionalitat-geometrica-homotecies.conTeXt \page[yes] \input ng-proporcionalitat-geometrica-teorema-de-tales.conTeXt \stoppart
\startpart[title=Estadística] \input ng-estadistica-tipus-de-variables.conTeXt \page[yes] \input ng-estadistica.conTeXt \page[yes] \input ng-estadistica-parametres-dispersio.conTeXt \page[yes] \input ng-estadistica-grafics-i-diagrames.conTeXt \stoppart
\startpart[title=Probabilitat] \input ng-probabilitat-experiments-simples.conTeXt \page[yes] \input ng-probabilitat-experiments-compostos.conTeXt \page[yes] \input ng-probabilitat-probabilitat-condicionada.conTeXt \page[yes] \input ng-probabilitat-algebra-de-successos.conTeXt \stoppart
\stopbodymatter
\startappendices
\startpart[title=Apunts teòrics] \input ng-teoria-proporcionalitat-numerica.conTeXt \page[yes] \input ng-teoria-equacions-de-segon-grau.conTeXt \page[yes] \input ng-teoria-funcio-quadratica.conTeXt \page[yes] \input ng-teoria-teorema-de-Pitagores.conTeXt \page[yes] \input ng-teoria-apendix-figures-usuals-arees-volums.conTeXt \page[yes] \input ng-teoria-proporcionalitat-geometrica.conTeXt \page[yes] \input ng-teoria-estadistica.conTeXt \page[yes] \input ng-teoria-probabilitat.conTeXt \stoppart
\stopappendices
\startbackmatter \input ng-pre-continguts-aliens.conTeXt \page[yes] % Bibliografia \startchapter[title=Referències] \placelistofpublications \stopchapter %% Índex alfabètic \completeindex \stopbackmatter
\stoptext
___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net
___________________________________________________________________________________
The error message is about line 276 in one of your included files but we need the content of the faulty file. To get the faulty file comment your input line until the error disappears, ensure to delete the tuc file (context --purge) because sometimes index/register entries are the problem. There is also something wrong with the structure of your document when need \page[yes] after each file. Wolfgang
Xavier B. schrieb am 15.08.2023 um 21:36:
On Tue, 15 Aug 2023 21:13:54 +0200 Wolfgang Schuster
ha escrit: There is also something wrong with the structure of your document when need \page[yes] after each file. Why is it trouble?
When you start each subfile with \section or \subject you can use \setuphead to force a pagebreak at the start of each new section and not with a \page command in the document. Wolfgang
Thanks.
After some work on it, following your advice, I reduce the compilation problem to several "wrong" files.
One was trivialy fixed because I did not close one environment, but other don't. Please help:
The error is here and I attach file.
modules > 'pgfmath' is not found
structure > sectioning > section @ level 3 : 0.0.1 -> Problemes de fraccions
structure > sectioning > subject @ level 3 : 0.0.1 -> Preguntes
tex error > tex error on line 25 in file ./dev.tex: \textfont0 is undefined in ordinal, font id 0, character 63)
Xavier B. schrieb am 15.08.2023 um 21:36:
On Tue, 15 Aug 2023 21:13:54 +0200 Wolfgang Schuster
ha escrit: There is also something wrong with the structure of your document when need \page[yes] after each file. Why is it trouble?
When you start each subfile with \section or \subject you can use \setuphead to force a pagebreak at the start of each new section and not with a \page command in the document.
Wolfgang
Xavier B. schrieb am 16.08.2023 um 00:12:
Thanks.
After some work on it, following your advice, I reduce the compilation problem to several "wrong" files. One was trivialy fixed because I did not close one environment, but other don't. Please help:
1. You need \starttext and \stoptext at the begin and end of your example file. 2. You forgot to close the following environment: \startexercici[reference=exercici:problemes-de-fraccions-13, title={tasca per fer junts}] 3. \starttikzpicure doesn't allow arguments which results in font error messages (char ... missing). This is an error in the ConTeXt version of the \starttikzpicture command and should be fixed. Wolfgang
Mmmm.... thanks.
How can I pass so [scale=0.9] to starttikzpicture?
On Wed, 16 Aug 2023 06:27:34 +0200
Wolfgang Schuster
Xavier B. schrieb am 16.08.2023 um 00:12:
Thanks.
After some work on it, following your advice, I reduce the compilation problem to several "wrong" files. One was trivialy fixed because I did not close one environment, but other don't. Please help:
1. You need \starttext and \stoptext at the begin and end of your example file.
2. You forgot to close the following environment: \startexercici[reference=exercici:problemes-de-fraccions-13, title={tasca per fer junts}]
3. \starttikzpicure doesn't allow arguments which results in font error messages (char ... missing). This is an error in the ConTeXt version of the \starttikzpicture command and should be fixed.
Wolfgang
Thanks to all to help me through migration from MKIV to LMTX version.
Now my document compiles perfectly.
Xavier
On Wed, 16 Aug 2023 17:02:53 +0200
Wolfgang Schuster
Xavier B. schrieb am 16.08.2023 um 09:15:
Mmmm.... thanks. How can I pass so [scale=0.9] to starttikzpicture?
It's a bug and should be fixed in the next context release.
Wolfgang
On Wed, 16 Aug 2023, Wolfgang Schuster wrote:
3. \starttikzpicure doesn't allow arguments which results in font error messages (char ... missing). This is an error in the ConTeXt version of the \starttikzpicture command and should be fixed.
Looking at m-tikz.mkxl, \starttikzpicture should allow optional arguments. The following works correctly for me with ver 2023.07.18: \usemodule[tikz] \usetikzlibrary[patterns] \starttext \starttikzpicture[scale=0.75] % recipient \draw (0,0) -- (0,10) -- (2,10) -- (2,0) -- cycle; % aigua \filldraw[pattern=north east lines, pattern color=orange] (0,0) -- (0,4) -- (2,4) -- (2,0) -- cycle; \draw (1,2) node[fill=white] {aigua}; % oli \filldraw[pattern=dots, pattern color=blue] (0,4) -- (0,6.5) -- (2,6.5) -- (2,4) -- cycle; \draw (1,5.25) node[fill=white] {oli}; % ròtuls \draw (2,2) node[anchor=west] {$2/5$}; \draw (2,5.25) node[anchor=west] {$1/4$}; \stoptikzpicture \stoptext Aditya
participants (6)
-
Aditya Mahajan
-
Hans Hagen
-
Mikael Sundqvist
-
Pablo Rodriguez
-
Wolfgang Schuster
-
Xavier B.