[Therion] Legendsymbols - vertical distance between boxes

Torsten Schnitter torsten.schnitter at netcologne.de
Wed Feb 28 01:11:17 CET 2018


Hi

I figured out that it's most likely the last line of code to change the distance of the symbol boxes:
\hsize=\tmpdimen\rightskip=0pt plus \tmpdimen minus 0pt\relax\the\legendtextsize #2\vskip10pt}\hss}

Someone have to change the statement "vskip..." and the distance is changing.

But somehow confusing is that not all distances are the same...
If you have a closer look to it you will see that some distances are less than other.
In the attached screenshot you can see that the red marked distances are different to the blue ones.
(I only changed this one statement mentioned above from "vskip1dd" to "vskip10pt")
Can anyone explain this strange behaviour? Henry!?

Thanks.
Torsten

> Torsten Schnitter via Therion <therion at speleo.sk> hat am 24. Februar 2018 um 18:14 geschrieben:
> 
> 
>     Hi
> 
>     Can anyone describe how to change the vertical distance between the symbol boxes inside the legend symbols?
>     I asume it should be done somehow within this code (or not?):
> 
>       code tex-map
>         \def\legendsymbolswidth1{18 cm}
>         \def\legendsymbolbox#1#2{
>           \setbox\tmpboxa=\hbox{\pdfrefxform#1}
>           \setbox\tmpboxb=\hbox{\the\legendtextsize(}
>           \legendsymbolwd=\wd\tmpboxa
>           \legendsymbolht=\ht\tmpboxa
>           \advance\legendsymbolht by -\ht\tmpboxb
>      
>           \advance\legendsymbolht by -1dd
>           \tmpdimen=\hsize
>             \advance\tmpdimen by 10pt
>             \divide\tmpdimen by\legendcolumns
>             \advance\tmpdimen by-10pt
>           \hbox to \tmpdimen{
>             \box\tmpboxa\kern10pt\raise\legendsymbolht\vtop{
>               \advance\tmpdimen by -\legendsymbolwd
>               \advance\tmpdimen by -10pt
>               \hsize=\tmpdimen\rightskip=0pt plus \tmpdimen minus 0pt\relax\the\legendtextsize #2\vskip1dd}\hss}
>         }
>      
>         \def\legendsymbols{
>           \hsize=\legendsymbolswidth1
>           \formattedlegend
>         }
>       endcode
> 
>     Thanks,
>     Torsten
> 


 

> _______________________________________________
>     Therion mailing list
>     Therion at speleo.sk
>     https://mailman.speleo.sk/listinfo/therion
> 


 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.speleo.sk/pipermail/therion/attachments/20180228/27af74a1/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Distance-Legend-Boxes-Different.JPG
Type: image/jpeg
Size: 43830 bytes
Desc: not available
URL: <http://mailman.speleo.sk/pipermail/therion/attachments/20180228/27af74a1/attachment.jpe>


More information about the Therion mailing list