ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* very strange error with \xypos and vim-typing
@ 2010-02-08 10:43 Peter Münster
  2010-02-08 19:59 ` Peter Münster
  2010-02-16  9:19 ` Peter Münster
  0 siblings, 2 replies; 9+ messages in thread
From: Peter Münster @ 2010-02-08 10:43 UTC (permalink / raw)
  To: ConTeXt list

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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: very strange error with \xypos and vim-typing
  2010-02-08 10:43 very strange error with \xypos and vim-typing Peter Münster
@ 2010-02-08 19:59 ` Peter Münster
  2010-02-16  9:19 ` Peter Münster
  1 sibling, 0 replies; 9+ messages in thread
From: Peter Münster @ 2010-02-08 19:59 UTC (permalink / raw)
  To: ConTeXt list

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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: very strange error with \xypos and vim-typing
  2010-02-08 10:43 very strange error with \xypos and vim-typing Peter Münster
  2010-02-08 19:59 ` Peter Münster
@ 2010-02-16  9:19 ` Peter Münster
  2010-02-16 10:06   ` Hans Hagen
  1 sibling, 1 reply; 9+ messages in thread
From: Peter Münster @ 2010-02-16  9:19 UTC (permalink / raw)
  To: ConTeXt list

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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: very strange error with \xypos and vim-typing
  2010-02-16  9:19 ` Peter Münster
@ 2010-02-16 10:06   ` Hans Hagen
  2010-02-16 10:31     ` Peter Münster
  0 siblings, 1 reply; 9+ messages in thread
From: Hans Hagen @ 2010-02-16 10:06 UTC (permalink / raw)
  To: ConTeXt list

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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: very strange error with \xypos and vim-typing
  2010-02-16 10:06   ` Hans Hagen
@ 2010-02-16 10:31     ` Peter Münster
  2010-02-16 22:21       ` Aditya Mahajan
  0 siblings, 1 reply; 9+ messages in thread
From: Peter Münster @ 2010-02-16 10:31 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: very strange error with \xypos and vim-typing
  2010-02-16 10:31     ` Peter Münster
@ 2010-02-16 22:21       ` Aditya Mahajan
  2010-02-16 22:50         ` Wolfgang Schuster
  2010-02-16 22:54         ` Aditya Mahajan
  0 siblings, 2 replies; 9+ messages in thread
From: Aditya Mahajan @ 2010-02-16 22:21 UTC (permalink / raw)
  To: mailing list for ConTeXt users

[-- Attachment #1: Type: TEXT/PLAIN, Size: 435 bytes --]

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

[-- Attachment #2: Type: text/plain, Size: 486 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: very strange error with \xypos and vim-typing
  2010-02-16 22:21       ` Aditya Mahajan
@ 2010-02-16 22:50         ` Wolfgang Schuster
  2010-02-16 22:54         ` Aditya Mahajan
  1 sibling, 0 replies; 9+ messages in thread
From: Wolfgang Schuster @ 2010-02-16 22:50 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: very strange error with \xypos and vim-typing
  2010-02-16 22:21       ` Aditya Mahajan
  2010-02-16 22:50         ` Wolfgang Schuster
@ 2010-02-16 22:54         ` Aditya Mahajan
  2010-02-17  9:58           ` Hans Hagen
  1 sibling, 1 reply; 9+ messages in thread
From: Aditya Mahajan @ 2010-02-16 22:54 UTC (permalink / raw)
  To: mailing list for ConTeXt users

[-- Attachment #1: Type: TEXT/PLAIN, Size: 1490 bytes --]

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




[-- Attachment #2: Type: text/plain, Size: 486 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: very strange error with \xypos and vim-typing
  2010-02-16 22:54         ` Aditya Mahajan
@ 2010-02-17  9:58           ` Hans Hagen
  0 siblings, 0 replies; 9+ messages in thread
From: Hans Hagen @ 2010-02-17  9:58 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2010-02-17  9:58 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-02-08 10:43 very strange error with \xypos and vim-typing Peter Münster
2010-02-08 19:59 ` Peter Münster
2010-02-16  9:19 ` Peter Münster
2010-02-16 10:06   ` Hans Hagen
2010-02-16 10:31     ` Peter Münster
2010-02-16 22:21       ` Aditya Mahajan
2010-02-16 22:50         ` Wolfgang Schuster
2010-02-16 22:54         ` Aditya Mahajan
2010-02-17  9:58           ` Hans Hagen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).