encoding ISO8859-1 layout legendcontent code tex-map \def\nostring{} \def\thsizexl{} \def\thsizel{} \def\thsizem{} \def\thlocation{} \def\thlocationb{} \def\thlocationc{} \def\thpenetration{} \def\ththanksto{} \ifx\thsizexl\nostring\def\thsizexl{30}\else\fi \ifx\thsizel\nostring\def\thsizel{24}\else\fi \ifx\thsizem\nostring\def\thsizem{12}\else\fi \legendcontent={ \hsize=\legendwidth \color[0 0 0]\the\legendtextcolor \edef\tmp{\the\cavename} \ifx\tmp\empty \else {\size[\thsizexl]\the\cavename} \vskip0.5cm \fi {\rightskip=0pt plus 3em\parskip=3bp \edef\tmp{\the\comment} \ifx\tmp\empty \else {\size[\thsizel]\si\the\comment} \par\bigskip \fi \edef\tmp{\thlocation} \ifx\tmp\empty \else {\size[\thsizem]\si{GPS location:} \ss\thlocation\vss} \fi \edef\tmp{\thlocationb} \ifx\tmp\empty \else {\size[\thsizem]\hskip7.95cm \ss\thlocationb\vss} \fi \edef\tmp{\thlocationc} \ifx\tmp\empty \else {\size[\thsizem]\hskip7.95cm \ss\thlocationc\vss} \fi \bigskip \edef\tmp{\the\cavelength} \ifx\tmp\empty \else {\size[\thsizem]\si\the\cavelengthtitle: \ss\the\cavelength} \fi \edef\tmp{\the\cavedepth} \ifx\tmp\empty \else {\size[\thsizem]\quad\si\the\cavedepthtitle: \ss\the\cavedepth\vss} \fi \edef\tmp{\thpenetration} \ifx\tmp\empty \else {\size[\thsizem]\si{p.xxx indicates penetration distance from the surface at the cavepool in meters}\vss} \fi \bigskip \edef\tmp{\the\topoteam} \ifx\tmp\empty \else {\everypar{\hangindent=5.9em\hangafter=1} \size[\thsizem]\si\the\topotitle: \ss\the\topoteam\quad\si\the\topodate\par} \fi \edef\tmp{\the\cartoteam} \ifx\tmp\empty \else {\size[\thsizem]\si\the\cartotitle: \ss\the\cartoteam\quad\size[\thsizem]{(c)}\thinspace{}\si\the\cartodate\par} \fi \bigskip \edef\tmp{\ththanksto} \ifx\tmp\empty \else \def\ththankstotitle{With thanks to: } {\everypar{\hangindent=7.2em\hangafter=1} \size[\thsizem]\si\ththankstotitle \ss\ththanksto\par} \fi } } endcode endlayout