%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% File: wombat.sty                                
% Date: 26 Feb 2015                               
% 2015 Copyright Christian Wolff		      
%
% 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 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.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{wombat}[2015/02/26 LaTeX package for WOMBAT workshop]

\RequirePackage[letterpaper]{geometry}
\RequirePackage{color}
\usepackage{graphicx}
\usepackage{amsmath}
\usepackage{amssymb}

\usepackage{mathptmx,palatino}	
\newcommand{\setfont}[4]{	
  \fontfamily{#1}		
  \fontseries{#2}		
  \fontshape{#3}		
  \fontsize{#4}{1em}		
  \selectfont			
}
\setfont{ppl}{m}{n}{10pt}	
\pagestyle{empty}
\geometry{a4paper,left=1.7cm,right=1.7cm,top=2.45cm,bottom=2.0cm} 	
\parindent0pt 								


\renewcommand{\title}[1]{{ \setfont{ppl}{b}{n}{13pt}%
  \noindent \begin{center} #1 \end{center} \vskip-0.10cm }}

\renewcommand{\author}[1]{{ \setfont{ppl}{m}{n}{10.5pt}%
  \noindent \begin{center} #1 \end{center} \vskip-0.38cm }}

\newcommand{\address}[1]{{ \setfont{ppl}{m}{it}{9pt}%
  \noindent \begin{center} #1 \end{center} \vskip-0.32cm }}

\newcommand{\email}[1]{{ \setfont{ppl}{m}{it}{9pt}%
  \noindent \begin{center} Email: #1 \end{center} }}

\renewcommand{\abstract}[1]{{ \setfont{ppl}{m}{it}{10pt}%
  \vskip8.5pt
  \noindent
  #1
  \vskip12.5pt
}}

\renewcommand\figurename{Fig.}

\renewcommand\section{\@startsection {section}{1}{0pt}%
  {-2.5ex plus -1ex minus -.2ex}%
  {1.3ex plus .2ex}%
{\normalsize\bfseries}}

\renewenvironment{thebibliography}[1]
     {\vskip-.5in \section*{\refname
        \@mkboth{\MakeUppercase\refname}{\MakeUppercase\refname}}%
      \list{\@arabic\c@enumiv .}%      \list{\@biblabel{\@arabic\c@enumiv .}}%
           {\settowidth\labelwidth{.25in}%
            \leftmargin\labelwidth
  \setlength{\parsep}{-0.05in}
  \setlength{\labelsep}{.5em}
  \setlength{\itemsep}{0.05in}%{-0.06in}
  \setlength{\listparindent}{0in}
  \setlength{\itemindent}{0in}
  \setlength{\leftmargin}{.2in}
  \setlength{\rightmargin}{0in}
            \advance\leftmargin\labelsep
            \@openbib@code
            \usecounter{enumiv}%
            \let\p@enumiv\@empty
            \renewcommand\theenumiv{\@arabic\c@enumiv}}%
      \sloppy
      \clubpenalty4000
      \@clubpenalty \clubpenalty
      \widowpenalty4000%
      \sfcode`\.\@m 
      \setfont{ppl}{m}{n}{8pt}
  }
     {\def\@noitemerr
       {\@latex@warning{Empty `thebibliography' environment}}%
      \endlist \vskip.2in}
\let\@openbib@code\@empty
\newcommand\WOMBATReflinks{\thebibliography{}}
\newcommand\References{\thebibliography{}}
\let\endWOMBATReferences\endthebibliography
\let\endWOMBATReflinks\endthebibliography
\let\endReferences\endthebibliography

\long\def\@makecaption#1#2{%
  \setfont{ppl}{m}{n}{9pt}
  \vskip\abovecaptionskip
  \sbox\@tempboxa{#1: #2}%
  \ifdim \wd\@tempboxa >\hsize
  #1: #2\par
  \else
  \global \@minipagefalse
  \hb@xt@\hsize{\hfil\box\@tempboxa\hfil}%
  \fi
\vskip\belowcaptionskip}

\frenchspacing

