Re: [Therion] Need metapost wizard: new text label

2020-03-04 Thread Benedikt Hallinger
Hello again. I freshly copy-pasted your examples and now it works. I must have made something wrong like you described (therion 5.4.4 (2019-05-01)). Tanks! Am 2020-03-04 15:08, schrieb Tarquin Wilton-Jones via Therion: example code there does not work here for some reason (compile error).

Re: [Therion] Need metapost wizard: new text label

2020-03-04 Thread Tarquin Wilton-Jones via Therion
> example code there does not work here for some reason (compile error). Interesting ... I am using it myself and it works here. I wonder if there is something odd in what the wiki outputs. Or maybe you copy & pasted the "code metapost" inside an existing "code metapost" block. If you have time

Re: [Therion] Need metapost wizard: new text label

2020-03-04 Thread Benedikt Hallinger
Hello Tarquin, i tweaked and fiddled around and now have a version that correctly scales, rotates and aligns. Your wiki page hint helped, but i already found it in the past... The example code there does not work here for some reason (compile error). But anyhow, to answer your question

Re: [Therion] Need metapost wizard: new text label

2020-03-01 Thread Tarquin Wilton-Jones via Therion
> If you want to upload it to the wiki, im honored and please modify to your > wills There you go: https://therion.speleo.sk/wiki/metapost#adding_custom_styled_labels_at_any_point_linepoint Second version of the code has a custom label style like yours (dashed for fun, and it specifies the

Re: [Therion] Need metapost wizard: new text label

2020-03-01 Thread Tarquin Wilton-Jones via Therion
>> thelabel(txt, pos); > > I notice in the main Therion Metapost, it uses > lab:=thelabel@#(txt, pos); > to make sure that it can respect alignment, which your code cannot. > Don't suppose you worked out how to pass the correct alignment value to > it, did you? I have worked it out, see my

Re: [Therion] Need metapost wizard: new text label

2020-02-27 Thread Benedikt Hallinger
... maybe it would be a very good idea to write a subchapter into the thbook user symbol chapter? That contains all those pitfalls for metapost-th-symbols novices like me > Am 27.02.2020 um 09:56 schrieb Benedikt Hallinger : > > Good morning, and thank you for your comments! > Honestly, i have

Re: [Therion] Need metapost wizard: new text label

2020-02-27 Thread Benedikt Hallinger
Good morning, and thank you for your comments! Honestly, i have no clue what this all does, i just managed to copy paste until it magically startet to work :) If you want to upload it to the wiki, im honored and please modify to your wills, especially to make it not break anything existing.

Re: [Therion] Need metapost wizard: new text label

2020-02-27 Thread Tarquin Wilton-Jones via Therion
Nice one :) All simple enough to understand (I might put it on the wiki with some explanatory comments). > thelabel(txt, pos); I notice in the main Therion Metapost, it uses lab:=thelabel@#(txt, pos); to make sure that it can respect alignment, which your code cannot. Don't suppose you worked

Re: [Therion] Need metapost wizard: new text label

2020-02-26 Thread Benedikt Hallinger
Thank you very much! indeed i was really close. Time to go to bed, hopefully my eyes can find the bed :) It is also already mentioned correctly at the therion book. However, maybe it would be good to add footnote at page 35 so this is made more obvious. The working code below, in case

Re: [Therion] Need metapost wizard: new text label

2020-02-26 Thread Wookey
On 2020-02-26 23:47 +0100, Benedikt Hallinger wrote: > Hello, > meanwhile i tried to play more with this. > I'm nearly there, however i still have no clue how to read out the text > attribute i attached to the symbol in the th2. "txt := ATTR__text;" throws > metapost out the window. One

Re: [Therion] Need metapost wizard: new text label

2020-02-26 Thread Tarquin Wilton-Jones via Therion
Hi Benedikt, >   txt := "123"; >   txt := ATTR__text;   % does not work. How do i get the value from You are so nearly right. Two underscores for Therion's built in properties. One underscore for -attr properties. ATTR_text I have an example here:

Re: [Therion] Need metapost wizard: new text label

2020-02-26 Thread alastair gott
: Re: [Therion] Need metapost wizard: new text label Hello, meanwhile i tried to play more with this. I'm nearly there, however i still have no clue how to read out the text attribute i attached to the symbol in the th2. "txt := ATTR__text;" throws metapost out the window. The point

Re: [Therion] Need metapost wizard: new text label

2020-02-26 Thread Benedikt Hallinger
Hello, meanwhile i tried to play more with this. I'm nearly there, however i still have no clue how to read out the text attribute i attached to the symbol in the th2. "txt := ATTR__text;" throws metapost out the window. The point is defined like this: point 234.0909090909091

[Therion] Need metapost wizard: new text label

2020-02-19 Thread Benedikt Hallinger
Hi there, i need some new point symbol (text label). Its a simple text on white color within a box with rounded corners, like the attached image. My metapostskills are not good enough to get this to work... For now i would be happy to have such a user point symbol. It would be important that it