On 29/09/2019 07:03, Bruce Mutton wrote:
Following Andrew’s questions about code tex-map and not being able to get \formattedlegend to work, I have again experimented to try to resolve some issues I have been having.
I hope you managed to get \formattedlegend to work Andrew. I did some experimentation and did not have too much difficulty in getting it to plot in a customised \maplayout. One insight I got from Audrey’s post is that \input th_legend will do almost the same thing as \formattedlegend – the plot just does not have a title. That will be useful sometimes.
Unfortunately I have not got it to work, I did find a dirty way around it. I cannot get \input th_legend to work either, jsut get pdftec exit code -- 256 where ever I put it. A search took me to this page under the title of To separate out legend, scale bar and north arrow (Andrey Kozhenkov) I found some code, but again could not get that to work, even with a copy and paste and removing the image line. Yes, I also do not know enough about tex, and learning it when most of the standard codes do not seem to work and what we need to know are therion macros is not proving easy
I don’t think I understand tex, tex-map or \maplayout well enough to be able to provide any insight beyond what has already been given however.
On a similar vein, invoking a custom \maplayout
code tex-map
\def\maplayout{ … }
causes any layout map-image specifications to silently fail.
I am aware that there is a work around, as described in the wiki <https://therion.speleo.sk/wiki/tex?s%5b%5d=tex&s%5b%5d=map#changing_the_look_or_layout_of_a_map_output>, however I’m not keen on complicating my projects in that way. I want a typical Therion user to be able to pick them up without having to know about environment variables and tex.
And then I noticed this entry in the wiki
https://therion.speleo.sk/wiki/tips?s[]=tex&s[]=map#map-image_and_custom_legendbox <https://therion.speleo.sk/wiki/tips?s%5b%5d=tex&s%5b%5d=map#map-image_and_custom_legendbox>
This suggests to me that it may be possible to retain the use of map-image simply by defining multiple \maplayouts and presumably they are both invoked in the same pdf output
However I have just tried several variations of renamed \maplayout in conjunction with a map-image, and I can only ever get either the ‘layout map-header’ to plot with map-images, or a custom \maplayout without map-images. A renamed \new_maplayout never plots.
So is there something missing from the wiki entry, is it misleading, or am I missing something?
I also found that although renaming maplayout did make the map-image work, the renames maplayout was not used, I assume because all we are doing in the code is defining it, but it is no called. I could find no way to call it. thanks Andrew
_______________________________________________ Therion mailing list Therion@speleo.sk https://mailman.speleo.sk/listinfo/therion