[Therion] Custom headers to distinguish between projections - plan, extended, elevation xxx deg
Bruce
bruce at tomo.co.nz
Tue May 19 11:28:44 CEST 2015
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.
Unfortunately my tex 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 tex.
For example, I would like to include, below the scale bar and above the
map-comment;
-"Extended Elevation" for maps where the projection is extended,
{\the\legendtextsize\ss {Developed elevation looking generally
North} \par}
-"\outcsname Plan View<br>Arrow points to \northdir north" for maps where
the projection is plan
\edef\tmp{\the\outcsname} \ifx\tmp\empty \else
{\the\legendtextsize\ss\the\outcsname { plan
projection}\par}
\fi
\edef\tmp{\the\northdir} \ifx\tmp\empty \else
{\the\legendtextsize\ss Arrow points to \the\northdir {
north }\par\par}
\fi
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...
and -"\outcsname Elevation looking XXX deg" for maps where the projection
is [elevation XXX deg]
\edef\tmp{\the\outcsname} \ifx\tmp\empty \else
{\the\legendtextsize\ss\the\outcsname { elevation looking
020 deg}\par}
\fi
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
Ideas anyone?
Bruce
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.speleo.sk/pipermail/therion/attachments/20150519/7afb39dd/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.jpg
Type: image/jpeg
Size: 2171 bytes
Desc: image001.jpg
URL: <http://mailman.speleo.sk/pipermail/therion/attachments/20150519/7afb39dd/attachment.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image005.jpg
Type: image/jpeg
Size: 3247 bytes
Desc: image005.jpg
URL: <http://mailman.speleo.sk/pipermail/therion/attachments/20150519/7afb39dd/attachment-0001.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image006.jpg
Type: image/jpeg
Size: 3507 bytes
Desc: image006.jpg
URL: <http://mailman.speleo.sk/pipermail/therion/attachments/20150519/7afb39dd/attachment-0002.jpg>
More information about the Therion
mailing list