[NTG-context] LuaMetaFun MPinclusions doublefun

2021-05-02 Thread Fabrice L
Dear list,

I’m experimenting LuaMetaFun. The following MWE example works as expected, but 
stop to work as soon as I uncomment the « doublefun » commands, like :

\startMPinclusions{doublefun} (… )
\startMPpage[instance=doublefun]


% MWE ——

\startMPinclusions%{doublefun}
vardef Macrotest(expr ANumber) =
draw textext(decimal(ANumber)) scaled 10;
enddef ;
\stopMPinclusions

\startMPpage%[instance=doublefun]

Macrotest(22)  ;

  path p; p := (0,0)..(3,3.5)..(9,-3.5).. (12,0)..(9,3.5)..(3,-3.5)..cycle;
  draw lmt_followtext [
 text = "\dorecurse{9}{· Just random text }",
 path = p xsized TextWidth,
 autoscaleup = "max",
 reverse=true,
  ] xsized 5in;
 \stopMPpage

% ———

Log says:

metafun > log > error: Isolated expression
metafun > log >
metapost> log > 
metapost> log >  
metapost> log >(
metapost> log > <*>  Macrotest(
metafun > log >
metafun > log > I couldn't find an '=' or ':=' after the expression 
that is shown above this

I have search the making list for examples, but did not not found anything. 
Thanks for any help !

Fabrice.___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] # in MPinclusions

2006-06-15 Thread Aditya Mahajan
On Tue, 13 Jun 2006, Hans Hagen wrote:

 Aditya Mahajan wrote:
 Hi,
   How can I make MPinclusions consider # as a normal character.

 try \string# (or \#)

Thanks, that does the trick.

Aditya
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] # in MPinclusions

2006-06-13 Thread Hans Hagen
Aditya Mahajan wrote:
 Hi,
   How can I make MPinclusions consider # as a normal character.
   
try \string# (or \#)

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
-

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] # in MPinclusions

2006-06-12 Thread Aditya Mahajan
Hi,
  How can I make MPinclusions consider # as a normal character.

\startMPinclusions
input metaobj;

vardef [EMAIL PROTECTED](text name) text options=
   [EMAIL PROTECTED](textext(name)) options;
enddef;
\stopMPinclusions

\starttext
\startMPpage
  block.source(Source) ;
  source.c = origin ;
  drawObj(source) ;
\stopMPpage
\stoptext

gives

! Illegal parameter number in definition of \theMPinclusions.
to be read again
(
argument ...ic {input metaobj;

vardef [EMAIL PROTECTED](
   text name) text 
options=
n...

\secondoftwoarguments #1#2-#2

l.7 \stopMPinclusions


Aditya
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context