
bshanks@78: % vim:tabstop=4 expandtab syntax=tex:
bshanks@78: % This is nih.cls by Alan Shields, May 2003
bshanks@78: % email: Alan-Shields2omrf.ouhsc.edu
bshanks@78: % Heavily based upon (read: copied almost exactly from)
bshanks@78: %    nih.sty by Bruce R. Donald and Matthew L. Fidler
bshanks@78: %
bshanks@78: \NeedsTeXFormat{LaTeX2e}
bshanks@78: \ProvidesClass{nih-blank}[2005/05/24 NIH PHS 398 as of November 06]
bshanks@78: 
bshanks@78: % includes needed for preliminary code
bshanks@78: \RequirePackage{ifthen}
bshanks@78: 
bshanks@78: \pagestyle{empty}
bshanks@78: 
bshanks@78: 
bshanks@78: % Preliminary code
bshanks@78: \newcommand{\nih@kk}{~}
bshanks@78: 
bshanks@78: \newboolean{nih@blank}
bshanks@78: \setboolean{nih@blank}{true}% not strictly necessary, but let's be clear about it
bshanks@78: 
bshanks@78: % Options
bshanks@78: %%%% Changed by M A Lewis, Ph.D. (mal11 at alumni.cwru.edu)
bshanks@78: %%%% NIH suggests Helvetica or Arial 12pt. Use Helvetica Postscript fonts for 12pt also.
bshanks@78: \DeclareOption{12pt}{\AtEndOfClass{\RequirePackage{helvet}\renewcommand{\familydefault}{\sfdefault}}}
bshanks@78: %\DeclareOption{12pt}{\AtEndOfClass{\RequirePackage{times}}}
bshanks@78: %\DeclareOption{12pt}{\AtEndOfClass{\RequirePackage{arial}}}
bshanks@78: \DeclareOption{11pt}{\AtEndOfClass{\RequirePackage{helvet}\renewcommand{\familydefault}{\sfdefault}}}
bshanks@78: \DeclareOption{nihblank}{\setboolean{nih@blank}{true}}
bshanks@78: \DeclareOption{kk}{\renewcommand{\nih@kk}{\small KK}}
bshanks@78: \DeclareOption*{\PassOptionsToClass{\CurrentOption}{article}}
bshanks@78: \ProcessOptions\relax
bshanks@78: 
bshanks@78: % The class we're overwriting
bshanks@78: \LoadClassWithOptions{article}
bshanks@78: 
bshanks@78: 
bshanks@78: % Begin Requirements
bshanks@78: %%%% Changed by M A Lewis, Ph.D. (mal11 at alumni.cwru.edu)
bshanks@78: %%%% PHS 398 allows 0.5in magins everywhere. Simplify page layout using geometry package.
bshanks@78: %\RequirePackage{fullpage}
bshanks@78: 
bshanks@78: %% Page Margins
bshanks@78: %% Use standard paper size (8 �" x 11).
bshanks@78: %% Use at least one-half inch margins (top, bottom, left, and right) for all pages. 
bshanks@78: %  Leaves enough room on all margins:
bshanks@78: 
bshanks@96: %% changed by bayle shanks: use .5 inch, not .49
bshanks@96: 
bshanks@78: % 0.5 inch top
bshanks@101: %\RequirePackage[letterpaper,left=0.5in,top=0.5in,bottom=0.575in,right=0.55in,nohead,nofoot]{geometry} 
bshanks@101: \RequirePackage[letterpaper,left=0.5in,top=0.5in,bottom=0.52in,right=0.55in,nohead,nofoot]{geometry} 
bshanks@78: 
bshanks@78: % 0.49 inch top
bshanks@96: %\RequirePackage[letterpaper,left=0.5in,top=0.49in,bottom=0.575in,right=0.55in,nohead,nofoot]{geometry} 
bshanks@78: 
bshanks@78: 
bshanks@78: 
bshanks@78: % 0.45 inch top
bshanks@78: %\RequirePackage[letterpaper,left=0.5in,top=0.45in,bottom=0.575in,right=0.55in,nohead,nofoot]{geometry} 
bshanks@78: 
bshanks@78: % Ideal but Doesn't leave enough room on some margins:
bshanks@78: %\RequirePackage[letterpaper,left=0.5in,top=0.5in,bottom=0.5in,right=0.5in,nohead,nofoot]{geometry} 
bshanks@78: 
bshanks@78: % the command below simply deletes the headers and footers and makes
bshanks@78: % the geometry exactly like the paper grant application:
bshanks@78: %\RequirePackage[letterpaper,margin=0.5in,includeheadfoot]{geometry}
bshanks@78: \RequirePackage{fancyhdr}
bshanks@78: \RequirePackage{amsmath}
bshanks@78: \pagestyle{empty}
bshanks@78: 
bshanks@78: 
bshanks@78: %%%% More code
bshanks@78: % preamble stuff
bshanks@78: 
bshanks@101: 
bshanks@101: %% changed by bayle shanks
bshanks@101: 
bshanks@78: \renewcommand{\headrulewidth}{0pt}
bshanks@101: %\renewcommand{\footrulewidth}{0.75pt}
bshanks@101: \renewcommand{\footrulewidth}{0pt}
bshanks@78: 
bshanks@78: %%%% Changed by M A Lewis, Ph.D. (mal11 at alumni.cwru.edu)
bshanks@78: %%%% Simplify page layout by using geometry package above.
bshanks@78: % page dimensions (note: assumes 8.5x11)
bshanks@78: %\setlength{\oddsidemargin}{31pt}
bshanks@78: %\setlength{\textwidth}{8.5in}
bshanks@78: %\addtolength{\textheight}{0in} % 0.5in margins on both sides
bshanks@78: %\addtolength{\textwidth}{-1.1in}
bshanks@78: %\setlength{\oddsidemargin}{-1in}
bshanks@78: %\addtolength{\oddsidemargin}{0.505in}
bshanks@78: %\setlength{\evensidemargin}{\oddsidemargin}
bshanks@78: %\addtolength{\textheight}{0.2in}
bshanks@78: %\addtolength{\topmargin}{-0.2in}
bshanks@78: %\renewcommand{\baselinestretch}{.9}
bshanks@78: %\headwidth=\textwidth
bshanks@78: 
bshanks@101: %\addtolength{\headheight}{2.5pt}
bshanks@101: \addtolength{\headheight}{0.5pt}
bshanks@78: 
bshanks@78: % rename the bibliography section
bshanks@78: %\AtBeginDocument{\renewcommand{\refname}{Literature~Cited}}
bshanks@78: \AtBeginDocument{\renewcommand{\refname}{Bibliography \& References~Cited}}
bshanks@78: %FIXME: something is going on with the bibliography style. Dunno what.




