<html><head></head><body><div style="font-family: Verdana;font-size: 12.0px;"><div>Hi Martin,</div>
<div> </div>
<div>many thanks for the code. Admitting that I am a Tex novice I played around with it (at least I was able to finde the missing } at the end straight away :).</div>
<div>I tried the code on several files and it does the magic.</div>
<div>Now the only question is how to get the labels in normal font and not italic...</div>
<div> </div>
<div>For people who are interested, here is my solution with some comments on what to do (as far as my knollege goes):</div>
<div> </div>
<div>
<div>#metapost and tex changes to extend elevation gridlines and place altitude labels above grey gridline</div>
<div>#works only for exteded elevation</div>
<div> </div>
<div>#make gridline continuos and longer on the ends <br/>
code metapost <br/>
def s_vgrid (expr xpos, ypos, xsize, ysize) =<br/>
pickup PenD;<br/>
draw<br/>
(if xpos < 0: -22 else: -xsize/2 fi, 0) %-22 extends the grid to the left<br/>
--<br/>
(if xpos > 0: 24 else: xsize/2 fi, 0) %24 extends grid to the right.<br/>
%note that it is slightly longer to match the label-length<br/>
withcolor 0.1black+0.7white; %+0.7white makes the gridline grey instead of black<br/>
enddef;<br/>
endcode </div>
<div> </div>
<div>#change position of labels outside the mapbox and raise them ontop the grid<br/>
code tex-map<br/>
\def\gridcoord#1#2{\hbox to0pt{%<br/>
\ifnum#1=3\hss\fi<br/>
\ifnum#1=9\hss\fi<br/>
\vbox to0pt{%<br/>
\vss<br/>
\kern-10pt% %places the label above the gridline<br/>
\hbox{\kern2pt#2\kern0pt} %'#2' = altitude label<br/>
\kern2pt% %shifts back to normal placement for following labels<br/>
\vss<br/>
}%<br/>
\ifnum#1=1\hss\fi<br/>
\ifnum#1=7\hss\fi<br/>
}%<br/>
}<br/>
endcode</div>
</div>
<div>
<div>
<div>thanks a lot,</div>
<div>Axel</div>
<div name="quote" style="margin:10px 5px 5px 10px; padding: 10px 0 10px 10px; border-left:2px solid #C3D9E5; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">
<div style="margin:0 0 10px 0;"><b>Gesendet:</b> Montag, 27. Juli 2020 um 21:43 Uhr<br/>
<b>Von:</b> "Martin Budaj" <m.budaj@gmail.com><br/>
<b>An:</b> "List for Therion users" <therion@speleo.sk><br/>
<b>Betreff:</b> Re: [Therion] Extended Gridl ines longer and other font for altitude</div>
<div name="quoted-content">
<div>Hi,
<div>
<div>you can modify the appearance of lines (using s_vgrid MetaPost macro as you tried) and also the alignment of the altitude labels (using \gridcoord TeX macro).</div>
<div> </div>
<div>This modification (it's simplified and wouldn't work for the plan projection) displays coordinates on the outer side of the imaginary map box, vertically centered on the elevation lines:</div>
<div> </div>
<div>\def\gridcoord#1#2{\hbox to0pt{%<br/>
\ifnum#1=3\hss\fi<br/>
\ifnum#1=9\hss\fi<br/>
\vbox to0pt{%<br/>
\vss<br/>
\kern2pt%<br/>
\hbox{\kern2pt#2\kern2pt}%<br/>
\kern2pt%<br/>
\vss<br/>
}%<br/>
\ifnum#1=1\hss\fi<br/>
\ifnum#1=7\hss\fi<br/>
}%</div>
<div> </div>
<div>Cheers</div>
<div>Martin</div>
<div> </div>
</div>
</div>
<div class="gmail_quote">
<div class="gmail_attr">On Sun, Jul 26, 2020 at 10:55 AM Axel <<a href="mailto:dropstone@gmx.de" onclick="parent.window.location.href='mailto:dropstone@gmx.de'; return false;" target="_blank">dropstone@gmx.de</a>> wrote:</div>
<blockquote class="gmail_quote" style="margin: 0.0px 0.0px 0.0px 0.8ex;border-left: 1.0px solid rgb(204,204,204);padding-left: 1.0ex;">
<div>
<div style="font-family: Verdana;font-size: 12.0px;">
<div>Hi all,</div>
<div> </div>
<div>I am looking for a way to extend the gridlines in an extended elev to the left and right that the alitude notations don't cover the survey.<br/>
If u think of the survey as a box it would be good to have the altitude-notations outside this box (in fact I think this is a bug).<br/>
</div>
<div>I tried to change the s_vgrid definition a bit but only achieved that my lines get longer and are dashed again (if xpos < -1: 0). Text won't move though...</div>
<div>It also would be nice to get a non italic font for the notations. I guess the key is to know where Therion actually generates the grid?</div>
<div> </div>
<div>would be greate if someone could give me a kick in the right direction</div>
<div> </div>
<div>cheers,</div>
<div>Axel Hack</div>
</div>
</div>
_______________________________________________<br/>
Therion mailing list<br/>
<a href="mailto:Therion@speleo.sk" onclick="parent.window.location.href='mailto:Therion@speleo.sk'; return false;" target="_blank">Therion@speleo.sk</a><br/>
<a href="https://mailman.speleo.sk/listinfo/therion" target="_blank">https://mailman.speleo.sk/listinfo/therion</a></blockquote>
</div>
_______________________________________________ Therion mailing list Therion@speleo.sk <a href="https://mailman.speleo.sk/listinfo/therion" target="_blank">https://mailman.speleo.sk/listinfo/therion</a></div>
</div>
</div>
</div></div></body></html>