% mcfns.sty version 8 March, 2013, LaTeX 2e style file Last Modified by Chris J. Cieszewski moving the \issueno{} control to the preamble file. 
% Originally deveveloped by Chris cieszewski and Oscar Garcia 
% for typeseting 2-column articles for the Mathematical and Computational 
% Forestry & Natural-Resources Sciences, International Journal of.
% Please send any comments to: editor@mcfns.com. 
%
% the Volume Number:
\def\issueyear{\number\year} \count1=2008 \count2=\number\year \advance \count2 by -\count1 \def\volno{\number\count2} 

% the page margins:
\topmargin -0.4in \oddsidemargin -0.25in \evensidemargin -0.25in \columnsep=20pt \setlength{\textheight}{9in} \setlength{\textwidth}{7in}   

% current ISSUE (0 for preprint) and the publication day if not Mar. 30 or Sep. 30:
\def\publishd{} 

\def\doi_li{{\ifcase \issueno {} \else {{\href{http://mcfns.com/digital_object_intercept-link_information_number.htm}{MCFNS\;Publication\;D.O.I.-L.I.\;No:}}\;{\href{http://doi.li/m/\volno/\thepage}{doi.li/m/\volno/\thepage}}} \fi}} 
\def\publishm{{\ifcase \issueno {\underline{\scshape{Preprint}},} \or {{Mar.~30},} \or {{Sep.~30},} \else {ERR} \fi}} \def\publish{Published:~\publishm\publishd\issueyear}  \def\issn{ISSN 1946-7664} 
\def\website{{\ifcase \issueno http://opr.mcfns.com\else http://mcfns.com\fi}} 
\def\volref{Vol.\,\volno,~Issue\,\issueno,~pp.\,\thepage--\pageref{docend}} \def\mcfnshead{Math.\,Comput.\,For.\,Nat.-Res.\,Sci.\,\volref/{\href{\website}{\website}} }

% the formating for the journal header:
\newlength{\headtext} \newlength{\headfila} \newlength{\headfilb} \newlength{\headfilc} \newlength{\headfild} \newlength{\headfile} \newlength{\headfilf} 
%\def\submit#1         {\gdef\@submit{#1}}         \def\@submit{}
%\def\accept#1         {\gdef\@accept{#1}}         \def\@accept{}
%\def\lasterrata#1     {\gdef\@lasterrata{#1}}     \def\@lasterrata{}
%\def\editors#1        {\gdef\@editors{#1}}        \def\@editors{}

\def\ps@plain{\let\@mkboth\@gobbletwo

% The first page header elements
%\def\pageoneheadal{\volref}                                         \def\pageoneheadar{{{AVAILABLE\:ONLINE\:AT\:{\href{\website}{\uppercase\website}}}\hspace{2.6truecm}}}
%\def\pageoneheadbl{MCFNS~\issueyear,~{\bf\volno}(\issueno)}         \def\pageoneheadbr{Accepted:~\accept}
\def\pageoneheadal{\issn.~MCFNS~\issueyear}                                         \def\pageoneheadar{{{AVAILABLE\:ONLINE\:AT\:{\href{\website}{\uppercase\website}}}\hspace{2.6truecm}}}
\def\pageoneheadbl{\volref}         \def\pageoneheadbr{Accepted:~\accept}
\def\pageoneheadcl{{\em Mathematical~and~Computational}}            \def\pageoneheadcr{\publish}
\def\pageoneheaddl{{\em Forestry\,\&\,Natural-Resource\,Sciences}}  \def\pageoneheaddr{Last Correction:~\lasterrata}

\def\pageonefoota{Copyright \copyright~\issueyear~Publisher of the \href{\website}{{\em Mathematical and Computational Forestry \& Natural-Resource Sciences}}}
%\def\pageonefootb{{\scshape{\citename\citeetal}\,({\it \issueyear})}~(MCFNS~\volno(\issueno):\thepage--\pageref{docend}). \ \issn. \ }
%\def\pageonefootb{{\scshape{\citename\citeetal}\,({\it \issueyear})}~(MCFNS~\volno(\issueno):\thepage--\pageref{docend}). \  \ }
\def\pageonefootb{{\scshape{{\href{mailto://\citeemail}{\citename}\citeetal}}\,({\it \issueyear})}~(MCFNS~\volno(\issueno):\thepage--\pageref{docend}). \  \ }
\def\pageonefootc{Manuscript~\editors}

% The header automating allignment...
\settowidth{\headtext}{\scriptsize{\pageoneheadal\pageoneheadar{Submitted:~\submit}}}
\setlength{\headfila}{\textwidth} \addtolength{\headfila}{-\headtext}
\settowidth{\headtext}{\scriptsize{\pageoneheadbl\pageoneheadbr}}
\setlength{\headfilb}{\textwidth} \addtolength{\headfilb}{-\headtext}
\settowidth{\headtext}{\scriptsize{\pageoneheadcl\pageoneheadcr}}
\setlength{\headfilc}{\textwidth} \addtolength{\headfilc}{-\headtext}
\settowidth{\headtext}{\scriptsize{\pageoneheaddl\pageoneheaddr}}
\setlength{\headfild}{\textwidth} \addtolength{\headfild}{-\headtext} 

     \def\@oddhead{\scriptsize\vbox{
        \hbox to \hsize{\pageoneheadal \hspace{\headfila} \hspace{-.02truecm}\pageoneheadar \ \ Submitted:~\submit}
        \hbox to \hsize{\pageoneheadbl \hspace{\headfilb} \hspace{.07truecm}\pageoneheadbr}
        \hbox to \hsize{\pageoneheadcl \hspace{\headfilc} \hspace{.07truecm}\pageoneheadcr}
        \hbox to \hsize{\pageoneheaddl \hspace{\headfild} \hspace{.04truecm}\pageoneheaddr}
        }
     }
     \let\@evenhead\@oddhead
     \def\@oddfoot{\footnotesize\vbox{
        \hbox to \hsize{\underline{\hspace{\textwidth}}}
        \hbox to \hsize{\pageonefoota} % left flush
        \hbox to \hsize{\pageonefootb \ \pageonefootc } 
        %\hbox to \hsize{\doi_li}  %add doi_li number when it is ready and fully functional 
        }
     }
     \let\@evenfoot\@oddfoot
}
%Change the style of the title
\def\title#1{\gdef\@title{\Large\bf\uppercase{#1}}}

%Change the style of the author to include the affiliation
\def\author#1{\gdef\@author{\large\scshape{#1}\\\@affiliation}}

%Define the affiliation
\def\affiliation#1{\gdef\@affiliation{#1}} \def\@affiliation{}

%Change the style of the abstract
\renewcommand{\abstract}{
  \quote{\section*{\normalsize\scshape{Abstract. }}}\vspace{-7.7truemm}\hspace{1.8truecm}}

%Change the style of section headings
\renewcommand{\section}{\@startsection
  {section}{1}{0mm}{\baselineskip}{0.5\baselineskip}
  {\normalfont\normalsize\large\scshape}}

%Change the style of subsection headings
\renewcommand{\subsection}{\@startsection
  {subsection}{2}{0mm}{\baselineskip}{-1.5mm}
  {\normalfont\normalsize\bfseries}}

%Change the style of subsubsection headings
\renewcommand{\subsubsection}{\@startsection
  {subsubsection}{2}{0mm}{\baselineskip}{-1.5mm}
  {\normalfont\normalsize\bfseries}}

%This to prevent the date from printing
\date{}
\endinput
