<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:st1="urn:schemas-microsoft-com:office:smarttags" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]--><o:SmartTagType
 namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="State"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 name="place"/>
<!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]-->
<style>
<!--
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
p.MsoPlainText, li.MsoPlainText, div.MsoPlainText
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";}
@page Section1
        {size:612.0pt 792.0pt;
        margin:72.0pt 77.95pt 72.0pt 77.95pt;}
div.Section1
        {page:Section1;}
-->
</style>

</head>

<body lang=EN-US link=blue vlink=purple>

<div class=Section1>

<p class=MsoPlainText><font size=2 face="Courier New"><span lang=EN-NZ
style='font-size:10.0pt'>Thanks Martin<o:p></o:p></span></font></p>

<p class=MsoPlainText><font size=2 face="Courier New"><span lang=EN-NZ
style='font-size:10.0pt'>I have made a clumsy crude attempt at getting therion’s
version and compile date into the map header/legend, as in the attached file, layout
and image below.  Hopefully ready for the new ‘thversion’
variable.<o:p></o:p></span></font></p>

<p class=MsoPlainText><font size=2 face="Courier New"><span lang=EN-NZ
style='font-size:10.0pt'><o:p> </o:p></span></font></p>

<p class=MsoPlainText><font size=2 face="Courier New"><span lang=EN-NZ
style='font-size:10.0pt'>I can see that the metapost variables year month etc
are there, but not sure how to access them, presumably via <st1:State w:st="on"><st1:place
 w:st="on">tex</st1:place></st1:State>, to get them into the header.<o:p></o:p></span></font></p>

<p class=MsoPlainText><font size=2 face="Courier New"><span lang=EN-NZ
style='font-size:10.0pt'>One way would be to modify the legend symbol to include
the compile date –really messy.<o:p></o:p></span></font></p>

<p class=MsoPlainText><font size=2 face="Courier New"><span lang=EN-NZ
style='font-size:10.0pt'>Another way would be to make a new entity like the
north arrow or scalebar, and include it in the legend – not sure how to
do this or if therion would recognise it if I did.<o:p></o:p></span></font></p>

<p class=MsoPlainText><font size=2 face="Courier New"><span lang=EN-NZ
style='font-size:10.0pt'>Or can <st1:place w:st="on"><st1:State w:st="on">tex</st1:State></st1:place>
extract the mpost variables directly?<o:p></o:p></span></font></p>

<p class=MsoPlainText><font size=2 face="Courier New"><span lang=EN-NZ
style='font-size:10.0pt'><o:p> </o:p></span></font></p>

<p class=MsoPlainText><font size=2 face="Courier New"><span lang=EN-NZ
style='font-size:10.0pt'>Any good ideas?<o:p></o:p></span></font></p>

<p class=MsoPlainText><font size=2 face="Courier New"><span lang=EN-NZ
style='font-size:10.0pt'>You can probably tell that I’m not much of a
coder…<o:p></o:p></span></font></p>

<p class=MsoPlainText><font size=2 face="Courier New"><span lang=EN-NZ
style='font-size:10.0pt'> <o:p></o:p></span></font></p>

<p class=MsoPlainText><font size=2 face="Courier New"><span lang=EN-NZ
style='font-size:10.0pt'>Bruce<o:p></o:p></span></font></p>

<p class=MsoPlainText><font size=2 face="Courier New"><span lang=EN-NZ
style='font-size:10.0pt'><o:p> </o:p></span></font></p>

<p class=MsoPlainText><font size=2 face="Courier New"><span lang=EN-NZ
style='font-size:10.0pt'>layout LayoutEnterExperimentalVersionDate<o:p></o:p></span></font></p>

<p class=MsoPlainText><font size=2 face="Courier New"><span lang=EN-NZ
style='font-size:10.0pt'>#check and enter the current th version and date each
time you compile<o:p></o:p></span></font></p>

<p class=MsoPlainText><font size=2 face="Courier New"><span lang=EN-NZ
style='font-size:10.0pt'>      code tex-map<o:p></o:p></span></font></p>

<p class=MsoPlainText><font size=2 face="Courier New"><span lang=EN-NZ
style='font-size:10.0pt'>            \newtoks\thversion
\thversion={5.3.8}<o:p></o:p></span></font></p>

<p class=MsoPlainText><font size=2 face="Courier New"><span lang=EN-NZ
style='font-size:10.0pt'>            \newtoks\today
\today={24Jun2011}<o:p></o:p></span></font></p>

<p class=MsoPlainText><font size=2 face="Courier New"><span lang=EN-NZ
style='font-size:10.0pt'>      endcode<o:p></o:p></span></font></p>

<p class=MsoPlainText><font size=2 face="Courier New"><span lang=EN-NZ
style='font-size:10.0pt'>      copy
LayoutExperimentalHeader #from LayoutStandards: sets up for inclusion of the above<o:p></o:p></span></font></p>

<p class=MsoPlainText><font size=2 face="Courier New"><span lang=EN-NZ
style='font-size:10.0pt'>endlayout LayoutEnterExperimentalVersionDate<o:p></o:p></span></font></p>

<p class=MsoPlainText><font size=2 face="Courier New"><span lang=EN-NZ
style='font-size:10.0pt'><img width=303 height=85 id="_x0000_i1025"
src="cid:image003.jpg@01CC3334.E0F94410"><o:p></o:p></span></font></p>

<p class=MsoPlainText><font size=2 face="Courier New"><span lang=EN-NZ
style='font-size:10.0pt'><img width=303 height=197 id="_x0000_i1026"
src="cid:image004.jpg@01CC3334.E0F94410"><o:p></o:p></span></font></p>

<p class=MsoPlainText><font size=2 face="Courier New"><span lang=EN-NZ
style='font-size:10.0pt'><o:p> </o:p></span></font></p>

<p class=MsoPlainText><font size=2 face="Courier New"><span lang=EN-NZ
style='font-size:10.0pt'><o:p> </o:p></span></font></p>

<p class=MsoPlainText><font size=2 face="Courier New"><span lang=EN-NZ
style='font-size:10.0pt'>> Is it possible to expose the version number of
therion to metapost?<o:p></o:p></span></font></p>

<p class=MsoPlainText><font size=2 face="Courier New"><span lang=EN-NZ
style='font-size:10.0pt'><o:p> </o:p></span></font></p>

<p class=MsoPlainText><font size=2 face="Courier New"><span lang=EN-NZ
style='font-size:10.0pt'>this could be added<o:p></o:p></span></font></p>

<p class=MsoPlainText><font size=2 face="Courier New"><span lang=EN-NZ
style='font-size:10.0pt'><o:p> </o:p></span></font></p>

<p class=MsoPlainText><font size=2 face="Courier New"><span lang=EN-NZ
style='font-size:10.0pt'>> And the current system date and time?<o:p></o:p></span></font></p>

<p class=MsoPlainText><font size=2 face="Courier New"><span lang=EN-NZ
style='font-size:10.0pt'><o:p> </o:p></span></font></p>

<p class=MsoPlainText><font size=2 face="Courier New"><span lang=EN-NZ
style='font-size:10.0pt'>there are following internal numeric variables in
metapost:<o:p></o:p></span></font></p>

<p class=MsoPlainText><font size=2 face="Courier New"><span lang=EN-NZ
style='font-size:10.0pt'><o:p> </o:p></span></font></p>

<p class=MsoPlainText><font size=2 face="Courier New"><span lang=EN-NZ
style='font-size:10.0pt'>hour, minute, day, month, year<o:p></o:p></span></font></p>

<p class=MsoPlainText><font size=2 face="Courier New"><span lang=EN-NZ
style='font-size:10.0pt'><o:p> </o:p></span></font></p>

<p class=MsoPlainText><font size=2 face="Courier New"><span lang=EN-NZ
style='font-size:10.0pt'>martin<o:p></o:p></span></font></p>

<p class=MsoPlainText><font size=2 face="Courier New"><span lang=EN-NZ
style='font-size:10.0pt'>_______________________________________________<o:p></o:p></span></font></p>

<p class=MsoPlainText><font size=2 face="Courier New"><span lang=EN-NZ
style='font-size:10.0pt'><o:p> </o:p></span></font></p>

</div>

</body>

</html>