\NeedsTeXFormat{LaTeX2e}[1994/06/01]
\ProvidesPackage{mc3_covers}[2022/02/22 v0.0.9021]

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% PACKAGE MC3_COVERS	(to be used with class multicast3!)
% by Nils Norman Schiborr, University of Bamberg
% CC-BY-SA 4.0 International

% ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ %
% CHANGELOG
%	0.0.9000	19-02-03	initial version

% ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ %
% KNOWN ISSUES
%	[  ]	


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% FRONT COVER

% vertical skip for subtitle
\newlength{\Ltitleskip}
\setlength{\Ltitleskip}{15mm}
\iftoggle{Tgeneral}{\setlength{\Ltitleskip}{5mm}}{}

% vertical skip between authors
\newlength{\Lauthorskip}		
\setlength{\Lauthorskip}{10mm}


% front cover
\NewDocumentCommand{\frontcover}{}{%
	\pdfmetadata{}%
	\thispagestyle{empty}

	\begin{tikzpicture}[remember picture, overlay]
		% horizontal bars
		\fill[colourM]		([shift = {(0.000,282.250)}]current page.south west) rectangle
					([shift = {(210.000,292.000)}]current page.south west);

		\fill[colourM]		([shift = {(0.000,2.000)}]current page.south west) rectangle
					([shift = {(210.000,3.500)}]current page.south west);

		% title logo
		\node[anchor=south west, scale = 2.789, inner sep = 0pt, outer sep = 0pt]	at
			([shift = {(27.000, 193.000)}]current page.south west) {%
				\logomulticast{MCgrayF}{colourF}{colourM}{colourF}{colourM}{colourF}%
			};

		% corpus and title text
		\iftoggle{Tgeneral}{%
			\node[MCgrayF, anchor = south west, scale = 3.628, text depth = 0pt, inner sep = 0pt, outer sep = 0pt]	at
				([shift = {(27.250, 175.000mm)}]current page.south west) {%
					\itshape\getlist[1]{title}%
				};
		}{%
			\node[MCgrayF, anchor = south west, scale = 3.628, text depth = 0pt, inner sep = 0pt, outer sep = 0pt]	at
				([shift = {(27.250, 175.000)}]current page.south west) {%
					\itshape\getlist[1]{corpus}%
				};
	
			\node[MCgrayF, anchor = south west, scale = 2.840, text depth = 0pt, inner sep = 0pt, outer sep = 0pt]	at
				([shift = {(27.250, 160.000mm)}]current page.south west) {%
					\itshape\getlist[1]{title}%
				};
		}


		% divider
		\fill[colourM]		([shift = {(22.500,157.500mm - \Ltitleskip)}]current page.south west) rectangle
					([shift = {(97.500,158.000mm - \Ltitleskip)}]current page.south west);

		\fill[colourM]	
					([shift = {(101.500,157.750mm - \Ltitleskip)}]current page.south west) --
					([shift = {(104.000,160.250mm - \Ltitleskip)}]current page.south west) --
					([shift = {(106.500,157.750mm - \Ltitleskip)}]current page.south west) --
					([shift = {(104.000,155.250mm - \Ltitleskip)}]current page.south west);

		\fill[colourM]		([shift = {(110.500,157.500mm - \Ltitleskip)}]current page.south west) rectangle
					([shift = {(185.500,158.000mm - \Ltitleskip)}]current page.south west);
	
		% adjust title skip
		\iftoggle{Tgeneral}{\setlength{\Ltitleskip}{7.5mm}}{}

		% authors and affiliations
		\setcounter{Cindex}{0}
		\whileboolexpr{test {\ifnumcomp{\theCindex} < {\theCauthors}}}{%
			\node[MCgrayF, anchor = south west, scale = 1.320, text depth = 0pt, inner sep = 0pt, outer sep = 0pt]	at
				([shift = {(27.250, 133.750mm - \theCindex * \Lauthorskip - \Ltitleskip)}]current page.south west) {%
					\itshape\getlist[\theCindex*3+2]{authors}%
					\xspace\getlist[\theCindex*3+3]{authors} \getlist[\theCindex*3+1]{authors}%
				};

	%		\node[MCgrayM, anchor = south west, scale = 1.173, text depth = 0pt, inner sep = 0pt, outer sep = 0pt]	at
	%			([shift = {(27.250, 127.500mm - \theCindex * \Lauthorskip - \Ltitleskip)}]current page.south west) {%
	%				\getlist[\theCindex*4+4]{authors}%
	%			};

			\stepcounter{Cindex}
		}

		% date and version
		\node[MCgrayF, anchor = south east, scale = 1.173, text depth = 0pt, inner sep = 0pt, outer sep = 0pt, text width = 26mm, align = right]	at
			([shift = {(180.500, 133.750mm - \Ltitleskip)}]current page.south west) {%
				\itshape\DTMenglishmonthname{\getlist[2]{date}} \getlist[1]{date}%
			};

		\node[MCovercast, anchor = south east, scale = 0.733, text depth = 0pt, inner sep = 0pt, outer sep = 0pt,  text width = 20mm, align = right]	at
			([shift = {(180.500, 130.250mm - \Ltitleskip)}]current page.south west) {%
				v\getlist[1]{version}%
			};

		% affiliate logos
		\definecolor{c00457d}{RGB}{0,69,125}

		\iftoggle{Tnologos}{}{%
			\node[anchor = south east, scale = 1.000, inner sep = 0pt, outer sep = 0pt]	at
				([shift = {(183.000, 72.000)}]current page.south west) {%
					\includegraphics{logo-coedl.pdf}%
				};

			\node[anchor = south east, scale = 1.000, inner sep = 0pt, outer sep = 0pt]	at
				([shift = {(183.000, 44.500)}]current page.south west) {%
					\includegraphics{logo-arc.pdf}%
				};

			\node[anchor = south east, scale = 1.000, inner sep = 0pt, outer sep = 0pt]	at
				([shift = {(183.000, 17.000)}]current page.south west) {%
					\includegraphics{logo-dfg.pdf}%
				};

			\node[anchor = south west, scale = 1.000, inner sep = 0pt, outer sep = 0pt]	at
				([shift = {(25.750, 18.500)}]current page.south west) {%
					\includegraphics{logo-ub.pdf}%
				};
		}
	\end{tikzpicture}

	\clearpage
}


% ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ %

% older front covers
\NewDocumentCommand{\frontcoverVarB}{}{%
	\thispagestyle{empty}

	\begin{tikzpicture}[remember picture, overlay]
		% background
		\fill[MCpaper]	(current page.south west) rectangle (current page.north east);

		% vertical bar
		\fill[colourF]		([shift = {(27.300, 297.000)}]current page.south west) --
					([shift = {(31.600, 297.000)}]current page.south west) --
					([shift = {(31.600, 190.000)}]current page.south west) --
					([shift = {(29.450, 180.000)}]current page.south west) --
					([shift = {(27.300, 177.333)}]current page.south west);

		\fill[colourM]		([shift = {(27.300, 177.333)}]current page.south west) --
					([shift = {(31.600, 190.000)}]current page.south west) --
					([shift = {(31.600, 0.000)}]current page.south west) --
					([shift = {(27.300, 0.000)}]current page.south west);

		% title logo
		\node[anchor=south west, scale = 2.045, inner sep = 0pt, outer sep = 0pt]	at
			([shift = {(47.000, 196.200)}]current page.south west) {%
				\logomulticast{MCgrayF}{colourF}{colourM}{colourF}{colourM}{colourF}
			};

		% corpus and title text
		\iftoggle{Tgeneral}{%
			\node[MCgrayF, anchor = south west, scale = 3.370, text depth = 0pt, inner sep = 0pt, outer sep = 0pt]	at
				([shift = {(47.000, 180.560)}]current page.south west) {%
					\itshape\getlist[1]{title}
				};
		}{%
			\node[MCgrayF, anchor = south west, scale = 3.370, text depth = 0pt, inner sep = 0pt, outer sep = 0pt]	at
				([shift = {(47.000, 180.560)}]current page.south west) {%
					\getlist[1]{corpus}
				};
	
			\node[MCgrayF, anchor = south west, scale = 2.640, text depth = 0pt, inner sep = 0pt, outer sep = 0pt]	at
				([shift = {(47.000, 166.625)}]current page.south west) {%
					\itshape\getlist[1]{title}
				};

		}

		% authors and affiliations
		\setcounter{Cindex}{0}
		\whileboolexpr{test {\ifnumcomp{\theCindex} < {\theCauthors}}}{%
			\node[MCgrayF, anchor = south west, scale = 1.430, text depth = 0pt, inner sep = 0pt, outer sep = 0pt]	at
				([shift = {(47.000, 126.000mm - \theCindex * \Lauthorskip)}]current page.south west) {%
					\bfseries\getlist[\theCindex*4+2]{authors}%
					\xspace\getlist[\theCindex*4+3]{authors} \getlist[\theCindex*4+1]{authors}%
				};

			\node[MCgrayM, anchor = south west, scale = 1.360, text depth = 0pt, inner sep = 0pt, outer sep = 0pt]	at
				([shift = {(47.000, 119.500mm - \theCindex * \Lauthorskip)}]current page.south west) {%
					\getlist[\theCindex*4+4]{authors}
				};

			\stepcounter{Cindex}
		}

		% date and version
		\node[MCgrayF, anchor = south west, scale = 1.240, text depth = 0pt, inner sep = 0pt, outer sep = 0pt]	at
			([shift = {(47.000, 103.500mm + \Lauthorskip - \theCauthors * \Lauthorskip)}]current page.south west) {%
				\DTMenglishmonthname{\getlist[2]{date}} \getlist[1]{date}
			};

		\node[MCovercast, anchor = south west, scale = 0.880, text depth = 0pt, inner sep = 0pt, outer sep = 0pt]	at
			([shift = {(47.500, 99.000mm + \Lauthorskip - \theCauthors * \Lauthorskip)}]current page.south west) {%
				v\getlist[1]{version}
			};

		% affiliate logos
		\iftoggle{Tnologos}{}{%
			\node[anchor = south west, scale = 1.000, inner sep = 0pt, outer sep = 0pt]	at
				([shift = {(176.000, 60.000)}]current page.south west) {%
					\logoubgray{MCovercast}{MCpaper}
				};
	
%			\node[anchor = south west, scale = 1.000, inner sep = 0pt, outer sep = 0pt]	at
%				([shift = {(176.000, 60.000)}]current page.south west) {%
%					\logoum{MCovercast}{MCpaper}
%				};
	
			\node[anchor = south west, scale = 1.000, inner sep = 0pt, outer sep = 0pt]	at
				([shift = {(176.000, 33.000)}]current page.south west) {%
					\logocoedlgray{MCovercast}{MCpaper}
				};
	
			\node[anchor = south west, scale = 1.000, inner sep = 0pt, outer sep = 0pt]	at
				([shift = {(176.000, 6.000)}]current page.south west) {%
					\logodfggray{MCovercast}{MCpaper}
				};
	
%			\node[anchor = south west, scale = 1.016, inner sep = 0pt, outer sep = 0pt]	at
%				([shift = {(120.000, 6.000)}]current page.south west) {%
%					\logolac{MCovercast}{MCpaper}
%				};
		}

	\end{tikzpicture}

	\clearpage
}


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% TITLE PAGE


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% COLOPHON

\NewDocumentCommand{\colophon}{}{%

	% check if twocolumn option is in effect
	\iftoggle{Ttwocolumn}{\onecolumn}{}
	
	% set page style
	\thispagestyle{empty}

	% logo
	\begin{tikzpicture}[remember picture, overlay]
		\node[anchor=south west, scale = 1.100, inner sep = 0pt, outer sep = 0pt]	at
		([shift = {(\the\foremargin, 238.000)}]current page.south west) {%
			\logomulticast{MCgrayF!56!white}{MCgrayF!56!white}{MCgrayM!56!white}{MCgrayF!56!white}{MCgrayM!56!white}{MCgrayF!56!white}
		};

		\node[MCgrayF!56!white, anchor=south west, scale = 1.2, text depth = 0pt, inner sep = 0pt, outer sep = 0pt, align = left]	at
		([shift = {(\the\foremargin + 64mm, 239.000)}]current page.south west) {%
			\eaccs{\textit{Multilingual Corpus of}\\\textit{Annotated Spoken Texts}}
		};
	\end{tikzpicture}

	{
		\setlength{\parindent}{0pt}
		\small
		\color{colophoncolour}
		\vspace*{36mm}

		% citations
		\textit{\color{colophonheadingcolour}Citation for this document}
		\begin{itemize}[label={}, leftmargin = 3mm, rightmargin = 24mm, topsep = 0.7mm, itemsep = -0.5mm]
			\item	\raggedright\colophonauthors\xspace\getlist[1]{date}. %
				Multi-CAST \iftoggle{Tgeneral}{}{\getlist[1]{corpus}\xspace}\getlist[1]{title}. %
				In Haig, Geoffrey \& Schnell, Stefan (eds.), \textit{Multi-CAST: Multilingual corpus of annotated spoken texts.} %
				(\href{https://multicast.aspra.uni-bamberg.de/}{\texttt{multicast.aspra.uni-bamberg.de/\iftoggle{Tgeneral}{}{\#\getlist[2]{corpus}}}}) (date accessed)
		\end{itemize}
	
		\vspace{4mm}
	
		\textit{\color{colophonheadingcolour}Citation for the Multi-CAST collection}
		\begin{itemize}[label={}, leftmargin = 3mm, rightmargin = 24mm, topsep = 0.7mm, itemsep = -0.5mm]
			\item	\raggedright Haig, Geoffrey \& Schnell, Stefan (eds.). 2015. %
				\textit{Multi-CAST: Multilingual corpus of annotated spoken texts.} %
				(\href{https://multicast.aspra.uni-bamberg.de/}{\texttt{multicast.aspra.uni-bamberg.de/}}) (date accessed)
		\end{itemize}

		\vfill
	
		% archival
		\begin{itemize}[label={}, leftmargin = 3mm, rightmargin = 24mm, topsep = 0.3mm, itemsep = -0.5mm]
			\item	\raggedright The Multi-CAST collection has been archived at the \textit{University of Bamberg}, Germany,\\%
				and is freely accessible online at~~\href{https://multicast.aspra.uni-bamberg.de/}{\texttt{multicast.aspra.uni-bamberg.de/}}.
		\end{itemize}

		% licensing
		\begin{itemize}[label={}, leftmargin = 3mm, rightmargin = 24mm, topsep = 0.3mm, itemsep = -0.5mm]
			\item	\raggedright The entirety of Multi-CAST, including this document, is published under the %
				\textit{Creative Commons Attribution 4.0 International Licence} (CC BY 4.0), unless noted otherwise. The licence can be %
				reviewed online at~~\href{https://creativecommons.org/licenses/by/4.0/}{\texttt{creativecommons.org/licenses/by/4.0/}}.
		\end{itemize}

		\vspace{0.1mm}

		% versioning
		\begin{itemize}[label={}, leftmargin = 3mm, rightmargin = 24mm, topsep = 0.3mm, itemsep = -0.5mm]
			\item	\textit{Multi-CAST \iftoggle{Tgeneral}{}{\getlist[1]{corpus}\xspace}\getlist[1]{title}}\qquad%
				v\getlist[1]{version}\qquad%
				last updated \number\getlist[3]{date}~\DTMenglishmonthname{\getlist[2]{date}}~\getlist[1]{date}\\
				This document was typeset by NNS with {\fontspec{Latin Modern Roman}\XeLaTeX{}} and the \textit{multicast3} class (v\classversion).
		\end{itemize}
	}


	% check if twocolumn option is in effect
	\iftoggle{Ttwocolumn}{%
		\twocolumn%
	}{%
		\clearpage%
	}
}

% ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ %

% linearize authors for colophon
\NewDocumentCommand{\colophonauthors}{}{%
	\ifnumcomp{\theCauthors} = 1 {%					%	n = 1 author
		\getlist[1]{authors}, \getlist[2]{authors}\IfStrEq{\getlist[3]{authors}}{}{.}{\xspace\StrLeft{\getlist[3]{authors}}{1}.}%
	}{%
		\setcounter{Cindex}{0}%						%	n > 1 authors
		\whileboolexpr{test {\ifnumcomp{\theCindex} < {\theCauthors}}}{%
			\getlist[\theCindex*3+1]{authors}, \getlist[\theCindex*3+2]{authors}%
				\IfStrEq{\getlist[\theCindex*3+3]{authors}}{}{}{\xspace\StrLeft{\getlist[\theCindex*3+3]{authors}}{1}.}%
			\ifnumcomp{\theCindex} = {\theCauthors - 1}{%
				\IfStrEq{\getlist[\theCindex*3+3]{authors}}{}{.}{}% % ultimate
			}{%
				\ifnumcomp{\theCindex} = {\theCauthors - 2}{%
					{ }\&{ }%				%	penultimate
				}{%
					{ }\&{ }%				%	pre-penultimate
				}%
			}%
			\stepcounter{Cindex}%
		}%
	}%
}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% BACK COVER

\NewDocumentCommand{\backcover}{}{%
	\cleartoverso								%	back cover is always verso
	\thispagestyle{empty}

	\begin{tikzpicture}[remember picture, overlay]
		% horizontal bars
		\fill[colourM]		([shift = {(0.000,282.250)}]current page.south west) rectangle
					([shift = {(210.000,292.000)}]current page.south west);

		\fill[colourM]		([shift = {(0.000,2.000)}]current page.south west) rectangle
					([shift = {(210.000,3.500)}]current page.south west);

		% MC logo
		\node[anchor = center, scale = 2.100, inner sep = 0pt, outer sep = 0pt]	at
			([shift = {(0.000, 44.000)}]current page.center) {%
				\logomulticast{MCgrayF}{colourF}{colourM}{colourF}{colourM}{colourF}%
			};

		\node[anchor = center, scale = 1.548, inner sep = 0pt, outer sep = 0pt]	at
			([shift = {(-0.432, 27.816)}]current page.center) {%
				\normalsize\itshape\color{MCgrayF}\eaccs{Multilingual Corpus of Annotated Spoken Texts}%
			};

		% divider
		\fill[colourM]		([shift = {(64.500,164.000)}]current page.south west) rectangle
					([shift = {(97.500,164.500)}]current page.south west);

		\fill[colourM]	
					([shift = {(101.500,164.250)}]current page.south west) --
					([shift = {(104.000,166.750)}]current page.south west) --
					([shift = {(106.500,164.250)}]current page.south west) --
					([shift = {(104.000,161.750)}]current page.south west);

		\fill[colourM]		([shift = {(110.500,164.000)}]current page.south west) rectangle
					([shift = {(143.500,164.500)}]current page.south west);

		% URL
		\node[anchor = center, scale = 1.500, text depth = 0pt,  inner sep = 0pt, outer sep = 0pt]	at
			([shift = {(0.000, -1.000)}]current page.center) {%
				\turl{https://multicast.aspra.uni-bamberg.de/}{multicast.aspra.uni-bamberg.de/}%
			};

%		% icon
%		\node[anchor = center, scale = 0.52, inner sep = 0pt, outer sep = 0pt]	at
%			([shift = {(0.000, -82.000)}]current page.center) {%		% -35.000
%				\logomcicon{colourF}{colourM}{MCgrayF}{MCpaper}%
%			};

		% date and licence
		\node[colourM, anchor = center, scale = 0.75, text depth = 0pt, inner sep = 0pt, outer sep = 0pt, align = right]	at
			([shift = {(0, 5.250)}]current page.south) {%
				\itshape\getlist[1]{date}\hquad\ CC-BY 4.0\hquad\ Department of General Linguistics, University of Bamberg%
			};
	\end{tikzpicture}
}


% ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ %

% older back covers
\NewDocumentCommand{\backcoverVarB}{}{%
	\cleartoverso								%	back cover is always verso
	\thispagestyle{empty}

	\begin{tikzpicture}[remember picture, overlay]
		% background
		\fill[MCpaper]	(current page.south west) rectangle (current page.north east);

		% vertical bar
		\fill[colourF]		([shift = {(210-27.300, 297.000)}]current page.south west) --
					([shift = {(210-31.600, 297.000)}]current page.south west) --
					([shift = {(210-31.600, 177.333)}]current page.south west) --
					([shift = {(210-27.300, 183.666)}]current page.south west);

		\fill[colourM]		([shift = {(210-27.300, 190.000)}]current page.south west) --
					([shift = {(210-31.600, 177.333)}]current page.south west) --
					([shift = {(210-31.600, 0.000)}]current page.south west) --
					([shift = {(210-27.300, 0.000)}]current page.south west);
	\end{tikzpicture}
}


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\endinput