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/
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/
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/
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 -----------------------------------------------------------------
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/
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
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
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
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 -----------------------------------------------------------------
participants (4)
-
Aditya Mahajan
-
Hans Hagen
-
Peter Münster
-
Wolfgang Schuster