* # in MPinclusions
@ 2006-06-13 1:02 Aditya Mahajan
2006-06-13 7:57 ` Hans Hagen
0 siblings, 1 reply; 3+ messages in thread
From: Aditya Mahajan @ 2006-06-13 1:02 UTC (permalink / raw)
Hi,
How can I make MPinclusions consider # as a normal character.
\startMPinclusions
input metaobj;
vardef block@#(text name) text options=
newRBox@#(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 block@##(
text name) text
options=
n...
\secondoftwoarguments #1#2->#2
l.7 \stopMPinclusions
Aditya
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: # in MPinclusions
2006-06-13 1:02 # in MPinclusions Aditya Mahajan
@ 2006-06-13 7:57 ` Hans Hagen
2006-06-13 16:21 ` Aditya Mahajan
0 siblings, 1 reply; 3+ messages in thread
From: Hans Hagen @ 2006-06-13 7:57 UTC (permalink / raw)
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
-----------------------------------------------------------------
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: # in MPinclusions
2006-06-13 7:57 ` Hans Hagen
@ 2006-06-13 16:21 ` Aditya Mahajan
0 siblings, 0 replies; 3+ messages in thread
From: Aditya Mahajan @ 2006-06-13 16:21 UTC (permalink / raw)
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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2006-06-13 16:21 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-06-13 1:02 # in MPinclusions Aditya Mahajan
2006-06-13 7:57 ` Hans Hagen
2006-06-13 16:21 ` Aditya Mahajan
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).