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).
> 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
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
> 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
>> 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
... 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
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.
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
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
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
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
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
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
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
14 matches
Mail list logo