[Therion] metapost color definition
Stacho Mudrak
lists at group-s.sk
Thu Jun 23 12:20:08 CEST 2011
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
>
>
More information about the Therion
mailing list