[Therion] FW: 2D output header title when therion can't decide which one to use

Bruce dangle at tomo.co.nz
Fri Feb 12 23:00:28 CET 2010


Am working towards answering this question of mine, but not quite there yet.

> If there are multiple 'selected' maps and 'source' surveys for a
particular projection, then a blank output map 'title' is produced.

> Is it possible to do something along the lines of the following
pseudo-code?

> 

>  code tex-map

>    If  \cavename IS EMPTY OR ZERO LENGTH STRING THEN \cavename={Terikan
River Cave} ELSE  \cavename =  \cavename

>  endcode

 

 

I suspect that \cavename is never empty, but rather is set to an empty
string by Therion in the above scenario

 

I have got as far as.

 

code tex-map

  \edef\therioninferedmaptitle{\the\cavename}   %save existing calculated
cavename to variable

  \ifx\therioninferedmaptitle\empty                  %test if
therioninferedmaptitle is empty  (undefined?)

                        \cavename={Caves of the Flora Area}
%if therioninferedmaptitle is empty set a title that describes all the caves
selected as a group

  \else       

            %if it's not empty, do nothing, ie keep the map title value set
by therion

  \fi

endcode

 

This works, except that the line  \cavename={Caves of the Flora Area} is
never run, even when \cavename appears empty.

I have tried using   \ifx\therioninferedmaptitle\"" as an alternative test
to no avail.

 

(All the above run without syntax errors, so I am making some progress at
least)                  

 

What I need is a bit of guidance on the correct test for an empty \cavename 

Any ideas?

 

Bruce    

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.speleo.sk/pipermail/therion/attachments/20100213/5800f5df/attachment.htm>


More information about the Therion mailing list