[Therion] Legend Size

Cooper, Ben ben.cooper at siemens.com
Fri Dec 7 10:38:33 CET 2007


Thanks Martin.  I'll try it out.
- Ben 

> -----Original Message-----
> From: therion-bounces at speleo.sk 
> [mailto:therion-bounces at speleo.sk] On Behalf Of Martin Budaj
> Sent: 06 December 2007 18:34
> To: therion at speleo.sk
> Subject: Re: [Therion] Legend Size
> 
> The latest snapshot (2007-12-06) makes this much easier. You can
> change both color and size of the legend text using the following code
> in the layout
> 
> code tex-map
>   \legendwidth=20cm
>   \legendtextcolor={\color[0 0 100]}      # RGB values 0--100
>   \legendtextsize={\size[20]}
>   \legendtextheadersize={\size[60]}
> 
> Martin
> 
> 
> On Nov 27, 2007 12:42 PM, Stacho Mudrak <s.m at group-s.sk> wrote:
> > Quoting "Cooper, Ben" <ben.cooper at siemens.com>:
> > > Can anyone help?  Is there a way of changing the font 
> size and North
> > > Arrow size of the Legend text without changing the scale?
> >
> > It is a TeX specific question - but MartinB is quite busy 
> right now, so I will
> > try to help. You need to predefine TeX macro called 
> \legendcontent, that can be
> > found in tex/therion.tex file (see therion sources). You 
> may do it in your
> > layout. Example:
> >
> > layout mylegend
> >
> > code tex-map
> > \legendcontent={%
> >   \hsize=\legendwidth
> >   \ifnortharrow\vbox to 0pt{\line{\hfil\northarrow}\vss}\fi
> >   \edef\tmp{\the\cavename} \ifx\tmp\empty \else
> >     \color[0 0 0]{\size[26]\the\cavename}\color[0 0 0]\vskip1cm
> >   \fi
> >   \ifscalebar\scalebar\vskip1cm\fi
> >   {\rightskip=0pt plus 3em\parskip=3bp
> >     \edef\tmp{\the\comment} \ifx\tmp\empty \else
> >       {\size[12]\the\comment} \par\medskip
> >     \fi
> >     \everypar{\hangindent=2em\hangafter=1}
> >     \edef\tmp{\the\cavelength} \ifx\tmp\empty \else
> >       {\size[12]\si\the\cavelengthtitle: \ss\the\cavelength\par}
> >     \fi
> >     \edef\tmp{\the\cavedepth} \ifx\tmp\empty \else
> >       {\size[12]\si\the\cavedepthtitle: \ss\the\cavedepth\par}
> >     \fi
> >     \edef\tmp{\the\exploteam} \ifx\tmp\empty \else
> >       {\size[12]\si\the\explotitle:
> > \ss\the\exploteam\quad\si\the\explodate\par}
> >     \fi
> >     \edef\tmp{\the\topoteam} \ifx\tmp\empty \else
> >       {\size[12]\si\the\topotitle: 
> \ss\the\topoteam\quad\si\the\topodate\par}
> >     \fi
> >     \edef\tmp{\the\cartoteam} \ifx\tmp\empty \else
> >       {\size[12]\si\the\cartotitle:
> > \ss\the\cartoteam\quad\si\the\cartodate\par}
> >     \fi
> >     \edef\tmp{\the\copyrights} \ifx\tmp\empty \else
> >       {\size[12]\ss\the\copyrights\par}
> >     \fi
> >   }
> >   \formattedlegend
> > }
> > endcode
> >
> > endlayout
> >
> > export map -layout mylegend
> >
> > As you can see \size[12] is macro for setting font size. 
> You may change font
> > sizes for all items as you need.
> >
> > HTH, S.
> >
> > _______________________________________________
> > Therion mailing list
> > Therion at speleo.sk
> > http://www.speleo.sk/mailman/listinfo/therion
> >
> _______________________________________________
> Therion mailing list
> Therion at speleo.sk
> http://www.speleo.sk/mailman/listinfo/therion
> 
> --
> This email has been verified as Virus free
> Virus Protection and more available at http://www.plus.net
> 



More information about the Therion mailing list