%%%%% iwssp.sty %%%%%
%%%%% sablona by Petos %%%%%
% 
% Copyright (c) 2008 Petr Šafařík <petos@physics.muni.cz>
% iwssp package -- style for IWSSP2008 proceedings primary. Any other
% usage should be disscussed with maintained.
% This work may be distributed and/or modified under the
% conditions of the LaTeX Project Public License, either version 1.3
% of this license or (at your option) any later version.
% The latest version of this license is in
%   http://www.latex-project.org/lppl.txt
% and version 1.3 or later is part of all distributions of LaTeX
% version 2005/12/01 or later.
%
% Any Derived Work cannot be distributed outside Department of
% Theoretical Physics and Astrophysics, Faculty of Science, Masaryk
% University. 
%
% This work has the LPPL maintenance status `maintained'.
% 
% The Current Maintainer of this work is Petr Safarik
% This work consists of the file iwssp.sty only.
% Usage: put \usepackage{iwssp} immediately after the \documentclass line
% History:
% 2008/04/12 private version
% 2008/04/22 headings by fancyhdr package
% 2008/04/23 style bookman and helvetica used
% 2008/04/24 licence update
% 2008/04/26 title page, 2nd and 3rd page at \prvni command
% 2008/05/24 any other is on due to editors
% 2008/06/18 updated the \prvni command - the first page have been changed


%% English
\usepackage[english]{babel}
\hyphenation{chic-ken}

%% unicode
\usepackage[utf8]{inputenc}

%% specialni znaky
%\usepackage{pxfonts, txfonts,wasysym}


%% okraje
\usepackage[
	pdftex,
	margin=1in,
        left=4cm]{geometry}

\setlength{\parindent}{0pt}
\setlength{\parskip}{0.5em plus 0.25ex minus 0.25ex}

%% pismo
% bookman
\usepackage{bookman}
% helvetica
\usepackage{helvet}
% txtt
%\renewcommand{\ttdefault}{txtt}
% dalsi symboly
%\usepackage{wasysym}

%% grafika
\usepackage[pdftex]{graphicx}

%% rozšíření varioref
\usepackage{varioref}
\setcounter{secnumdepth}{0}

%% zahlavi
\usepackage{fancyhdr}

\pagestyle{fancy}
\renewcommand{\headrulewidth}{0.4pt}
\lhead{\small \sffamily \bfseries \contribution}
\chead{}
\rhead{\small \sffamily \participant}
\renewcommand{\footrulewidth}{0.4pt}
\lfoot{\small \sffamily \conferencedate}
\cfoot{\small \sffamily \conferencename}
\rfoot{\small \sffamily \thepage}

%%tabulka
\usepackage{tabularx}

%%%Definovani promennych
%% jmeno
\newcommand{\participant}{\relax}
\newcommand{\participantname}[1]{
  \renewcommand{\participant}{#1}
}

%% nazev_prispevku
\newcommand{\contribution}{\relax}
\newcommand{\contributionname}[1]{
  \renewcommand{\contribution}{#1}
}

%% contributiondate
\newcommand{\contribdate}{\relax}
\newcommand{\contributiondate}[1]{
  \renewcommand{\contribdate}{#1}
}

%% confdate
\newcommand{\conferencedate}[1]{\relax}
\newcommand{\confdate}[1]{
  \renewcommand{\conferencedate}{#1}
}

%% confname
\newcommand{\conferencename}[1]{\relax}
\newcommand{\confname}[1]{
  \renewcommand{\conferencename}{#1}
}

%% editorname
\newcommand{\editor}[1]{\relax}
\newcommand{\editorname}[1]{
  \renewcommand{\editor}{#1}
}

%% publishername
\newcommand{\publisher}[1]{\relax}
\newcommand{\publishername}[1]{
  \renewcommand{\publisher}{#1}
}

%% firstpagecaptionname
\newcommand{\firstpagecaption}[1]{\relax}
\newcommand{\firstpagepicturecaption}[1]{
  \renewcommand{\firstpagecaption}{#1}
}

%% memorialacaption
\newcommand{\memorialacaption}[1]{\relax}
\newcommand{\memorialphotoacaption}[1]{
  \renewcommand{\memorialacaption}{#1}
}

%% memorialbcaption
\newcommand{\memorialbcaption}[1]{\relax}
\newcommand{\memorialphotobcaption}[1]{
  \renewcommand{\memorialbcaption}{#1}
}

%%%Nové příkazy
%% prvni
\newcommand{\prvni}{\pagenumbering{roman}
\begin{titlepage}
\vspace*{1.5cm}
\centerline{\includegraphics[width=1\textwidth]{pictures/logo}}
\vspace{2.5cm}
\centerline{\includegraphics[width=0.6\textwidth,angle=90]{pictures/motive}}
\vspace{2cm}
\centerline{\Large\sf Workshop Proceedings}
\vfill
\centerline{\large\sf Edited by}
\centerline{\large\sf \editor}
\newpage
{\large{Picture at first page: \firstpagecaption}}
\vfill
{\large Published by \publisher}\\[2em]
{\large Copyright \copyright 2008 DTPA FSc MU\\
This material is free: you can redistribute it and/or modify it under
the terms of GNU General Public Licence as published by Free Software
Foundation, either version 3 of the License, or any later version.} 
%\end{titlepage}
\newpage
\begin{center}
{\huge \textsf{Memorial photos}}
\vfill
{\includegraphics[width=0.8\textwidth]{pictures/memoriala}}\\[2em]
{\large \textsf{\protect\memorialacaption}}\\[2em]
\end{center}
\newpage
\tableofcontents\thispagestyle{fancy}

\newpage
{
\sffamily
	\begin{center}
	{\Large \conferencename} \\[2em]
	{\huge Preface by editor} \\[2em]
	\end{center}
        \addcontentsline{toc}{section}{Editor: Preface}
	\rmfamily}
\par\input{preface}


\include{listofparticipant}
\end{titlepage}
\newpage\pagenumbering{arabic}
}

%% titulek
\newcommand{\titulek}{
	\sffamily
	\begin{center}
	{\Large \conferencename} \\[2em]
	{\huge \contribution} \\[2em]
	\end{center}
	{\tabcolsep=0pt
	\begin{tabularx}{\textwidth}{X p{3cm} l}
	\large
	Name:~\textit{\participant} \hfill & & Date:~\textit{\contribdate}
        \end{tabularx}}\rmfamily
 \addcontentsline{toc}{subsection}{\participant: \contribution}}
