ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* MetaFun: hlintext: `! Missing `)' has been inserted.`, `formatstr: ! Not implemented: (pair)-(unknown numeric).`
@ 2011-10-14  6:02 Paul Menzel
  2011-10-14 13:16 ` Hans Hagen
  0 siblings, 1 reply; 4+ messages in thread
From: Paul Menzel @ 2011-10-14  6:02 UTC (permalink / raw)
  To: ntg-context


[-- Attachment #1.1.1: Type: text/plain, Size: 1356 bytes --]

Dear ConTeXt folks,


trying to draw a grid and label it, I get an error when using the (alsa
attached) example from the MetaFun manual [1].

        \starttext
        \startMPcode
        drawoptions(withpen pencircle scaled .25pt withcolor .5white) ;
        draw hlingrid(0, 20, .2, 20cm, 10cm) ;
        draw vloggrid(0, 10, .5, 10cm, 20cm) ;
        drawoptions(withpen pencircle scaled .50pt) ;
        draw hlingrid(0, 20,1, 20cm, 10cm) ;
        draw vloggrid(0, 10,1, 10cm, 20cm) ;
        
        fmt_pictures := false ; % use TeX as formatting engine
        textextoffset := ExHeight ; % a variable set by ConTeXt
        draw hlintext.lft(0, 20,5, 20cm, "@3e") ;
        draw vlogtext.bot(0, 10,9, 10cm, "@3e") ;
        \stopMPcode
        \stoptext

I am using an older version of ConTeXt Standalone.

        ConTeXt  ver: 2011.07.22 17:23 MKIV  fmt: 2011.7.25  int: english/english

Looking at the log output I could not figure out the original error.
Please find the log file attached.

Searching the Web I found other threads dealing with this issue. But adding

        \forceMPTEXgraphictrue

as suggested in [2] it does not solve the problem either.


Thanks,

Paul


[1] http://www.pragma-ade.com/general/manuals/metafun-s.pdf
[2] http://www.ntg.nl/pipermail/ntg-context/2004/005007.html

[-- Attachment #1.1.2: test.tex --]
[-- Type: text/x-tex, Size: 519 bytes --]

\starttext
\startMPcode
drawoptions(withpen pencircle scaled .25pt withcolor .5white) ;
draw hlingrid(0, 20, .2, 20cm, 10cm) ;
draw vloggrid(0, 10, .5, 10cm, 20cm) ;
drawoptions(withpen pencircle scaled .50pt) ;
draw hlingrid(0, 20,1, 20cm, 10cm) ;
draw vloggrid(0, 10,1, 10cm, 20cm) ;

fmt_pictures := false ; % use TeX as formatting engine
textextoffset := ExHeight ; % a variable set by ConTeXt
draw hlintext.lft(0, 20,5, 20cm, "@3e") ;
draw vlogtext.bot(0, 10,9, 10cm, "@3e") ;
\stopMPcode
\stoptext

[-- Attachment #1.1.3: test.log.7z --]
[-- Type: application/x-7z-compressed, Size: 4234 bytes --]

[-- Attachment #1.1.4: testwithforceMPTEX.7z --]
[-- Type: application/x-7z-compressed, Size: 4228 bytes --]

[-- Attachment #1.2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 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] 4+ messages in thread

* Re: MetaFun: hlintext: `! Missing `)' has been inserted.`, `formatstr: ! Not implemented: (pair)-(unknown numeric).`
  2011-10-14  6:02 MetaFun: hlintext: `! Missing `)' has been inserted.`, `formatstr: ! Not implemented: (pair)-(unknown numeric).` Paul Menzel
@ 2011-10-14 13:16 ` Hans Hagen
  2011-10-15 19:41   ` [solved] " Paul Menzel
  0 siblings, 1 reply; 4+ messages in thread
From: Hans Hagen @ 2011-10-14 13:16 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Paul Menzel

On 14-10-2011 08:02, Paul Menzel wrote:
> Dear ConTeXt folks,
>
>
> trying to draw a grid and label it, I get an error when using the (alsa
> attached) example from the MetaFun manual [1].

Fixed in next beta (however, instead of mp formatting lua formatting is 
used, a prelude to the graph rewrite that Alan and I have in mind).

Hans

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | voip: 087 875 68 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] 4+ messages in thread

* Re: [solved] MetaFun: hlintext: `! Missing `)' has been inserted.`, `formatstr: ! Not implemented: (pair)-(unknown numeric).`
  2011-10-14 13:16 ` Hans Hagen
@ 2011-10-15 19:41   ` Paul Menzel
  2011-10-16 10:53     ` Hans Hagen
  0 siblings, 1 reply; 4+ messages in thread
From: Paul Menzel @ 2011-10-15 19:41 UTC (permalink / raw)
  To: ntg-context


[-- Attachment #1.1.1: Type: text/plain, Size: 1062 bytes --]

Dear Hans,


Am Freitag, den 14.10.2011, 15:16 +0200 schrieb Hans Hagen:
> On 14-10-2011 08:02, Paul Menzel wrote:

> > trying to draw a grid and label it, I get an error when using the (alsa
> > attached) example from the MetaFun manual [1].
> 
> Fixed in next beta

as always thank you very much for this fast fix. I confirm that this is
fixed in current ConTeXt Standalone or latest Beta.

        ConTeXt  ver: 2011.10.14 22:47 MKIV  fmt: 2011.10.15  int: english/english

> (however, instead of mp formatting lua formatting is used, a prelude
> to the graph rewrite that Alan and I have in mind).

Not that I know the syntax of it. I hope the article FormattingNumbers
[2] in the lua-users Wiki is the correct place to look. Reading other
sources [3] it seems to be the same syntax as the `printf()`
implementation of the respective system.


Thanks,

Paul


[2] http://lua-users.org/wiki/FormattingNumbers
[3] http://stackoverflow.com/questions/1133639/how-can-i-print-a-huge-number-in-lua-without-using-scientific-notation

[-- Attachment #1.1.2: test.pdf --]
[-- Type: application/pdf, Size: 12732 bytes --]

[-- Attachment #1.1.3: test.tex --]
[-- Type: text/x-tex, Size: 519 bytes --]

\starttext
\startMPcode
drawoptions(withpen pencircle scaled .25pt withcolor .5white) ;
draw hlingrid(0, 20, .2, 20cm, 10cm) ;
draw vloggrid(0, 10, .5, 10cm, 20cm) ;
drawoptions(withpen pencircle scaled .50pt) ;
draw hlingrid(0, 20,1, 20cm, 10cm) ;
draw vloggrid(0, 10,1, 10cm, 20cm) ;

fmt_pictures := false ; % use TeX as formatting engine
textextoffset := ExHeight ; % a variable set by ConTeXt
draw hlintext.lft(0, 20,5, 20cm, "@3e") ;
draw vlogtext.bot(0, 10,9, 10cm, "@3e") ;
\stopMPcode
\stoptext

[-- Attachment #1.2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 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] 4+ messages in thread

* Re: [solved] MetaFun: hlintext: `! Missing `)' has been inserted.`, `formatstr: ! Not implemented: (pair)-(unknown numeric).`
  2011-10-15 19:41   ` [solved] " Paul Menzel
@ 2011-10-16 10:53     ` Hans Hagen
  0 siblings, 0 replies; 4+ messages in thread
From: Hans Hagen @ 2011-10-16 10:53 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Paul Menzel

On 15-10-2011 21:41, Paul Menzel wrote:
> Dear Hans,
>
>
> Am Freitag, den 14.10.2011, 15:16 +0200 schrieb Hans Hagen:
>> On 14-10-2011 08:02, Paul Menzel wrote:
>
>>> trying to draw a grid and label it, I get an error when using the (alsa
>>> attached) example from the MetaFun manual [1].
>>
>> Fixed in next beta
>
> as always thank you very much for this fast fix. I confirm that this is
> fixed in current ConTeXt Standalone or latest Beta.
>
>          ConTeXt  ver: 2011.10.14 22:47 MKIV  fmt: 2011.10.15  int: english/english
>
>> (however, instead of mp formatting lua formatting is used, a prelude
>> to the graph rewrite that Alan and I have in mind).
>
> Not that I know the syntax of it. I hope the article FormattingNumbers
> [2] in the lua-users Wiki is the correct place to look. Reading other
> sources [3] it seems to be the same syntax as the `printf()`
> implementation of the respective system.

sort of

(in our case the @ is also seen as % as passing %'s on tex is somewhat 
tricky)

Hans

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | voip: 087 875 68 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] 4+ messages in thread

end of thread, other threads:[~2011-10-16 10:53 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-10-14  6:02 MetaFun: hlintext: `! Missing `)' has been inserted.`, `formatstr: ! Not implemented: (pair)-(unknown numeric).` Paul Menzel
2011-10-14 13:16 ` Hans Hagen
2011-10-15 19:41   ` [solved] " Paul Menzel
2011-10-16 10:53     ` 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).