Change Size of Legensymbols and Text
Hi I'm wondering if it's possible to change the size of the legendsymbols and it's text in a simple way. Does anyone have an idea? Within the layout passage in the th-config file I use a separate legendbox for just the legendsymbols: ... \legendbox{10}{10}{SE}{\legendsymbols} ... \legendsymbols is defined as follows: code tex-map \def\legendsymbols{ \hsize=\legendwidth \formattedlegend } As the map is pretty big the legendsymbols are pretty small in comparision. And there is a lot free space for much bigger legendsymbols. cheers, Torsten
You need to add this to your th config. Tweak the numbers to find what works for you. Code metapost def draw_legend_box = %make the objects in the legend boxes bigger currentpicture := currentpicture scaled 7.0; clip currentpicture to unitsquare scaled 20u; drawoptions(); pickup PenB; draw unitsquare scaled 20u ; enddef; %clear the background of the larger legend boxes def clean_legend_box = unfill unitsquare scaled 20u; enddef; %change the value of inscale to fill the legend boxes def inscale = %xscaled legend_scale yscaled (0.618*legend_scale) xscaled legend_scale yscaled legend_scale enddef; endcode code tex-map \def\maplayout{ \legendbox{75}{80}{NW}{ \legendwidth 140 cm \legendtextsize={\size[54]} \hsize=\legendwidth \input th_legend } } endcode #end of TeX code You may also find this useful, from memory it was how I sorted the altitude legend box too. http://therion.speleo.sk/wiki/doku.php/tips#multilingual_legend_legend_forma... This works for me for virtually all the symbols except for passage height which needs some additional thought. Enjoy! Henry Bennett -----Original Message----- From: therion-bounces@speleo.sk [mailto:therion-bounces@speleo.sk] On Behalf Of Torsten Schnitter Sent: 08 January 2016 11:04 To: therion@speleo.sk Subject: [Therion] Change Size of Legensymbols and Text Hi I'm wondering if it's possible to change the size of the legendsymbols and it's text in a simple way. Does anyone have an idea? Within the layout passage in the th-config file I use a separate legendbox for just the legendsymbols: ... \legendbox{10}{10}{SE}{\legendsymbols} ... \legendsymbols is defined as follows: code tex-map \def\legendsymbols{ \hsize=\legendwidth \formattedlegend } As the map is pretty big the legendsymbols are pretty small in comparision. And there is a lot free space for much bigger legendsymbols. cheers, Torsten _______________________________________________ Therion mailing list Therion@speleo.sk http://mailman.speleo.sk/mailman/listinfo/therion Dell Corporation Limited is authorised and regulated in the UK by the Financial Conduct Authority for consumer credit brokerage. Registered in England and Wales. Company Registration Number: 2081369 Registered address: Dell House, The Boulevard, Cain Road, Bracknell, Berkshire, RG12 1LF, UK. Company details for other Dell UK entities can be found on www.dell.co.uk.
Hi Henry Thanks a lot for your help. :-) Will figure out if that works for me. cheers, Torsten
Henry_Bennett@Dell.com hat am 8. Januar 2016 um 20:47 geschrieben:
You need to add this to your th config. Tweak the numbers to find what works for you.
Code metapost def draw_legend_box = %make the objects in the legend boxes bigger currentpicture := currentpicture scaled 7.0; clip currentpicture to unitsquare scaled 20u; drawoptions(); pickup PenB; draw unitsquare scaled 20u ; enddef;
%clear the background of the larger legend boxes def clean_legend_box = unfill unitsquare scaled 20u; enddef;
%change the value of inscale to fill the legend boxes def inscale = %xscaled legend_scale yscaled (0.618*legend_scale) xscaled legend_scale yscaled legend_scale enddef; endcode
code tex-map \def\maplayout{ \legendbox{75}{80}{NW}{ \legendwidth 140 cm \legendtextsize={\size[54]} \hsize=\legendwidth \input th_legend } } endcode #end of TeX code
You may also find this useful, from memory it was how I sorted the altitude legend box too. http://therion.speleo.sk/wiki/doku.php/tips#multilingual_legend_legend_forma...
This works for me for virtually all the symbols except for passage height which needs some additional thought.
Enjoy!
Henry Bennett
-----Original Message----- From: therion-bounces@speleo.sk [mailto:therion-bounces@speleo.sk] On Behalf Of Torsten Schnitter Sent: 08 January 2016 11:04 To: therion@speleo.sk Subject: [Therion] Change Size of Legensymbols and Text
Hi
I'm wondering if it's possible to change the size of the legendsymbols and it's text in a simple way. Does anyone have an idea?
Within the layout passage in the th-config file I use a separate legendbox for just the legendsymbols: ... \legendbox{10}{10}{SE}{\legendsymbols} ... \legendsymbols is defined as follows: code tex-map \def\legendsymbols{ \hsize=\legendwidth \formattedlegend }
As the map is pretty big the legendsymbols are pretty small in comparision. And there is a lot free space for much bigger legendsymbols.
cheers, Torsten _______________________________________________ Therion mailing list Therion@speleo.sk http://mailman.speleo.sk/mailman/listinfo/therion Dell Corporation Limited is authorised and regulated in the UK by the Financial Conduct Authority for consumer credit brokerage. Registered in England and Wales. Company Registration Number: 2081369 Registered address: Dell House, The Boulevard, Cain Road, Bracknell, Berkshire, RG12 1LF, UK. Company details for other Dell UK entities can be found on www.dell.co.uk. _______________________________________________ Therion mailing list Therion@speleo.sk http://mailman.speleo.sk/mailman/listinfo/therion
participants (2)
-
Henry_Bennett@Dell.com -
Torsten Schnitter