[Therion] Change Size of Legensymbols and Text

Bruce Mutton bruce at tomo.co.nz
Fri Jan 8 22:21:39 CET 2016


    
Thanks HenryOn  a slightly related topic, does any one know how to get Staton flag symbols, such as doline, sink, spring, entance, overhang to appear in the legend?Or at least the reason why they do not?
Bruce
Sent from my Samsung device, hence the typo's

-------- Original message --------
From: Henry_Bennett at Dell.com 
Date: 09/01/2016  08:47  (GMT+12:00) 
To: therion at speleo.sk 
Subject: Re: [Therion] Change Size of Legensymbols and Text 



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_formatting
 
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 at speleo.sk [mailto:therion-bounces at speleo.sk] On Behalf Of Torsten Schnitter

Sent: 08 January 2016 11:04

To: therion at 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 at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.speleo.sk/pipermail/therion/attachments/20160109/475d3786/attachment.htm>


More information about the Therion mailing list