% mcfns.sty 2024, LaTeX 2e style file Last Modified by Chris J. Cieszewski moving the \issueno{} control to the preamble file.
% 29 Oct 2026: 6 pt separation of the keywords from the abstract built into the abstract environment.
% 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 Oct. 30:
% Changed to:
% current ISSUE (0 for preprint) and the publication day if not Apr. 30 or Oct. 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 {{Apr.~30},} \or {{Oct.~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{}


\makeatletter
% Suppress indentation after sections
\def\section{\@startsection {section}{1}{\z@}%
           {-3.5ex \@plus -1ex \@minus -.2ex}%
           {2.2ex \@plus.2ex}%
           {\normalfont\large\scshape\@afterindentfalse}}
\def\subsection{\@startsection{subsection}{2}{\z@}%
             {-3.25ex\@plus -1ex \@minus -.2ex}%
             {1.1ex \@plus .2ex}%
             {\normalfont\normalsize\bfseries\@afterindentfalse}}
\def\subsubsection{\@startsection{subsubsection}{3}{\z@}%
                 {-3.0ex\@plus -1ex \@minus -.2ex}%
                 {0.5ex \@plus .2ex}%
                 {\normalfont\normalsize\sl\@afterindentfalse}}
\makeatother

%Change the style of the abstract
% Keywords separation (C.J. Cieszewski, 29 Oct 2026): the keywords line is set \mcfnskeywordsep (6 pt)
% below the last line of the abstract. Papers keep the house markup
%   \begin{abstract}\yourabstract\\{\bf Keywords: }\yourkwords\end{abstract}
% and must not add their own \vspace before the keywords.
\newlength{\mcfnskeywordsep}\setlength{\mcfnskeywordsep}{6pt}
\renewcommand{\abstract}{%
  \ifdefined\yourabstract\let\mcfnsYourAbstract\yourabstract
    \def\yourabstract{\mcfnsYourAbstract\vspace{\mcfnskeywordsep}}\fi
  \quote{\section*{\normalsize\scshape{\sc{Abstract. }}}}\vspace{-9truemm}\hspace{1.8truecm}}


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