How to add 1.5 x linefeed to a text string
Good evening I'm wondering if there is a way to add a 1.5x <br> linefeed to text strings in Therion? I can make the same effect using the tex parameter \medskip as demonstrated in the Therion \legendcontent routine. But sometimes it would be nice to do it in drawing labels and in strings such as map-comment, were it is not practicable to use tex. As in this example: The text highlighted yellow is a map-comment, like this: map-comment "NZVD2016 / New Zealand Vertical Datum 2016 \ <br>This map represents Deer Pot on the day it was connected to ." . and the vertical 1.5x linefeeds are embedded in the \legendcontent tex. I want to add an extra half <br> space between the two yellow lines. The only way I can think of is a bit of a hack. map-comment "NZVD2016 / New Zealand Vertical Datum 2016 \ <size:40><br><size:12>This map represents Deer Pot on the day it was connected to." but it does not work! It seems that a <br> and a 'space' does not render as anything other than the highest character on the line, regardless of the 'size' of the break. Any ideas? Regards Bruce
I’m wondering if there is a way to add a 1.5x <br> linefeed to text strings in Therion?
Not sure if there is a proper way, but you can just put tex into the text input in xtherion, right? If so, you could try foo \thtinysize <br><br> \thnormalsize bar That's quite hacky though ;)
I'm wondering if there is a way to add a 1.5x <br> linefeed to text strings in Therion?
Not sure if there is a proper way, but you can just put tex into the text input in xtherion, right? If so, you could try foo \thtinysize <br><br> \thnormalsize bar
Could not make that work. No errors, Therion just echos what is typed in the text string. Some examples of what I tried... -text "25 <\thtinysize> P" -scale l -text "25 \thtinysize P" -scale l map-comment "NZVD2016 / New Zealand Vertical Datum 2016 \thtinysize <br>This map represents..." Perhaps there is a way to force interpretation of part of a text string as a tex control? Bruce
Could not make that work. No errors, Therion just echos what is typed in the text string.
I only ever used it directly in the metapost (it's in my code for creating custom labels). In the .th, Therion turns everything into \char103 escape sequences. In the metapost, you have more control. I don't know of a way to inject tex control characters directly from a .th but I have no doubt someone else on this mailing list will know a lot more than me. You could create custom labels with your own string replacement to add your own control character, like <lb> instead of <br>, but that only works for symbols. Not sure how to do that for strings in the cave info.
Thanks Tarquin I am able in my bumbling way to work with metapost and tex, but my use case here does not warrant that and feels better suited to using standard features. I'll leave this one for now. Possibly there is a case for a <1.5br> control to compliment the existing <br> <left> <right> <thsp> etc in some future update. Bruce -----Original Message----- From: Therion <therion-bounces@speleo.sk> On Behalf Of Tarquin Wilton-Jones via Therion Sent: Friday, 4 August 2023 09:21 To: therion@speleo.sk Cc: Tarquin Wilton-Jones <tarquin.wilton-jones@ntlworld.com> Subject: Re: [Therion] How to add 1.5 x linefeed to a text string
Could not make that work. No errors, Therion just echos what is typed in the text string.
I only ever used it directly in the metapost (it's in my code for creating custom labels). In the .th, Therion turns everything into \char103 escape sequences. In the metapost, you have more control. I don't know of a way to inject tex control characters directly from a .th but I have no doubt someone else on this mailing list will know a lot more than me. You could create custom labels with your own string replacement to add your own control character, like <lb> instead of <br>, but that only works for symbols. Not sure how to do that for strings in the cave info. _______________________________________________ Therion mailing list Therion@speleo.sk https://mailman.speleo.sk/listinfo/therion
participants (2)
-
Bruce Mutton -
Tarquin Wilton-Jones