% Compile this with pdflatex (twice, to help ensure the thumb indexes appear)

\documentclass[a4,10pt,twoside]{article} 
\usepackage{graphicx}  
\usepackage[a4paper,top=2cm,bottom=1.6cm,left=2cm,right=2cm]{geometry}
\usepackage{ecmlpkdd2012booklet}
\usepackage{pdfpages} % to import full-page PDF files
\usepackage{url}
\usepackage{setspace} % for spacing environment
\usepackage{mdwlist}  % for compact lists
\usepackage{fancyhdr}
  \pagestyle{fancy}   % use fancyheader's page header and footer
\usepackage{lscape}   % for landscape pages
\usepackage{multicol} % for the multicols environment, which handles multiple columns of text
\usepackage{fancytabs}% to insert vertical text (thumb indexes) in margins 
   % set width of tab. Default is 1cm
  \fancytabsWidth{1.3cm}
   % default is 0.5, 1=closest to margin, 0 = farthest from margin. 
   % fancytabsWidth also affects horizontal position of text
  \fancytabsTextHPos{0.4}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% packages used by paper abstracts
\usepackage{xspace} % for one of the abstracts
\usepackage{url} % for ``VIKAMINE – Open-Source Subgroup Discovery, Pattern Mining, and Analytics''
\usepackage{paralist}% for ``An Aspect-Lexicon Creation and Evaluation Tool for Sentiment Analysis Researchers''
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%



%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Fonts for the final version (not used during writing as 
% - Fourier for math | Utopia (scaled) for rm | Helvetica for ss | Latin Modern for tt
% - \usepackage{fourier} prevents compilation on ubuntu
\usepackage{fourier} % math & rm  % DOES NOT COMPILE UNDER LINUX
\usepackage{mathptmx}
\linespread{1.1}
\usepackage[scaled=0.875]{helvet} % ss
\usepackage{courier} % tt
\renewcommand{\ttdefault}{lmtt} %tt
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Allow commenting out of sections of the file
\newcommand{\comment}[1]{{}}   % don't show comments
%% \newcommand{\comment}[1]{{\bf #1}}  % show commented-out text as bold text
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Compile for A4 or A5
% - We sent the PDF to print services in A4 and they converted it to A5
%   and wire bound it.
% - We will make 2 versions available on the web:
%   1. People can download the A4 version and print it themselves.
%   2. If they have a double sided printer they can download the A5 version
%   and staple bind it themselves, which approximates what print services produced.
%   - The A5 version needs a multiple of 4 pages, otherwise some blanks will appear
%   - In the A5 version the 'at a glance' page can be printed as a single A4
%     page, which is *not* split down the middle, because it will be staple bound.
%     (Unlike the print services version which is A5 but wire bound and must be
%      split down the middle). However, to do that, we'd need to construct
%      an A5 version of everthing except that page (which stays in A4), then combine
%      them into a single PDF.

% This command inserts 2 'notes' pages. We remove them for the A5 version
% in order to get a multiple of 4 pages.
%\newcommand{\aFourVersion}[1]{#1} 
\newcommand{\aFourVersion}[1]{} 
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%



\begin{document}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Command used in paper abstracts
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% for ``Efficient discovery of association rules...''
\newcommand{\numrows}{N}
\newcommand{\numcols}{M}
\newcommand{\Mondrian}{\textsc{Stijl}\xspace}
% for ``A Note on Extending Generalization Bounds for Binary Large-margin Classifiers...''
\newcommand{\Orderx}{{O}} 
% for ``General Algorithms for Mining Closed Flexible Patterns under Various Equivalence Relations''
\newcommand{\GCF}{\textsf{GenCloFlex}}
\newcommand{\GCFP}{\textsf{GenCloFlex+}}
% for ``Boosting Nearest Neighbors for the Efficient Estimation of Posteriors''
\newcommand{\unn}{{{\textsc{unn}}}}
% for ``VIKAMINE – Open-Source Subgroup Discovery, Pattern Mining, and Analytics''
\newcommand{\VIKAMINE}{\textsc{VIKAMINE} \xspace}
% for ``\TopicExplorer: Exploring Document Collections with Topic Models''
\newcommand{\TopicExplorer}{TopicExplorer}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Initialise page header and footer
\fancyhead{} % set page header to empty
%\fancyfoot{} % set page footer to empty
\renewcommand{\headrulewidth}{0pt} % remove line from page header

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Outside front cover. 
\includepdf{images/ECMLCoverWireFront.pdf}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newpage % advance to next page before we set the header
%at-a-glance pages
\includepdf{images/ECMLAtAGlanceLeft.pdf}
\includepdf{images/ECMLAtAGlanceRight.pdf}

\newpage
\setHeader{Monday at a Glance}{}{}
%\lhead[]{\centering\LARGE \it Monday at a Glance}
\includegraphics[angle=180,page=1,trim=0cm 2cm 2.7cm 2.3cm,clip]{images/centrefold-front-and-back-14-sept.pdf}

\newpage
% This page has a blank thumb index on the right. I have not been able to get rid of it.
% - setting the width to 0 like this does not work
%\fancytabsWidth{0cm}
% - doing the following does not work
%\rhead[]{\centering\LARGE \it Friday at a Glance}
%\fancytab{}{}
\setHeader{Friday at a Glance}{}{}
\includegraphics[angle=180,page=2,trim=0cm 2cm 2.7cm 2.3cm,clip]{images/centrefold-front-and-back-14-sept.pdf}


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Building maps
\newpage
\clearHeader
\pageTitle{Wills Memorial Building}
\begin{center}
All Monday and Friday sessions except Monday welcome reception.
\end{center}
\vspace{2cm}

\includegraphics[scale=1]{images/inside-front-cover-wmb-map.jpg}

\newpage
\pageTitle{Chemistry Building (Chem)}
\begin{center}
All Tuesday, Wednesday, Thursday sessions except poster sessions and conference dinner.
\end{center}

%trim = 10mm 80mm 20mm 5mm, clip, width=3cm]
\includegraphics[scale=0.8,trim=5cm 0cm 0cm 0cm,clip]{images/chemistry-map.pdf}
%\includepdf[scale=1.2]{Chemistry.pdf}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Preliminary material
\newpage
\input{welcome.tex}
\newpage
\input{instructions-for-participants.tex}


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Monday
\newpage
\input{tutorials/monday-tutorials.tex}
\newpage
\setHeader{Monday Workshop}{Monday}{0}
\input{workshops/muse.tex}
\newpage
%\setHeader{Monday Workshop}{Monday}{0}
\input{workshops/iid.tex}
\newpage
\input{workshops/new-frontiers-in-mining-complex-patterns.tex}
\newpage
\input{workshops/silver.tex}
\newpage
\input{workshops/symbolic-systems-biology.tex}
\newpage
\setHeader{Monday Invited Talk}{Monday}{0}
\input{invited-talks/monday-smyth.tex}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Tuesday
\newpage
\setHeader{Tuesday Invited Talk}{Tuesday}{2}
\input{invited-talks/tuesday-abbeel.tex}
\newpage
\setHeader{Tuesday Sessions at a Glance}{Tuesday}{2}
\input{sessions/session-tue1.tex}
\input{sessions/session-tue1D.tex}
\newpage
\input{sessions/session-tue2.tex}
\input{sessions/session-tue2D.tex}
\newpage
\input{sessions/session-tue3.tex}

  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  % Redefine commands to include abstracts
  % **The following lines must have spaces between them or they won't compile***
  \renewenvironment{sessionHeader}[3]{\sessionHeaderWithAbstract{#1}{#2}{#3}}

  \renewcommand{\abst}[1]{\showAbst{#1}}

  \renewcommand{\continueSessionOnNewPage}[3]{\continueWithAbstract{#1}{#2}{#3}}
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

% Include talks again, this time with abstracts
\newpage
\setHeader{Tuesday Sessions, with Abstracts}{Tuesday}{2}
\input{sessions/session-tue1.tex}
\newpage
\setHeader{Tuesday Sessions, with Abstracts}{Tuesday}{2}
\input{sessions/session-tue2.tex}
\newpage
\setHeader{Tuesday Sessions, with Abstracts}{Tuesday}{2}
\input{sessions/session-tue3.tex}


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Wednesday

  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  % Redefine commands to NOT include abstracts
  % **The following lines must have spaces between them or they won't compile***
  \renewenvironment{sessionHeader}[3]{\sessionHeaderNoAbstract{#1}{#2}{#3}}

  \renewcommand{\abst}[1]{\doNotShowAbst{#1}}

  \renewcommand{\continueSessionOnNewPage}[3]{\continueNoAbstract{#1}{#2}{#3}}
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\newpage
\setHeader{Wednesday Plenary Talk}{Wednesday}{3}
\input{invited-talks/wednesday-ten-year-award.tex}
\newpage
%thumb index shifts horizontally at random unless you reset it often :(
\setHeader{Wednesday Sessions at a Glance}{Wednesday}{3}
\input{sessions/session-wed1.tex}
\input{sessions/session-wed1D.tex}
\newpage
\setHeader{Wednesday Sessions at a Glance}{Wednesday}{3}
\input{sessions/session-wed2.tex}
\input{sessions/session-wed2D.tex}
\newpage
\setHeader{Wednesday Sessions at a Glance}{Wednesday}{3}
\input{sessions/session-wed3.tex}

  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  % Redefine commands to include abstracts
  % **The following lines must have spaces between them or they won't compile***
  \renewenvironment{sessionHeader}[3]{\sessionHeaderWithAbstract{#1}{#2}{#3}}

  \renewcommand{\abst}[1]{\showAbst{#1}}

  \renewcommand{\continueSessionOnNewPage}[3]{\continueWithAbstract{#1}{#2}{#3}}
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

% Include talks again, this time with abstracts
\newpage
\setHeader{Wednesday Sessions, with Abstracts}{Wednesday}{3}
\input{sessions/session-wed1.tex}
\input{sessions/session-wed2.tex}
\input{sessions/session-wed3.tex}



%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Thursday
\newpage
\setHeader{Thursday Invited Talk}{Thursday}{4}
\input{invited-talks/thursday-keim.tex}

  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  % Redefine commands to NOT include abstracts
  % **The following lines must have spaces between them or they won't compile***
  \renewenvironment{sessionHeader}[3]{\sessionHeaderNoAbstract{#1}{#2}{#3}}

  \renewcommand{\abst}[1]{\doNotShowAbst{#1}}

  \renewcommand{\continueSessionOnNewPage}[3]{\continueNoAbstract{#1}{#2}{#3}}
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newpage
\setHeader{Thursday Sessions at a Glance}{Thursday}{4}
\input{sessions/session-thur1.tex}
\input{sessions/session-thur1D.tex}
\newpage
\setHeader{Thursday Sessions at a Glance}{Thursday}{4}
\input{sessions/session-thur2.tex}
\input{sessions/session-thur2D.tex}
\newpage
\setHeader{Thursday Sessions at a Glance}{Thursday}{4}
\input{sessions/session-thur3.tex}
\input{sessions/session-thur3D.tex}

  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  % Redefine commands to include abstracts
  % **The following lines must have spaces between them or they won't compile***
  \renewenvironment{sessionHeader}[3]{\sessionHeaderWithAbstract{#1}{#2}{#3}}

  \renewcommand{\abst}[1]{\showAbst{#1}}

  \renewcommand{\continueSessionOnNewPage}[3]{\continueWithAbstract{#1}{#2}{#3}}
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Include talks again, this time with abstracts
\newpage
\setHeader{Thursday Sessions, with Abstracts}{Thursday}{4}
\input{sessions/session-thur1.tex}
\input{sessions/session-thur2.tex}
\input{sessions/session-thur3.tex}



%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Friday
\newpage
\setHeader{Friday Invited Talk}{Friday}{5}
\input{invited-talks/friday-deraedt.tex}
\newpage
\input{tutorials/friday-tutorials.tex}
\newpage
\setHeader{Friday Workshop}{Friday}{5}
\input{workshops/Discovery_Challenge_Workshop.tex}
\newpage
\input{workshops/ALRA.tex}
\newpage
\input{workshops/local-patterns.tex}
\newpage
\input{workshops/community-mining.tex}
\newpage
\input{workshops/CoLISD2012.tex}
\newpage
\input{workshops/sentiment-discovery.tex}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Pages for the reader's notes. Omitted from the A5 version to keep length a multiple of 4.
\aFourVersion{\newpage
  \clearHeader
  \pageTitle{Notes}
  %\setHeader{Notes}{}{}
  ~ 
  \newpage
  \pageTitle{Notes}
  ~ 
}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Page facing inside back cover
\newpage
%\setHeader{Places of Interest}{}{} % does not appear!
\input{local-info.tex}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Inside and outside back cover
\newpage
\clearHeader
\includepdf[scale=0.9,angle=90]{images/inside-back-cover-restaurant-map.pdf}
\newpage
\includepdf{images/ECMLCoverWireBack.pdf}

\end{document}
