[Therion] \legendwidth was: symbol-color special
Andrew Atkinson
andrew at wotcc.org.uk
Tue Apr 23 09:33:51 CEST 2013
Thanks, excellently clear and works perfectly
I have tried to translate put all these emails only the wiki if you
could spare a moment to check I have not mis-understood anything it is
the 3rd one down on
http://therion.speleo.sk/wiki/doku.php/tex#tex-map
thanks
Andrew
On 22/04/13 21:35, Martin Budaj wrote:
> On Fri, Apr 19, 2013 at 9:06 AM, Andrew Atkinson <andrew at wotcc.org.uk> wrote:
>
>> however as soon as I add the comment under the scale bar
>>
>> \legendbox{60}{10}{nw}{
>> \northarrow
>> \bigskip
>> \scalebar
>> \bigskip
>> \bigskip
>> \the\comment
>> }
>>
>> it expands to the right by quiet a bit
>
> The value of \legendwith is evaluated only in the predefined macro
> \legendcontent which prints the complete legend. In your case
> (\legendbox customisation) you need to set the width of the \legendbox
> in this way (guess without compiling your data):
>
> \legendbox{60}{10}{nw}{
> \hsize=\legendwidth %% or directly e.g. \hsize=5 cm
> \northarrow
> \bigskip
> \scalebar
> \bigskip
> \bigskip
> \the\comment
> }
>
> The reason for the right margin expansion in your example is that TeX
> typesets \the\comment in a paragraph, the witdth of which is set to
> the current \hsize (which is the width of map without margins I
> think).
>
> cheers,
> Martin
> _______________________________________________
> Therion mailing list
> Therion at speleo.sk
> http://mailman.speleo.sk/mailman/listinfo/therion
>
More information about the Therion
mailing list