%\documentclass[9pt,pagesize,headexclude,footexclude,halfparskip-]{scrbook}
\documentclass[10pt,twoside]{scrbook}

\setlength\parindent{0pt}

\usepackage[english]{babel}
\usepackage[latin1]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{fourier,enumitem,color,ifthen}
\usepackage{calc}
\usepackage{xcolor}
\usepackage[uprightGreek]{newtxmath}
\usepackage{scrpage2}
\usepackage{eso-pic, graphicx}
\usepackage[scaled=1.0]{helvet}
\usepackage[scaled=.92]{beramono}   %.92

%\usepackage[papersize={215mm, 302mm}, body={170mm, 270mm},
%            top=34pt, left=20mm, right=20mm, head=13pt, headsep=1pt, footskip=30pt]{geometry}

\usepackage[papersize={450pt, 600pt}, %twoside,
%            layoutsize={138mm, 212mm},
%            layoutoffset={4.875mm, 5.125mm},
%            body={133mm, 212mm},
            inner=9pt, outer=9pt,
            bindingoffset=0pt,     %15pt,
            headheight=0pt, headsep=0pt,
            %foot=13mm,
            footskip=15pt,
%             showframe,
%            showcrop,
            includeall,
            marginparsep=0pt,
            marginparwidth=0pt,
            top=10pt, bottom=10pt,
%            top=3mm, bottom=4mm,
            % inner=8mm, outer=10mm
            ]{geometry}

%\usepackage[dvips=false,pdftex=false,vtex=false,
%            papersize={154mm, 216mm}, layoutsize={148mm, 210mm},
%            layoutoffset={3mm, 3mm},
%            body={148mm, 210mm},
%            top=0mm, bottom=7mm,
%            includeheadfoot,
%            showcrop,
%            outer=12mm, inner=15mm]{geometry}
%\usepackage[cam,info,cross,center,frame]{crop}
%\usepackage{poligraf}

\usepackage{hyperref}
\hypersetup{pdftitle={Abstract Booklet NA-PAC2013},
            pdfauthor={Volker RW Schaa, GSI, Darmstadt, Germany},
            pdfsubject={conference booklets generated by JPSP},
            %pdfpagelayout=TwoPageRight,
            pdfstartview=Fit,
            pdfpagemode=UseNone,
            linktocpage=false,
%            linktocpage=true,
            unicode=true,
            colorlinks=false,
            breaklinks=true,
            allbordercolors={gray},
            pdfborderstyle={ }}
%            pdfborderstyle={/S/U/W 1}}


\usepackage[normalem]{ulem}
\usepackage{fancybox}

\hyphenation{Qua-dru-poles Qua-dru-pole Mik-hai-li-chen-ko Ka-na-rey-kin Tka-chen-ko Fak-to-ro-vich Du-brov-skiy Most-haf Iva-ni-sen-ko Neu-bauer Ja-mil-kow-ski Teru-nu-ma Po-pie-lar-ski Tera-shi-ma Ya-ra-my-shev Ko-zhu-ha-rov Win-kel-mann Ratzin-ger Smir-nov Floett-mann Buerk-mann-Gehr-lein Pal-mie-ri Ko-she-lev Chou-han Ga-vri-lov Cle-men-te Kraw-czyk Ko-ba-ya-shi So-be-nin Buerk-mann-Gehr-lein Yoshi-ka-wa Pas-qui-nel-li Yoko-ya-ma Mar-chet-to Ya-kov-lev Tiu-nov Gu-sa-ro-va Tan-ta-wi Mat-veen-ko Sche-los-ke De-mon-stra-tor Ko-no-nen-ko Emittance-ex-change Tolle-strup Naka-moto Stei-chert Sa-ka-be Cha-kra-var-thy Ka-me-shi-ma
Leo-nova Vorozht-sov Gru-chal-la Ka-ne-ki Iso-chro-nous Oli-viei-ra Miya-mo-to Kreutz-kamp}

\tolerance=2000
\setlength{\emergencystretch}{6pt}

\newcommand\high[1]{\textsuperscript{#1}}
\newcommand\low[1]{\textsubscript{#1}}
%\newcommand\high[1]{\ensuremath{\mathrm{$^#1$}}}
%\newcommand\low[1]{\ensuremath{\mathrm{$_#1$}}}
%%%\newcommand\high[1]{\ensuremath{^#1}}
\newcommand\NewPage{\newpage}
\newcommand\NP{\newpage}

\newcommand\PapLine[2]{\makebox[\mywidth][l]{\descfont#1}{#2}}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%  circol 01:Circular Colliders:100,64,61
%  synlig 02:Synchrotron Light Sources and FELs;100,75,30
%  lincol 03:Linear Colliders, Lepton Accelerators and New Acceleration Techniques:75,91,56
%  hadacc 04:Hadron Accelerators:90,94,56
%  beadyn 05:Beam Dynamics and Electromagnetic Fields:100,77,0
%  beains 06:Beam Instrumentation and Feedback:62,58,58
%  acctec 07:Accelerator Technology:78,39,50
%  appacc 08:Applications of Accelerators, Technology Transfer and Industrial Relations:100,100,35
%  opeclo 09:Opening and Closing Sessions, Prize, Special Presentation:00,71,76
%  posses 10:Poster Session:
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%  circol  1 Circular Colliders (1)
%  synlig  2 Synchrotron Light Sources and FELs (2)
%  paralt  3 Particle Sources and Alternative Acceleration Techniques (3)
%           lincol  3 Linear Colliders, Lepton Accelerators and New Acceleration Techniques (3)
%  hadacc  4 Hadron Accelerators (4)
%  beadyn  5 Beam Dynamics and Electromagnetic Fields
%  beains  6 Beam Instrumentation and Feedback (6)
%  acctec  7 Accelerator Technology (7)
%  appacc  8 Applications of Accelerators, Technology Transfer and Industrial Relations (8)
%  opeclo    Opening, Closing and Special Presentations without specific classifications
\definecolor{circol}{rgb}{1.00, 0.60, 0.80}   %{1.00, 0.64, 0.61}
\definecolor{synlig}{rgb}{1.00, 0.80, 0.60}   %{1.00, 0.80, 0.00}   %{1.00, 0.75, 0.30}
\definecolor{paralt}{rgb}{0.80, 1.00, 0.80}   %IPAC'14
\definecolor{hadacc}{rgb}{0.80, 1.00, 1.00}   %{0.86, 0.93, 0.95}
\definecolor{beadyn}{rgb}{0.98, 0.95, 0.02}   %{1.00, 1.00, 0.00}   %{1.00, 0.77, 0.00}
\definecolor{beains}{rgb}{0.60, 0.80, 1.00}   %{0.62, 0.58, 0.58}
\definecolor{acctec}{rgb}{0.80, 0.60, 1.00}   %{0.78, 0.39, 0.50}
\definecolor{appacc}{rgb}{1.00, 1.00, 0.60}   %{1.00, 1.00, 0.35}
\definecolor{opeclo}{rgb}{0.00, 0.80, 1.00}   %{0.20, 0.40, 1.00}   %{0.00, 0.71, 0.76}
\definecolor{posses}{gray}{.75}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\definecolor{color1}{gray}{.1}  %{1.0, 0.8, 1.0}
\definecolor{color2}{gray}{.3}  %{1.0, 0.8, 0.8}
\definecolor{color3}{gray}{.5}  %{1.0, 0.8, 0.6}
\definecolor{color4}{gray}{.7}  %{1.0, 0.8, 0.4}
\definecolor{color8}{gray}{.9}  %{1.0, 0.8, 0.4}
\definecolor{color5}{gray}{.9}  %{1.0, 0.8, 0.1}
\newcommand\DayColor{color3}


%\newcommand{\NewDay}[4]{\clearpage\ohead{#1}}
%\newcommand{\NewDay}[4]{\clearpage\ohead{#4 #2 #1, 20#3}}   % removed comma after weekday
\newcommand\OP{}
\newcommand\Aday{Contents}
%---------------------------------------------------------------------------------------
% NewDay
%     #
%     # 1       {day}
%     # 2       {month}
%     # 3       {year [yy]}
%     # 4       {day of week}
%
\newdimen\RFirst
\newdimen\RSecond
\setlength\RFirst{-29mm}
\setlength\RSecond{297mm}

\newcommand{\NewDay}[4]{\clearpage%\ohead{#4 #2 #1, 20#3}%
                        \setlength\RFirst{\RFirst+40mm}%
                        \setlength\RSecond{\RSecond-40mm}%
                        %\renewcommand\OP{\textbf{#5}}%
                        \renewcommand\Aday{#1\ #2}}

%\newcommand{\NewPart}[1]{\clearpage%
%                        \renewcommand\Aday{#1}}

\newcommand\Vdate{01-Aot-1900}
\newcommand\Vstarttim{00}
\newcommand\Vendtim{00}
\newcommand\Vprestyp{OP}
\newcommand\Vlocation{---}

\newcommand\NEWPage{\newpage}

\raggedbottom

\newcommand{\Footnote}[1]{}

%%\lehead{\AddToShipoutPicture*{\fontsize{16.0}{16.0}\selectfont%
%%            \AtPageUpperLeft{\kern\mlloc{\makebox(0,0)[lt]{%
%%                             \rotatebox{90}{\textcolor{\DayColor}{\rule{\RSecond}{18mm}}%
%%                             \rotatebox{180}{\raisebox{-3.6mm}{\makebox[40mm]{\Aday}}}
%%                             \textcolor{\DayColor}{\rule{\RFirst}{18mm}}%
%%                             }}}}%
%%        }%
%%       }
%%
%%\rohead{\AddToShipoutPicture*{\fontsize{16.0}{16.0}\selectfont%
%%            \AtPageUpperLeft{\kern\myloc{\makebox(0,0)[lt]{%
%%                             \rotatebox{-90}{\textcolor{\DayColor}{\rule{\RFirst}{18mm}}%
%%                             \rotatebox{180}{\raisebox{-3.6mm}{\makebox[40mm]{\Aday}}}%
%%                             \textcolor{\DayColor}{\rule{\RSecond}{18mm}}%
%%                             }}}}%
%%                              }%
%%       }

\pagestyle{scrheadings}

\setkomafont{pagefoot}{\SetUpFS\rmfamily}
\setkomafont{pagehead}{\Large\normalfont\rmfamily\bfseries}
\ihead{}
\ohead{}
\chead{}
\ofoot{}
\ifoot{}
\cfoot{}

\rofoot{\pagemark}
\lefoot{\pagemark}
\cefoot{FEL 2013 --- New York, NY, USA --- August 26--30, 2013}
\cofoot{FEL 2013 --- New York, NY, USA --- August 26--30, 2013}

\newlength\sessionheadwidth
\setlength\sessionheadwidth\textwidth
\addtolength\sessionheadwidth{-2\fboxrule}
\addtolength\sessionheadwidth{-2\fboxsep}

%\addtolength\sessionheadwidth{-10pt}

\newcommand\bold[1]{\textbf{#1}}
\newcommand\bInst[1]{#1}
\newcommand\SetUpFS{\fontsize{10}{11.5}\selectfont}
\newcommand\TxtAuthor{\fontsize{10}{11.5}\selectfont}
\newcommand\TxtItalic{\fontsize{10}{11.5}\itshape\selectfont}
\newcommand\TxtBold{\fontsize{10}{11.5}\selectfont}
\newcommand\TxtType{\fontsize{10}{11.5}\selectfont}
\newcommand\ClassType{\fontsize{8}{8}\selectfont}

\newcommand\TalkDur{\fontsize{6.25}{6.25}\ttfamily\selectfont}

\definecolor{grau}{gray}{.90}
%\renewcommand\hypertarget[1]{}
%\renewcommand\hyperlink[2]{#2}

\definecolor{sessionheader}{gray}{.75}
%    \SessionHeader{posses}{31-Mar-11}{16:00}{17:30}{Oral}{Broadway Ballroom}
%       1  color
%       2  date
%       3  start time
%       4  end time
%       5  presentation type
%       6  Location
%
\newcommand\SessionHeader[6]{%
            \renewcommand\Vdate{#2}
            \renewcommand\Vstarttim{#3}
            \renewcommand\Vendtim{#4}
            \renewcommand\Vprestyp{#5}
            \renewcommand\Vlocation{#6}%
            \newpage
%             \fcolorbox{black}{#1}{\parbox{\sessionheadwidth}{#2\quad#3 -- #4\hfill#5\hfill#6\par}}\par\vspace*{-4pt}}
             \fcolorbox{black}{#1}{\parbox{\sessionheadwidth}{#2\quad#3 -- #4\hfill#6\par}}\par\vspace*{-4pt}}
%
% SessionHeader without \newpage
%
\newcommand\SessionHeaderNP[6]{%
            \renewcommand\Vdate{#2}
            \renewcommand\Vstarttim{#3}
            \renewcommand\Vendtim{#4}
            \renewcommand\Vprestyp{#5}
            \renewcommand\Vlocation{#6}%
            \bigskip
             \fcolorbox{black}{#1}{\parbox{\sessionheadwidth}{#2\quad#3 -- #4\hfill#6\par}}\par\vspace*{-4pt}}

\newlength\sessionbodywidth
\setlength\sessionbodywidth\sessionheadwidth

\newcommand\sessioncol{white}
%     #   \SessionBody [5]
%     # 1       {session-color}
%     # 2       {session-abbr-string}
%     # 3       {session-name-string}
%     # 4       {session-classification-string}
%     # 5       {session-chair-string}
\newcommand\SessionBody[5]{%
            \fcolorbox{black}{#1}{\parbox{\sessionbodywidth}{%
            \centering\textbf{\textsf{#2} --- \textsf{#3}}%
            \addcontentsline{toc}{section}{\textsf{#2} --- \textsf{#3}}%
%            \addtocontents{toc}{\contentsline{section}{\numberline {}\textsf{#2} --- \textsf{#3}}{}}%
            \ifthenelse{\equal{#5}{}}{}{\par\textbf{Chair:} #5}}}\vspace*{-6pt}}


\newcommand\Primary[2]{%
                      }

%---------------------------------------------------------------------------------------
% Paper
%        #     \Paper
%        #     1    {paper_code}
%        #     2    {main classification}
%        #     3    {sub classification}
%        #     4    {}
%        #     5    {}
%        #     6    {}
%        #     7    {title}
%        #     8    {authors + affiliation}
%        #     9    {abstract}
\newcommand\Paper[9]{\hypertarget{lab:#1}{}
%                        \item[#1] \hspace*{-1.5mm}\textbf{#7} -- \textit{#8} \vspace*{-7pt}
                        \item[#1] \textbf{#7}
                        \newline
                        \textit{#8}
                        \newline
                        \begingroup\TxtType
                            #9\par
                        \endgroup%
                        \vspace*{-5pt}
}

\newcommand\PaperWD[4]{%      Paper is for Posters which is withdrawn
\item[\boxput*(0.25,-5.5){\begin{minipage}{\mywidthi}\textnormal{{\textit{contribu-\\[-1mm] tion with-\\[-1mm] drawn}}}\end{minipage}}%
            {\sout{#1}}]  \textbf{#2} -- \textit{#3}\vspace*{-7pt}%
%\item[#1]  {#2} -- \textit{#3}\vspace*{-6pt}%
}
%        {paper_code}
%        {title}
%        {authors + affiliation}
%        {abstract} [==> not printed <==]
%

\newlength\TimWid
% PaperAbs
%        #     \Paper/\PaperAbs
%        #     1    {paper_code}
%        #     2    {main classification}
%        #     3    {sub classification}
%        #     4    {talk_btime}
%        #     5    {talk_etime}
%        #     6    {talk_duration}
%        #     7    {title}
%        #     8    {authors + affiliation}
%        #     9    {abstract}
%\newcommand\PaperAbs[9]{\addcontentsline{toc}{subsection}{\protect\PapLine{#1}{#7}}%    PaperAbs is for Orals
%                       \item[{\setlength\fboxsep{2pt}\colorbox{posses}{\makebox[\mywidth-2\fboxsep]{\rmfamily#4}}}]\mbox{}%
%                        \item[#1] \textbf{\hspace*{-1.5mm}\Large#7}  \newline
%                        \textit{\Large#8}
%                        \newline
%                        \TxtType
%                            #9\par
%                        \endgroup
%                        }
\newcommand\PaperAbs[9]{\addcontentsline{toc}{subsection}{{\descfont#1} #7}%    PaperAbs is for Oral
                        %\subsection*{{\descfont#1} #7}
                         \hypertarget{lab:#1}{}%
                         \item[\mbox{\parbox[t][0pt][t]{\mywidth}{#1\\%}}
 %                               \begin{minipage}{\mywidth}#1\\\vspace*{10pt}%
                                   {\settowidth\TimWid{\usekomafont{descriptionlabel}#1}%
                                    \setlength\fboxsep{1pt}%
                                    \raisebox{1.0mm}[0mm][0mm]{%
                                                                \colorbox{posses}{\makebox[\TimWid-2\fboxsep][c]{\rmfamily#4 ~~~\rotatebox{90}{\TalkDur#6}}}
                                                               }%
                                     }}}%
 %                               \end{minipage}
                        ]\hbadness 100000
                        \textbf{#7} \newline
                        \textit{#8}%
                        \newline
                        \begingroup\TxtType
                            #9\par
                        \endgroup%
                         \vspace*{-5pt}
                        }

%%   \BreakHeaderCont{posses}{13-Sep-10}{12:30}{13:40}{20}{Lunch Break}{}
%     #   \BreakHeaderCont [6]
%     #    2   {date}                  13-Sep-10
%     #    3   {start-time}            12:30
%     #    4   {end-time}              13:40
%     #    5   {talk_duration}         duration
%     #    6   {presentation-type}     Break or Coffee/Tea/Lunch
%     #    7   {location-string}       Restaurant ÄÖL/what is on offer
%
%\newcommand\BreakHeaderCont[6]{\parbox{\sessionbodywidth}{\LARGE\textbf{\textsf{\textit{#3\,--\,#4}}}~~#5}\vspace*{4pt}}
%\newcommand\BreakHeaderCont[6]{\parbox{\sessionbodywidth}{\LARGE\textbf{\textsf{%
%                                       \textit{\ifthenelse{\equal{#4}{}}{#3\hphantom{\,--\,#3}}{#3\,--\,#4}}}}~~#5}\vspace*{4pt}}

\newcommand\BreakHeaderCont[7]{\item[\mbox{\parbox[t][0pt][t]{\mywidth}{#6\\%}}
 %                               \begin{minipage}{\mywidth}#1\\\vspace*{10pt}%
                                   {\settowidth\TimWid{\usekomafont{descriptionlabel}#1}%
                                    \setlength\fboxsep{1pt}%
                                    \raisebox{1.0mm}[0mm][0mm]{%
                                                                \colorbox{posses}{\makebox[\TimWid-2\fboxsep][c]{\rmfamily#3 ~~~\rotatebox{90}{\TalkDur#5}}}
                                                               }%
                                     }}}%
 %                               \end{minipage}
                        ]\hbadness 100000
                        \textbf{#7} %\newline
                          \vspace*{2pt}
                        }



%
% Classification Change
%    \MainClass{#1 Paper Main Classification}
%
%\newcommand\MainClass[1]{\fcolorbox{black}{posses}{\parbox{\sessionbodywidth}{\textsf{#1}}}}
%\newcommand\MainClass[1]{\item[\fcolorbox{black}{n-posses}{\textsf{#1}}]\mbox{}\vspace*{-8pt}}
%\renewcommand\MainClass[1]{\item[\fcolorbox{black}{n-posses}{\textsf{#1}}]\mbox{}\vspace*{-8pt}}
\newcommand\MainClass[1]{}

%\renewcommand\MainClass[1]{\item[\setlength\fboxrule{0pt}\setlength\fboxsep{1.5pt}\fcolorbox{black}{color8}{\ClassType\textsf{#1}}]\mbox{}\vspace*{-8pt}}
\renewcommand\OP{}


\setkomafont{descriptionlabel}{\upshape\mdseries\ttfamily}
\newlength\mywidth
\newlength\mywidthi
\settowidth\mywidth{\usekomafont{descriptionlabel}WEOCNO01}
\settowidth\mywidthi{\usekomafont{descriptionlabel}WEOCNO01~}
\renewcommand*{\descriptionlabel}[1]{%
  \hspace{\labelsep}\makebox[\mywidth][l]{\descfont #1}%
}
\newenvironment{PaperList}%
{\begin{description}[leftmargin=\mywidthi,font=\usekomafont{descriptionlabel}]}%
{\end{description}}

%
% better hyphenation of Acronyms separated by "/" like all institutes in Daresbury
%
\def\slash{/}
\catcode`\/=\active
\def/{\slash\discretionary{}{}{}}

\begin{document}
\setlength\RFirst{6mm}
\setlength\RSecond{262mm}
\renewcommand\Aday{Contents}

\newlength\mlloc
\addtolength{\mlloc}{-8.0mm}
\newlength\myloc
\addtolength{\myloc}{\paperwidth}
\addtolength{\myloc}{-10.5mm}

\iffalse
\lehead{\AddToShipoutPicture*{\fontsize{16.0}{16.0}\selectfont%
            \AtPageUpperLeft{\kern\mlloc{\makebox(0,0)[lt]{%
                             \rotatebox{90}{\textcolor{\DayColor}{\rule{\RSecond}{18mm}}%
                             \rotatebox{180}{\raisebox{-4.0mm}{\makebox[40mm]{\Aday}}}
                             \textcolor{\DayColor}{\rule{\RFirst}{18mm}}%
                             }}}}%
        }%
       }

\rohead{\AddToShipoutPicture*{\fontsize{16.0}{16.0}\selectfont%
            \AtPageUpperLeft{\kern\myloc{\makebox(0,0)[lt]{%
                             \rotatebox{-90}{\textcolor{\DayColor}{\rule{\RFirst}{18mm}}%
                             \rotatebox{180}{\raisebox{-4.5mm}{\makebox[40mm]{\Aday}}}%
                             \textcolor{\DayColor}{\rule{\RSecond}{18mm}}%
                             }}}}%
                              }%
       }
\fi
    \tableofcontents
    \cleardoublepage
    \setlength\RFirst{\RFirst+5mm}%
    \renewcommand\Aday{August 19}
    %
    %
    % read script generated data
    %
    \input{abstr-info-tab-v2}

     \cleardoublepage
\setlength\RFirst{\RFirst+35mm}%
\setlength\RSecond{\RSecond-35mm}%
\renewcommand\Aday{Authors}
\iffalse
\lehead{\AddToShipoutPicture*{\fontsize{16.0}{16.0}\selectfont%
            \AtPageUpperLeft{\kern\mlloc{\makebox(0,0)[lt]{%
                             \rotatebox{90}{\textcolor{\DayColor}{\rule{\RSecond}{9mm}}%
                             \rotatebox{180}{\raisebox{-3.6mm}{\makebox[35mm]{\Aday}}}
                             \textcolor{\DayColor}{\rule{\RFirst}{9mm}}%
                             }}}}%
        }%
       }

\rohead{\AddToShipoutPicture*{\fontsize{16.0}{16.0}\selectfont%
            \AtPageUpperLeft{\kern\myloc{\makebox(0,0)[lt]{%
                             \rotatebox{-90}{\textcolor{\DayColor}{\rule{\RFirst}{9mm}}%
                             \rotatebox{180}{\raisebox{-3.6mm}{\makebox[35mm]{\Aday}}}%
                             \textcolor{\DayColor}{\rule{\RSecond}{9mm}}%
                             }}}}%
                              }%
       }
\fi
     \addcontentsline{toc}{section}{\fontsize{10}{11.5}{\textsf{Author List}}}%
     \renewcommand\TxtItalic{\fontsize{10}{11.5}\ttfamily\bfseries\selectfont}

     \smallskip
%     \rohead{Author List}
%     \lehead{Author List}
     {\tt\TxtItalic Boldface} papercodes indicate primary authors

       \input{authtexidx-tab-v2}
%         \input{authtexidx}

\end{document}
