<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>
<!--
/* Font Definitions */
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* 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;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:Arial;
color:windowtext;}
@page Section1
{size:612.0pt 792.0pt;
margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.Section1
{page:Section1;}
-->
</style>
</head>
<body lang=EN-US link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal><font size=2 face=Arial><span lang=EN-NZ style='font-size:
10.0pt;font-family:Arial'>I’m working on some custom headers, specific to
the projection that is being produced, however it would be more efficient to
have a single custom header that could automatically detect the projection and
include or exclude text appropriately.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=EN-NZ style='font-size:
10.0pt;font-family:Arial'>Unfortunately my <st1:State w:st="on"><st1:place
w:st="on">tex</st1:place></st1:State> coding is not up to it, and so I would
like some tips as to how to test for the projection so I can selectively use
the snippets below. What I am missing is the existing variable names and
a little bit of skill in conditional tests in <st1:State w:st="on"><st1:place
w:st="on">tex</st1:place></st1:State>.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=EN-NZ style='font-size:
10.0pt;font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=EN-NZ style='font-size:
10.0pt;font-family:Arial'>For example, I would like to include, below the scale
bar and above the map-comment;<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=EN-NZ style='font-size:
10.0pt;font-family:Arial'>-“Extended Elevation” for maps where the
projection is extended, <o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=EN-NZ style='font-size:
10.0pt;font-family:Arial'> </span></font><font
size=2 face=Calibri><span lang=EN-NZ style='font-size:10.0pt;font-family:Calibri'>{\the\legendtextsize\ss
{Developed elevation looking generally North} \par}<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Calibri><span lang=EN-NZ style='font-size:
10.0pt;font-family:Calibri'> <img
width=242 height=20 id="_x0000_i1028" src="cid:image001.jpg@01D0927A.20DB1B00"><o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=EN-NZ style='font-size:
10.0pt;font-family:Arial'>-“\outcsname Plan View<br>Arrow points to
\northdir north” for maps where the projection is plan<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Calibri><span lang=EN-NZ style='font-size:
10.0pt;font-family:Calibri'> \edef\tmp{\the\outcsname}
\ifx\tmp\empty \else<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Calibri><span lang=EN-NZ style='font-size:
10.0pt;font-family:Calibri'> {\the\legendtextsize\ss\the\outcsname
{ plan projection}\par}<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Calibri><span lang=EN-NZ style='font-size:
10.0pt;font-family:Calibri'> \fi<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Calibri><span lang=EN-NZ style='font-size:
10.0pt;font-family:Calibri'> \edef\tmp{\the\northdir}
\ifx\tmp\empty \else<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Calibri><span lang=EN-NZ style='font-size:
10.0pt;font-family:Calibri'> {\the\legendtextsize\ss
Arrow points to \the\northdir { north }\par\par} <o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Calibri><span lang=EN-NZ style='font-size:
10.0pt;font-family:Calibri'> \fi <o:p></o:p></span></font></p>
<p class=MsoNormal style='text-indent:36.0pt'><font size=2 face=Calibri><span
lang=EN-NZ style='font-size:10.0pt;font-family:Calibri'><img width=339
height=33 id="_x0000_i1025" src="cid:image005.jpg@01D0927A.20DB1B00"><o:p></o:p></span></font></p>
<p class=MsoNormal style='text-indent:36.0pt'><font size=2 face=Calibri><span
lang=EN-NZ style='font-size:10.0pt;font-family:Calibri'>I need to sort this out
so it gives a sensible result if the coordinate system is arbitrary, and hopefully
figure out a way to detect if the bearings are magnetic or adjusted by a
declination (and hence grid or true north), but first things first...<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=EN-NZ style='font-size:
10.0pt;font-family:Arial'>and -“\outcsname Elevation looking XXX
deg” for maps where the projection is [elevation XXX deg]<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=EN-NZ style='font-size:
10.0pt;font-family:Arial'> </span></font><font
size=2 face=Calibri><span lang=EN-NZ style='font-size:10.0pt;font-family:Calibri'>\edef\tmp{\the\outcsname}
\ifx\tmp\empty \else<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Calibri><span lang=EN-NZ style='font-size:
10.0pt;font-family:Calibri'> {\the\legendtextsize\ss\the\outcsname
{ elevation looking 020 deg}\par}<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Calibri><span lang=EN-NZ style='font-size:
10.0pt;font-family:Calibri'> \fi<o:p></o:p></span></font></p>
<p class=MsoNormal style='text-indent:36.0pt'><font size=2 face=Arial><span
lang=EN-NZ style='font-size:10.0pt;font-family:Arial'><img width=417 height=23
id="_x0000_i1030" src="cid:image006.jpg@01D0927A.20DB1B00"><o:p></o:p></span></font></p>
<p class=MsoNormal style='text-indent:36.0pt'><font size=2 face=Calibri><span
lang=EN-NZ style='font-size:10.0pt;font-family:Calibri'>As well as detecting that
the projection is ‘elevation’, I need a way of detecting what the
elevation bearing is, rather than hard coding it as I have done here<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=EN-NZ style='font-size:
10.0pt;font-family:Arial'>Ideas anyone?<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=EN-NZ style='font-size:
10.0pt;font-family:Arial'>Bruce</span></font><font size=2 face=Calibri><span
lang=EN-NZ style='font-size:10.0pt;font-family:Calibri'><o:p></o:p></span></font></p>
</div>
</body>
</html>