Re: [Therion] FW: 2D output header title when therion can't decide which one to use
Thanks Martin I have started my \legendcontent definition thus... code tex-map \legendcontent={% \hsize=\legendwidth \color[0 0 0]\the\legendtextcolor \ifnortharrow\vbox to 0pt{\line{\hfil\northarrow}\vss}\fi % original code commented out % \edef\tmp{\the\cavename} \ifx\tmp\empty \else % {\the\legendtextheadersize\the\cavename}\vskip1cm % \fi \edef\tmp{\the\cavename} \ifx\tmp\empty{\the\legendtextheadersize{Caves of the Flora Area}}\vskip1cm \else {\the\legendtextheadersize\the\cavename}\vskip1cm \fi % ... original code continues to end And it behaves precisely as per my original attempt. No errors, but also no map title if Therion is not able to identify a unique title. With multiple maps selected in my thconfig th_texts.tex gives... \cavename={\mainfont{}} With one map selected in my thconfig th_texts.tex gives... \cavename={\thfb\char70 \char108 \char111 \char114 \char97 \ \char67 \char97 char118 \char101 \char115 \ \char80 \char108 \char97 \char110 \mainfont{}} So I infer that \cavename is indeed empty when there is no unique map title, but the customised \ifx test is not working. Do I have the ifx syntax correct? (Martins example was split by a line feed inserted by the mail application so I am not sure) Do we have to dig deeper to find a solution? I notice the output produced has the appearance of having \vskip1cm applied regardless of the original \ifx test being true or false, but the 'true' result code has no \vskip1cm. Maybe this is a clue? Is there yet another definition that is overriding this code? Thanks Bruce
On Mon, Feb 15, 2010 at 5:03 AM, <dangle@tomo.co.nz> wrote:
With multiple maps selected in my thconfig th_texts.tex gives...
\cavename={\mainfont{}}
OK, so it is never really empty. That is also the reason why all \ifx tests fail. It would be possible to write TeX test for this case, but it would be better to omit \mainfont{} if the text is empty -- I will change it in 5.3. Martin
I have resolved this one now. Version 5.3 made the difference. Sample code has been uploaded here http://therion.speleo.sk/wiki/doku.php?id=tex&s=override (at the bottom of the page) With it you can override the output map title either always or only when Therion can not determine what the title should be. Bruce
participants (3)
-
Bruce -
dangle@tomo.co.nz -
Martin Budaj