[Therion] metapost color definition
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 -- next part -- An HTML attachment was scrubbed... URL: <http://mailman.speleo.sk/pipermail/therion/attachments/20110623/4144c56d/attachment.html>
[Therion] xtherion -close on
On Tue, 2011-06-21 at 18:21 +0200, Stacho Mudrak wrote: > But in therion, syntax is different. It is: > > POINT > CP1 CP2 POINT > > And I am not sure, whether therion accepts CP specification before the > first point. > me neither. in thbook it says that a data line can have one of the two format above. maybe i missed the spot where it says that the first point of a line can be only in the first format. not sure if thbook says it, but seems that in the sequence ... PT1 CP1 CP2 PT2 ... in the piece of curve between P1 and P2, CP1 is the control point on the side of P1 and CP2 that on the side of P2. anyways thbook states what therion does, so it's up to the implementation of therion. i tested with 5.3.8: it seems that therion implementation accept the first line point in the second format, but it ignores the two control points. this is enough for my needs at the moment. thanks. marco
[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 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 > >