[Therion] Legendsymbols - vertical distance between boxes

Martin Sluka martinsluka at mac.com
Wed Feb 28 09:18:47 CET 2018


This could help:

https://tex.stackexchange.com/questions/8260/what-are-the-various-units-ex-em-in-pt-bp-dd-pc-expressed-in-mm <https://tex.stackexchange.com/questions/8260/what-are-the-various-units-ex-em-in-pt-bp-dd-pc-expressed-in-mm>

Martin S.


> 28. 2. 2018 v 1:11, Torsten Schnitter via Therion <therion at speleo.sk>:
> 
> 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 
> 
>  
> 
> <Distance-Legend-Boxes-Different.JPG>_______________________________________________
> 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/8b910e13/attachment.htm>


More information about the Therion mailing list