% arrowBanner.tex
%
\newcommand{\arrowBanner}[7]{%
%	#1: id
%	#2: location
%	#3: text at fixed location 1
%	#4: text at fixed location 2
%	#5: tabular format
%	#6: blank row
%	#7: directions
	\thiswatermark{%
		\ifthenelse{\boolean{trim}}{%
		}{%
			\placeTombos
		}

		\put(0,-\mytextheight){\textcolor{\pageBackgroundColor}{\rule{\textwidth}{\textheight}}}		
      	  	\put(\tableX,\tableY){%
            		\setlength{\arrayrulewidth}{1mm}
            		\setlength{\tabcolsep}{1mm}
            		\fnormal
			\bfseries
%			tabular* can right-justify the column, but it cannot wrap lines.
%			tabulary somehow does not right-justify even with "R", but can wrap lines.
%            		\begin{tabulary}{0.95\textwidth}[t]{cL|RR}
				% The last R for arrow is here to put the arrow next to previous column.
%            		\begin{tabulary}{0.95\textwidth}[t]{#5}
            		\begin{tabularx}{\tabularxWidth}[t]{#5}
				#7
            			#6	% blank row is added to extend the column separator to the bottom.
            		\end{tabularx}
%            		\end{tabulary}
		}

		% banner at the top	(This should come after the above table to cover vertical dividing lines.)
		\put(0,-\bannerheight){\textcolor{\themeBackgroundColor}{\rule{\textwidth}{\bannerheight mm}}}
		\put(\bannerTextX,\bannerTextY){%
			\begin{minipage}{\textwidth}
				{\fbanner \textcolor{\themeTextColor}{\textbf{\spreadBannerText}}}
			\end{minipage}
		}

		\putTexts{#1}{#2}{#3}{#4}
%
	}
	\vspace*{0mm}	% This works as a dummy input to enter something in the page
	\clearpage
}
