%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%                   File: fmr.sty                     %
%                  Date: June 27, 2017                %
%         adapted from osameet2.sty                   %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{fmr}[2017/06/27 LaTeX package for submission to FMR conferences]

\RequirePackage{t1enc}
\RequirePackage[latin1]{inputenc}

\RequirePackage[francais,english]{babel}
\RequirePackage{amsmath,amssymb}

\RequirePackage{mathptmx,courier,textcomp}
\RequirePackage[scaled=.92]{helvet}

\RequirePackage{geometry}
\geometry{a4paper,nohead,margin=1in}


\RequirePackage{graphicx}

\RequirePackage{cite}

\RequirePackage{caption}
\DeclareCaptionLabelSeparator{french}{~- }
\captionsetup{font={small},labelfont={bf},textfont={it},labelsep={french}}
\captionsetup[figure]{name={Fig.}}
\captionsetup[table]{name={Tab.}}

\parindent1em %% em tied to font
\parskip0pc
\linespread{1}
\pagestyle{empty}
\sloppy


\setlength\belowcaptionskip{0in}
\setlength\abovecaptionskip{0in}


%%Title page elements

\newcommand\FMRtitle[1]{\LARGE \bf \hskip2.25pc \parbox{.8\textwidth}{ \noindent%
   \LARGE \bf \begin{center} #1 \end{center}\rm } \vskip.1in \rm\normalsize }

\newcommand\FMRauthor[1]{\hskip2.25pc \parbox{.8\textwidth}{ \noindent%
   \normalsize \bf \begin{center} #1 \end{center}\rm } \vskip-1pc }

\newcommand\FMRaddress[1]{\hskip2.25pc \parbox{.8\textwidth}{ \noindent%
   \footnotesize \it \begin{center} #1 \end{center}\rm }  \normalsize \vskip-.2cm }

\newcommand\FMRemail[1]{\vskip-.3cm \parskip0pc\hskip2.25pc \footnotesize%
   \parbox{.8\textwidth}{\begin{center}\textit{#1}  \end{center} } \normalsize  \vskip-.2cm}


\let\title\FMRtitle
\let\author\FMRauthor
\let\affil\FMRaddress
\let\address\FMRaddress
\let\email\FMRemail

\renewenvironment{abstract}%%
{\vskip1pc\noindent\begin{center} \begin{minipage}{.8\textwidth} {\bf Abstract: \ } }
{\hfil \end{minipage}\end{center}\normalsize\vskip-1.75pc}%

% section styles

\renewcommand\section{\@startsection{section}{1}{0pt}%
                                   {-2.5ex plus -1ex minus -.2ex}%
                                   {1.3ex plus .2ex}%
                                   {\normalsize\bfseries}}
\renewcommand\subsection{\@startsection{subsection}{2}{0pt}%
                                     {-2.25ex plus -1ex minus -.2ex}%
                                     {1ex plus .2ex}%
                                     {\normalsize\itshape}}
\renewcommand\subsubsection{\@startsection{subsubsection}{3}{0pt}%
                                     {-2.25ex plus -1ex minus -.2ex}%
                                     {1ex plus .2ex}%
                                     {\small\upshape}}


\renewcommand\refname{\normalsize References \rm}
\setlength\bibindent{.3in}
\renewenvironment{thebibliography}[1]
     {\section*{\refname
        \@mkboth{\MakeUppercase\refname}{\MakeUppercase\refname}}%
      \list{\@arabic\c@enumiv .}
           {\settowidth\labelwidth{.25in}%
            \leftmargin\labelwidth
  \setlength{\parsep}{0pc}
  \setlength{\labelsep}{0.5em}
  \setlength{\itemsep}{0.05pc}%{-0.06in}
  \setlength{\listparindent}{0in}
  \setlength{\itemindent}{0in}
  \setlength{\leftmargin}{.3in}
  \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 \small}
     {\def\@noitemerr
       {\@latex@warning{Empty `thebibliography' environment}}%
      \endlist \vskip.2in}


% end fmr.sty