% nar.sty
\typeout{Nucleic Acids Research version = 4.08 of nar.sty 2010 Mar 04}
% 4.08, 2010 Mar 04: fix subsections - no numbers
%                    narfront doesn't work right - has numbers on subsections!
% 4.07, 2005 Nov 01: USE narfront.cls!
% 4.06, 2005 Nov 01: bug note
% 4.05, 2004 Dec 13: section and subsection definitions changed
% 4.04, 2001 Nov 12: subsubsections are with paragraphs and italic, not bold.
% 4.03, 2000 March 8

%%%%%%%%%%%%%%%%%%%%%
% USE narfront.cls! %
%%%%%%%%%%%%%%%%%%%%%

% Dr. Thomas D. Schneider
% toms@alum.mit.edu
% permanent email: toms@alum.mit.edu (use only if first address fails)
% https://alum.mit.edu/www/toms/

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% NOTE: NAR wants references               %
% (4, 5, 6, 7, 8) to be (4-8)              %
% This is not done by this program.        %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

% New section and subsection definitions in version 4.05 2004 Dec 13
% From: Ketil Malde <ketil@ii.uib.no>
% "This changes the section headers to use sffamily and upper case,
% like NAR does.  (The previous version only differentiated sections
% and subsection by the amount of preceeding space, which I found
% confusing).  I also added some trailing space, this is too much when
% a subsection follows immediately after a section, but IMHO looks
% much better when it doesn't."

\renewcommand{\section}[1]
{ {
\vspace{24pt}
\noindent \textbf{\large \sffamily \uppercase{#1} }
% \vspace{10pt}
\noindent
%\\
} }

\renewcommand{\subsection}[1]
{ {
% \vspace{12pt}
\noindent \textbf{#1}
% \noindent \textbf{\sffamily \uppercase{#1} }
% \vspace{10pt}
\noindent
%\\
} }

% Use parens instead of brackets for \cite, and no label in the bibliography:
% use this if natbib.sty is not implemented:
\def\@cite#1#2{(#1\if@tempswa , #2\fi)} % this works

\renewcommand{\refname}{\textbf{\large REFERENCES}}

% from science.sty, but remove the "*":
\def\thebibliography#1{\section{\refname\@mkboth
  {\uppercase{\refname}}{\uppercase{\refname}}}\list
%  {\@biblabel{\arabic{enumiv}}}{\settowidth\labelwidth{\@biblabel{#1}}%
%  {BEFORE {\arabic{enumiv}} AFTER}{\settowidth\labelwidth{\@biblabel{#1}}%
   {{\arabic{enumiv}}.}{\settowidth\labelwidth{\@biblabel{#1}}%
\raggedright % allows urls to come out ok
%
% tests for setting the indents:
%\setlength{\itemindent}{-\bibhang}
%\setlength{\leftmargin}{\bibhang}
%\setlength{\itemindent}{-0.2 in}
%\setlength{\leftmargin}{1in}
%
% Controls for margin edges.  See page 185 in Lamport's book.
\setlength{\labelwidth}{2 em}
\setlength{\itemindent}{0 em}
    \leftmargin\labelwidth
    \advance\leftmargin\labelsep
    \usecounter{enumiv}%
    \let\p@enumiv\@empty
    \def\theenumiv{\arabic{enumiv}}}%
    \def\newblock{\hskip .11em plus.33em minus.07em}%
    \sloppy\clubpenalty4000\widowpenalty4000
    \sfcode`\.=1000\relax}


% ******************************************************************************
% OLD STUFF:

% definition up to version 4.04:
% \renewcommand{\subsubsection}[1]
% {{\vspace{12pt}\noindent\emph{#1}}}

% \renewcommand{\section}[1]
% { {
% \vspace{24pt}
% \noindent \textbf{\large #1 }
% \noindent
% %\\
% } }
% 
% \renewcommand{\subsection}[1]
% { {
% \vspace{12pt}
% % \noindent \textbf{\large #1 }
% \noindent \textbf{#1 }
% \noindent
% %\\
% } }
