encoding  utf-8

# Copyright (C) 2019 Xavier Robert <xavier.robert***@***ird.fr>
# This work is under the Creative Commons Attribution-NonCommercial-NoDerivatives License:
#	<http://creativecommons.org/licenses/by-nc-nd/4.0/>


layout Entrances_coords_CDa
	# Layout where we define the different variables that contain the text with
	# the entrance coordinates we want to print in the header.
	# We need one variable per entrance.
	
	# This layout is called by the layout Coords_Header below
	
	code tex-map
		\def\thjunk{ }
		\def\thlocationCDa{(UTM32/WGS84) 322.803, 5094.375, Alt.: 2290 m}
	endcode
	
endlayout


layout Coords_Header_CDa
	# Layout that set the presentation for the entrance coordinates.
	
	copy Entrances_coords_CDa
	# it calls the layout above Entrances_coords where we defined the different
	# variables that contain the text with
	# the entrance coordinates we want to print in the header.
	
	code tex-map
		\def\nostring{}
		\def\thsizexl{}
		\def\thsizel{}
		\def\thsizem{}
		\ifx\thsizexl\nostring\def\thsizexl{30}\else\fi
		\ifx\thsizel\nostring\def\thsizel{24}\else\fi
		\ifx\thsizem\nostring\def\thsizem{12}\else\fi
		
		\ECoordinates={
		\edef\tmp{\thjunk} \ifx\tmp\empty \else
		%{\size[\thsizem] \ss\thjunk\vss}
		\fi
		\edef\tmp{\thlocationCDa} \ifx\tmp\empty \else
		%{\size[\thsizem]\hskip2cm  \ss\thlocationCDa\vss}	% The first one should be without hskip
		{\ss\thlocationCDa\vss}	% The first one should be without hskip
		\fi
		}
	endcode
	
endlayout



