symbol-color special north-arrow [0 100 100] symbol-colour special scale-bar [0 100 100] Seem not to work, they are still coming out black?? Tried both spellings Also using symbol-colour point water-flow [0 0 100] which works As a drastic action tried symbol-colour group all [0 100 100] which looks like it works on all the symbols I use but not the north arrow or the scale bar Andrew PS also struggling to get code tex-map \legendwidth=20cm to do anything!!
On Wed, Apr 17, 2013 at 11:44 PM, Andrew Atkinson <andrew@wotcc.org.uk> wrote:
symbol-color special north-arrow [0 100 100] symbol-colour special scale-bar [0 100 100]
Seem not to work, they are still coming out black?? Tried both spellings
It seems to be a bug.
PS also struggling to get
code tex-map \legendwidth=20cm
to do anything!!
It should; except in the case when you use text formatting tag <br> in a comment (the text is formatted as a table than and is not affected by legend width setting). Try setting it to e.g. 2cm to see if it changes anything. BTW, there is a newer way to set it using a special layout option legend-width 20 cm in the layout section (outside code tex-map). Thbook needs some clarification at this point. Martin
It might not be the text width, but it seems to appear when I add the comment. I have split the legend, so believe I have to use tex-map. Attached is the full thconfig file but I think that the relevant bit is code tex-map \comment={\color[100 100 100]\copyright The google copyright statement!!!!}{} #\legendtextcolor={\color[100 100 100]} #\legendtitle{\color[100 100 100]Key}{} \def\maplayout{ \legendbox{60}{10}{nw}{ \northarrow \bigskip \scalebar # \bigskip # \bigskip #\the\comment } # \legendbox{0}{0}{nw}{ # \the\comment # } \legendbox{0}{30}{sw}{ \formattedlegend } } endcode This gives what I want, http://wotcc.org.uk/__Transfer/Res_Goughs_overviewNoComment.pdf (although control over colour would be nice so I can make the sump map blue) however as soon as I add the comment under the scale bar code tex-map \comment={\color[100 100 100]\copyright The google copyright statement!!!!}{} #\legendtextcolor={\color[100 100 100]} #\legendtitle{\color[100 100 100]Key}{} \def\maplayout{ \legendbox{60}{10}{nw}{ \northarrow \bigskip \scalebar \bigskip \bigskip \the\comment } # \legendbox{0}{0}{nw}{ # \the\comment # } \legendbox{0}{30}{sw}{ \formattedlegend } } endcode it expands to the right by quiet a bit http://wotcc.org.uk/__Transfer/Res_Goughs_overviewWithComment.pdf So I thought that maybe with /legendwidth I could deal with this. Try code tex-map \comment={\color[100 100 100]\copyright The google copyright statement!!!!}{} #\legendtextcolor={\color[100 100 100]} #\legendtitle{\color[100 100 100]Key}{} \legendwidth=2cm \def\maplayout{ \legendbox{60}{10}{nw}{ \northarrow \bigskip \scalebar \bigskip \bigskip \the\comment } # \legendbox{0}{0}{nw}{ # \the\comment # } \legendbox{0}{30}{sw}{ \formattedlegend } } endcode endlayout But even at 2cm, nothing happens, I would expect the text to be put on multiple rows, even if that is not what is causing the expansion. Also tried legend-width 2 cm but same output Am I missing something The full data set is downloadable from http://www.cave-registry.org.uk/svn/CheddarCatchment/ Most of the data is downloadable anonymously but to get the background image a pw will be needed, which I am happy to give to anyone on the therion list Andrew On 18/04/13 21:52, Martin Budaj wrote:
code tex-map \legendwidth=20cm
to do anything!! It should; except in the case when you use text formatting tag <br> in a comment (the text is formatted as a table than and is not affected by legend width setting). Try setting it to e.g. 2cm to see if it changes anything.
BTW, there is a newer way to set it using a special layout option
legend-width 20 cm
in the layout section (outside code tex-map). Thbook needs some clarification at this point.
On Fri, Apr 19, 2013 at 9:06 AM, Andrew Atkinson <andrew@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
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@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@speleo.sk http://mailman.speleo.sk/mailman/listinfo/therion
On Tue, Apr 23, 2013 at 9:33 AM, Andrew Atkinson <andrew@wotcc.org.uk> wrote:
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
I just checked that \hsize default is really the map width without overlap and updated the wiki page accordingly. Martin
participants (2)
-
Andrew Atkinson -
Martin Budaj