\ProvidesClass{kitProceedings17x24}
\LoadClassWithOptions{article}
\usepackage{authblk}
\usepackage{fancyhdr}
\usepackage{graphicx}
\usepackage[paperwidth=17cm, paperheight=24cm]{geometry}
\usepackage{caption}
\usepackage{subcaption}
\usepackage{setspace}
\usepackage{titlesec}
\usepackage{mathptmx}
\usepackage{etoolbox}
\usepackage[square,sort,comma,numbers]{natbib}

\titleformat{\section}
  {\normalfont\Large\bfseries}
  {\makebox[1.0cm][l]{\thesection}}
  {0pt}
  {}
	
	\titleformat{\subsection}
  {\large\bfseries}
  {\makebox[1.0cm][l]{\thesubsection}}
  {0pt}
  {}
	
	\titleformat{\subsubsection}
  {\normalsize\bfseries}
  {\makebox[1.0cm][l]{\thesubsubsection}}
  {0pt}
  {}

\clubpenalty = 10000
\widowpenalty = 10000
\displaywidowpenalty = 10000

\raggedbottom

\newcommand\@shorttitle{}
% define \theshorttitle to what is given
\newcommand\shorttitle[1]{\renewcommand\@shorttitle{#1}}

\renewcommand\Authfont{\fontsize{10}{14.4}\selectfont}
\renewcommand\Affilfont{\fontsize{9}{10.8}\itshape}
\newcommand*{\TitleFont}{%
      \usefont{\encodingdefault}{\rmdefault}{b}{n}%
      \fontsize{17.28}{20}%
      \selectfont}

\geometry{
  inner=2.0cm,
  outer=1.8cm,
  top=2.7cm,
  bottom=2.5cm,
  bindingoffset=0mm
}
\makeatletter
    \def\@maketitle{%
  \newpage
  \null
  \vskip 30pt%
  
	\begin{flushleft}
  \let \footnote \thanks
    {\TitleFont \@title \par}%
    \vskip 1.5em%
    {\huge
      \lineskip .5em%
        \@author
			\par}%
	\end{flushleft}
  \par
  \vskip 1.5em}
	\makeatother
	
\providecommand{\keywords}[1]{\textbf{\textit{Keywords:}} #1}

\newenvironment{kitAbstract}
 {
  \begin{flushleft}
  \bfseries \Large \textbf{\abstractname}  \normalsize \vspace{-10pt}
  \end{flushleft}}

\setlength\parindent{0pt}
\setlength{\parskip}{10pt}

\pagestyle{fancy}
\fancyhead{}
\fancyfoot{}
\fancyhead[OR]{\footnotesize \runtitleshort}
\fancyhead[EL]{\footnotesize Int. Workshop on Medical Ultrasound Tomography}
%\fancyfoot[OR]{\thepage}
%\fancyfoot[EL]{\thepage}
\cfoot{}

\captionsetup[figure]{format=hang,labelfont={footnotesize},textfont={footnotesize}}
\captionsetup[table]{format=hang,labelfont={footnotesize},textfont={footnotesize}}

\fancypagestyle{plain}{%
    \renewcommand{\headrulewidth}{0pt}%
    \fancyhf{}%
    %\fancyfoot[OR]{\thepage}%
		%\fancyfoot[EL]{\thepage}%
}

\setlength{\bibsep}{0.0pt}



