[NTG-context] Very strange error:
After I run context (LMTX version) to my document (attached) I get this error: tex error > tex error on line 540 in file ./dev.tex: The file ended when scanning an argument. I don't know how to start... Can anyone help me? Thanks, Xavier PS: I receive this error after upgrading to MKIV to LMTX. Before with MKIV I get no errors. dev.tex Description: TeX document return { ["errortype"]=6, ["filename"]="./dev.tex", ["lastcontext"]="\n200 persones en total \\par \\startitemize [a, packed] \\item 2 de 5 persones estan a $A$ \\item a cada 4 persones de $A$ li corresponen 3 persones de $B$ \\item 20\\% són de $C$ \\item 2/8 són de $D$ \\stopitemize \\par \\head 420 persones en total \\par \\startitemize [a, packed] \\item $3/4$ de persones estan a $A$ \\item hi ha una correspondència: 3 de $A$ $\\leftrightarrow $ 2 de $B$ \\item 40\\% és de $C$ \\item de 5 persones, 4 són de $D$ \\stopitemize \\par \\head 245 persones \\par \\startitemize [a, packed] \\item $1/5$ de persones són de $A$ \\item $20\\%$ de persones són de $B$ \\item per cada 7 persones de $A$, n'hi ha 4 de $C$ \\item per cada 49 persones, n'hi ha 1 de $D$ \\stopitemize \\par \\head 1800 persones \\par \\startitemize [a, packed] \\item Un $30\\%$ és de $A$ \\item 30 de cada 50 són de $B$ \\item cada 5 persones de $B$ li corresponen 2 persones de $C$ \\item $D$ té un 150\\% que les persones de $C$ \\stopitemize \\par \\stopitemize \\par En tots els casos, digueu quantes persones hi hauria en el subgrup més nombrós si en total hi hagués 1000 persones. \\stopexercici \\par \\startexercici [exercici:proporcionalitat-directa-8]{relacionar diagrames} Relacioneu en cada cas els diagrames amb la proporció indicada \\par \\startitemize [A] \\par \\head Proporcions \\par \\startitemize [a, packed, columns] \\item 2 de 5 \\item 20\\% \\item $3/5$ \\item 5 a 10 \\stopitemize \\par \\head Diagrames \\par \\startitemize [a, packed, columns] \\item \\starttikzpicture \\draw (0,0) -- (5,0); \\foreach \\x in {0, 1, 2,..., 5} { \\draw (\\x , -0.2) -- (\\x , 0.2); \\draw (\\x ,-0.2) node[anchor=north] {\\x }; } \\draw [color=blue!50, line width=2pt] (0,0) -- (1,0); \\stoptikzpicture \\par \\item \\starttikzpicture \\draw (0,0) -- (5,0); \\foreach \\x in {0, 1, 2,..., 5} { \\draw (\\x , -0.2) -- (\\x , 0.2); \\draw (\\x ,-0.2) node[anchor=north] {\\x }; } \\draw [color=red!50, line width=2pt] (0,0) -- (2,0); \\stoptikzpicture \\par \\item \\starttikzpicture \\draw (0,0) -- (5,0); \\foreach \\x in {0, 1, 2,..., 5} { \\draw (\\x , -0.2) -- (\\x , 0.2); \\draw (\\x ,-0.2) node[anchor=north] {\\x }; } \\draw [color=green!50, line width=2pt] (0,0) -- (3,0); \\stoptikzpicture \\par \\item \\starttikzpicture \\draw (0,0) -- (5,0); \\foreach \\x in {0, 1, 2,..., 5} { \\draw (\\x , -0.2) -- (\\x , 0.2); \\draw (\\x ,-0.2) node[anchor=north] {\\x }; } \\draw [color=orange!50, line width=2pt] (0,0) -- (1.6,0); \\stoptikzpicture \\par \\stopitemize \\par \\stopitemize \\par Per a cada proporció, dibuixeu nous diagrames que tengui longitud 100. \\stopexercici \\par \\par \\startexercici [exercici:proporcionalitat-directa-9]{representar a diagrames}Usant el diagrama $5 \\times 10$ següent (vegeu la figura~\\in [figura:diagrama-punts-5x10]) representeu la informació donada en cada cas. \\par \\placefigure [force] [figura:diagrama-punts-5x10] {Diagrama de punts $5 \\times 10$} { \\bTABLE [frame=off,align={middle,lohi},width=fit, offset=2mm] \\bTR \\bTD \\starttikzpicture \\foreach \\x in {0,...,9} \\foreach \\y in {0,...,4} { \\draw [fill=gray!50] (\\x ,\\y ) circle (0.25); } \\par \\stoptikzpicture \\eTD \\eTR \\eTABLE } \\par \\startitemize [a, columns, packed, four] \\item 40\\% \\item 4 de 5 \\item $3/4$ \\item 4 a 1 \\item 22\\% \\item $1/8$ \\item 5 a 3 \\item 3 de 8 \\stopitemize \\par Si aquestes informacions corresponguessin a mostres de peixos ferits a la mar, calculeu quants peixos malalts hi hauria en una mostra de 3000 peixos en total. \\stopexercici \\par \\startexercici [exercici:proporcionalitat-directa-antic-1]{sou} Na Marta fa feina per hores. Si fent 25 hores de feina, na Marta cobra 625 euros, quant cobrarà fent 40 hores? Quantes hores hauria de fer na Marta per cobrar exactament 2300 euros? \\stopexercici \\par \\par \\startexercici [exercici:proporcionalitat-directa-antic-2]{astronautes} Aquest és la bità cola d'un projecte espacial: \\startitemize [4] \\item S'enlairen 5 astronautes, amb 200 kg de menjar a una estació espacial \\item Al cap de 3 dies, hi ha un relleu: se'n van 2 i en vénen 3 \\item La tripulació resultant es queda durant 5 dies més \\item Tots els astronautes tornen. L'estació espacial queda buida \\stopitemize \\par Els bastarà el menjar que s'enduen al principi si sabem que quatre astronautes mengen en promig 20 kg per dia? \\stopexercici \\par \\startexercici [exercici:proporcionalitat-directa-antic-3]{consum de benzina} El meu cotxe
Re: [NTG-context] very strange error with \xypos and vim-typing
On 16-2-2010 23:54, Aditya Mahajan wrote: On Tue, 16 Feb 2010, Aditya Mahajan wrote: On Tue, 16 Feb 2010, Peter Münster wrote: On Tue, Feb 16 2010, Hans Hagen wrote: as i never use vim for pretty printing i can not quickly test it so in order to be able to look into it i need a more precise test case I'm sorry, I can reproduce this error only with the vim module. Can others reproduce it, or am I the only one? I can reproduce the error...but I have no idea what is causing it. Here is a minimal example without the vim-typing module. nasty buglet related to spaces being active solved in next beta Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] very strange error with \xypos and vim-typing
On Mon, Feb 08 2010, Peter Münster wrote: ! Missing number, treated as zero. to be read again \dontleavehmode argument \dontleavehmode \normalspace \secondoftwoarguments #1#2-#2 l.1 \the\dimexpr 63.6383pt-0pt\relax \MPy #1-\ctxlua {jobpositions.MPy(#1)} \dopresetpositionanchors ...expr \MPy \textanchor +\MPh \textanchor -\!!dime... ... l.5 \s[]{bla;} Hello, No answer. Does it mean, that there is probably no solution or work-around? Cheers, Peter -- Contact information: http://pmrb.free.fr/contact/ ___ 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] very strange error with \xypos and vim-typing
On 16-2-2010 10:19, Peter Münster wrote: On Mon, Feb 08 2010, Peter Münster wrote: ! Missing number, treated as zero. to be read again \dontleavehmode argument \dontleavehmode \normalspace \secondoftwoarguments #1#2-#2 l.1 \the\dimexpr 63.6383pt-0pt\relax \MPy #1-\ctxlua {jobpositions.MPy(#1)} \dopresetpositionanchors ...expr \MPy \textanchor +\MPh \textanchor -\!!dime... ... l.5 \s[]{bla;} Hello, No answer. Does it mean, that there is probably no solution or work-around? as i never use vim for pretty printing i can not quickly test it so in order to be able to look into it i need a more precise test case Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] very strange error with \xypos and vim-typing
On Tue, Feb 16 2010, Hans Hagen wrote: as i never use vim for pretty printing i can not quickly test it so in order to be able to look into it i need a more precise test case I'm sorry, I can reproduce this error only with the vim module. Can others reproduce it, or am I the only one? Cheers, Peter -- Contact information: http://pmrb.free.fr/contact/ ___ 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] very strange error with \xypos and vim-typing
On Tue, 16 Feb 2010, Peter Münster wrote: On Tue, Feb 16 2010, Hans Hagen wrote: as i never use vim for pretty printing i can not quickly test it so in order to be able to look into it i need a more precise test case I'm sorry, I can reproduce this error only with the vim module. Can others reproduce it, or am I the only one? I can reproduce the error...but I have no idea what is causing it. Aditya___ 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] very strange error with \xypos and vim-typing
Am 16.02.10 23:21, schrieb Aditya Mahajan: I can reproduce the error...but I have no idea what is causing it. It's caused by the \strut in (t-vim.tex): \def\dodotypevimfile[#1]#2% {\@@vsbefore \bgroup \initializevimtyping{#1}% \runvimsyntax{#2}% % The strut is needed for the output to be the same when not using % numbering. Otherwise, multiple par's are ignored. We need to figure out % a mechanism to imitate this behaviour even while using line numbering. \ifconditional\vimtypinginline \else \strut%else the first line is shifted to the left \fi \input #2-vimsyntax.tmp\relax% \ifconditional\vimtypinginline \removeunwantedspaces \fi \egroup \@@vsafter} Wolfgang ___ 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] very strange error with \xypos and vim-typing
On Tue, 16 Feb 2010, Aditya Mahajan wrote: On Tue, 16 Feb 2010, Peter Münster wrote: On Tue, Feb 16 2010, Hans Hagen wrote: as i never use vim for pretty printing i can not quickly test it so in order to be able to look into it i need a more precise test case I'm sorry, I can reproduce this error only with the vim module. Can others reproduce it, or am I the only one? I can reproduce the error...but I have no idea what is causing it. Here is a minimal example without the vim-typing module. \setupbodyfont[ss, 14pt] \setuppapersize[S6][S6] \def\startC% {\bgroup \whitespace \obeylines \ignoreeofs \ignorespaces \activatespacehandler{yes} \def\obeyedline{\par\strut}% \strut} \def\stopC{\egroup} \starttext \startC \stopC \xypos{XXX} \startC bla; bla; bla; \stopC \startC bla; bla; bla; \stopC \startC bla; bla; bla; bla; \stopC \startC bla; bla; bla; bla; bla; \stopC \stoptext which gives ! Missing number, treated as zero. to be read again \dontleavehmode argument \dontleavehmode \normalspace \secondoftwoarguments #1#2-#2 l.1 \the\dimexpr 63.6383pt-0pt\relax \MPy #1-\ctxlua {jobpositions.MPy(#1)} \dopresetpositionanchors ...expr \MPy \textanchor +\MPh \textanchor -\!!dime... ... l.36 bla; Aditya ___ 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] very strange error with \xypos and vim-typing
Hello, I get the following error: ! Missing number, treated as zero. to be read again \dontleavehmode argument \dontleavehmode \normalspace \secondoftwoarguments #1#2-#2 l.1 \the\dimexpr 63.6383pt-0pt\relax \MPy #1-\ctxlua {jobpositions.MPy(#1)} \dopresetpositionanchors ...expr \MPy \textanchor +\MPh \textanchor -\!!dime... ... l.5 \s[]{bla;} with this test-file: \usemodule[vim] \setupbodyfont[ss, 14pt] \setuppapersize[S6][S6] \definevimtyping[C][syntax=c] \starttext \startC \stopC \xypos{XXX} \startC bla; bla; bla; \stopC \startC bla; bla; bla; \stopC \startC bla; bla; bla; bla; \stopC \startC bla; bla; bla; bla; bla; \stopC \stoptext t-vim.tex comes from http://www.ntg.nl/pipermail/ntg-context/2009/042527.html Strange, because whenever I remove a line of this test-file, the error disappears. Could someone help please? TIA for any hints! Cheers, Peter -- Contact information: http://pmrb.free.fr/contact/ ___ 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] very strange error with \xypos and vim-typing
On Mon, Feb 08 2010, Peter Münster wrote: Strange, because whenever I remove a line of this test-file, the error disappears. Could someone help please? Hello, One further hint, the tuc-file has one more line, when there is no error: @@ -13,6 +13,7 @@ jobvariables = jobvariables or { } jobvariables.collected = jobvariables.collected or { } jobvariables.collected={ + randomseed=0.39571996843243, totalnofparbackgrounds=0, } jobpasses = jobpasses or { } I would be very glad about a solution, because I don't know any workaround... Cheers, Peter -- Contact information: http://pmrb.free.fr/contact/ ___ 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___