[Therion] metapost color definition
Bruce
dangle at tomo.co.nz
Thu Jun 23 22:19:18 CEST 2011
Fixed, thanks, ! does the trick.
Makes me wonder if the need for endcode should be forced, or if all metapost
lines should voluntarily start with !
Reason is that peoples' custom metapost will always be vulnerable to
additional keywords in future therion versions. I guess everything becomes
obsolete eventually.
Bruce
By surveying and mapping caves we steal from our future selves.
-----Original Message-----
From: therion-bounces at speleo.sk [mailto:therion-bounces at speleo.sk] On Behalf
Of Stacho Mudrak
Sent: Thursday, 23 June 2011 10:20 p.m.
To: List for Therion users
Subject: Re: [Therion] metapost color definition
It is a very rare case, where layout options are mixing with metapost
code. Both have color keyword. It is because endcode is not needed in
layout.
Could you please try to add ! as a first character on the line 237.
Therion will then know, that it is a line with the code. Or also a ;
could do the job.
Regards, S.
On 23 June 2011 11:53, Bruce <dangle at tomo.co.nz> wrote:
> Anyone have any idea why the following metapost included in a layout
causes
> the error below?
>
> It is almost identical to code extracted from data.mp, yet it upsets
therion
> (I have added the 237 so you can see where the error occurs).
>
>
>
> code metapost
>
> %define colours for custom water point & area
> background
>
> 237 color colour_water;
>
> colour_water :=(226/255,244/255,253/255); %light
> blue
>
> color colour_sump;
>
> colour_sump := (22/255,22/255,95/255); %dark
blue
>
> endcode
>
>
>
> D:\Program Files\Therion\therion.exe: error --
> ../../StdFiles/LayoutStandards.thc [237] --
> ../../StdFiles/LayoutStandards.thc [237] -- not enough option arguments --
> color -- must be 2
>
>
>
> Regards
>
> Bruce
>
> _______________________________________________
> Therion mailing list
> Therion at speleo.sk
> http://mailman.speleo.sk/mailman/listinfo/therion
>
>
_______________________________________________
Therion mailing list
Therion at speleo.sk
http://mailman.speleo.sk/mailman/listinfo/therion
More information about the Therion
mailing list