%% Simple style-file for the Electronic Journal of Combinatorics
%% Version for on-line viewing
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\usepackage[a4paper]{geometry}
\setlength{\textwidth}{6.3in}
\setlength{\textheight}{8.7in}
\setlength{\topmargin}{0pt}
\setlength{\headsep}{0pt}
\setlength{\headheight}{0pt}
\setlength{\oddsidemargin}{0pt}
\setlength{\evensidemargin}{0pt}

\usepackage{amssymb}
\renewcommand{\geq}{\geqslant}
\renewcommand{\leq}{\leqslant}
\renewcommand{\ge}{\geqslant}
\renewcommand{\le}{\leqslant}

\newenvironment{corrigendum}[1]%
{\clearpage\newpage\section*{Corrigendum -- submitted #1}}{}

\def\reusenumber#1#2{\setcounter{#1}{#2}\addtocounter{#1}{-1}}

\def\specs#1#2#3{\def\papno{#1}\def\volno{#2}\def\volyear{#3}}
\ifx\volno\undefined\def\volno{19}\fi
\ifx\volyear\undefined\def\volyear{2012}\fi
\ifx\papno\undefined\def\papno{\YouForgetTheSpecs}\fi
% For the author version on the web, uncomment the following line:
%\def\dateline#1#2{{\small Submitted: #1; Accepted: #2; Published: XX}}
\def\dateline#1#2#3{{\small Submitted: #1; Accepted: #2; Published: #3}}
%% For dynamic surveys only: no publication date!
\def\dateline#1#2{{\small Submitted: #1; Accepted: #2}}

%\makeatletter

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% The next group of commands makes the font smaller for the title and
%% for section and subsection headings, and adjusts the space just below 
%% each such heading.

\renewcommand\title[1]{\gdef\@title{\reset@font\Large\bfseries #1}}
\renewcommand\section{\@startsection {section}{1}{\z@}%
                                   {-3.5ex \@plus -1ex \@minus -.2ex}%
                                   {2.3ex \@plus.2ex}%
                                   {\normalfont\large\bfseries}}
\renewcommand\subsection{\@startsection{subsection}{2}{\z@}%
                                     {-3ex\@plus -1ex \@minus -.2ex}%
                                     {1.5ex \@plus .2ex}%
                                     {\normalfont\normalsize\bfseries}}
\renewcommand\subsubsection{\@startsection{subsubsection}{3}{\z@}%
                                     {-2.5ex\@plus -1ex \@minus -.2ex}%
                                     {1.5ex \@plus .2ex}%
                                     {\normalfont\normalsize\bfseries}}

\renewcommand\paragraph{\@startsection{paragraph}{4}{\z@}%
                                    {2ex \@plus.5ex \@minus.2ex}%
                                    {-1em}%
                                    {\normalfont\normalsize\bfseries}}

\renewcommand\subparagraph{\@startsection{subparagraph}{5}{\parindent}%
                                       {2ex \@plus.5ex \@minus .2ex}%
                                       {-1em}%
                                      {\normalfont\normalsize\bfseries}}

%\makeatother

%%% Try the two following commands out:  if you don't like it, get rid of them.
%%% Then make the author version match this file.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\newfont{\footsc}{cmcsc10 at 8truept}
\newfont{\footbf}{cmbx10 at 8truept}
\newfont{\footrm}{cmr10 at 10truept}
\renewcommand{\ps@plain}{%
%\renewcommand{\@oddfoot}{\footsc the electronic journal of combinatorics
  %{\footbf\volno} (\volyear), \#\papno\hfil\footrm\thepage}}
% For dynamic surveys, don't want volume number:
\renewcommand{\@oddfoot}{\footsc the electronic journal of combinatorics
  (\volyear), \#\papno\hfil\footrm\thepage}}
\pagestyle{plain}

\g@addto@macro\bfseries{\boldmath}

%%%  Squashing the bibliography together a bit
  \newlength{\BiblioSpacing}
  \setlength{\BiblioSpacing}{0.4ex plus 0.1ex minus 0.1ex}
  \newcommand{\SquashBibFurther}{%
     \setlength{\BiblioSpacing}{0.2ex plus 0.1ex}}

  \let\oldthebibliography=\thebibliography
  \let\endoldthebibliography=\endthebibliography
  \renewenvironment{thebibliography}[1]{%
    \begin{oldthebibliography}{#1}%
      \setlength{\parskip}{\BiblioSpacing}
      \setlength{\itemsep}{\BiblioSpacing}
  }%
  {%
    \end{oldthebibliography}%
  }

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
