cg

annotate nih-blank.cls @ 100:fa7c0a924e7a

.
author bshanks@bshanks.dyndns.org
date Wed Apr 22 06:45:17 2009 -0700 (16 years ago)
parents 53f14bf8e6c4
children 89815d210b5c

rev   line source
bshanks@78 1 % vim:tabstop=4 expandtab syntax=tex:
bshanks@78 2 % This is nih.cls by Alan Shields, May 2003
bshanks@78 3 % email: Alan-Shields2omrf.ouhsc.edu
bshanks@78 4 % Heavily based upon (read: copied almost exactly from)
bshanks@78 5 % nih.sty by Bruce R. Donald and Matthew L. Fidler
bshanks@78 6 %
bshanks@78 7 \NeedsTeXFormat{LaTeX2e}
bshanks@78 8 \ProvidesClass{nih-blank}[2005/05/24 NIH PHS 398 as of November 06]
bshanks@78 9
bshanks@78 10 % includes needed for preliminary code
bshanks@78 11 \RequirePackage{ifthen}
bshanks@78 12
bshanks@78 13 \pagestyle{empty}
bshanks@78 14
bshanks@78 15
bshanks@78 16 % Preliminary code
bshanks@78 17 \newcommand{\nih@kk}{~}
bshanks@78 18
bshanks@78 19 \newboolean{nih@blank}
bshanks@78 20 \setboolean{nih@blank}{true}% not strictly necessary, but let's be clear about it
bshanks@78 21
bshanks@78 22 % Options
bshanks@78 23 %%%% Changed by M A Lewis, Ph.D. (mal11 at alumni.cwru.edu)
bshanks@78 24 %%%% NIH suggests Helvetica or Arial 12pt. Use Helvetica Postscript fonts for 12pt also.
bshanks@78 25 \DeclareOption{12pt}{\AtEndOfClass{\RequirePackage{helvet}\renewcommand{\familydefault}{\sfdefault}}}
bshanks@78 26 %\DeclareOption{12pt}{\AtEndOfClass{\RequirePackage{times}}}
bshanks@78 27 %\DeclareOption{12pt}{\AtEndOfClass{\RequirePackage{arial}}}
bshanks@78 28 \DeclareOption{11pt}{\AtEndOfClass{\RequirePackage{helvet}\renewcommand{\familydefault}{\sfdefault}}}
bshanks@78 29 \DeclareOption{nihblank}{\setboolean{nih@blank}{true}}
bshanks@78 30 \DeclareOption{kk}{\renewcommand{\nih@kk}{\small KK}}
bshanks@78 31 \DeclareOption*{\PassOptionsToClass{\CurrentOption}{article}}
bshanks@78 32 \ProcessOptions\relax
bshanks@78 33
bshanks@78 34 % The class we're overwriting
bshanks@78 35 \LoadClassWithOptions{article}
bshanks@78 36
bshanks@78 37
bshanks@78 38 % Begin Requirements
bshanks@78 39 %%%% Changed by M A Lewis, Ph.D. (mal11 at alumni.cwru.edu)
bshanks@78 40 %%%% PHS 398 allows 0.5in magins everywhere. Simplify page layout using geometry package.
bshanks@78 41 %\RequirePackage{fullpage}
bshanks@78 42
bshanks@78 43 %% Page Margins
bshanks@78 44 %% Use standard paper size (8 ½" x 11).
bshanks@78 45 %% Use at least one-half inch margins (top, bottom, left, and right) for all pages.
bshanks@78 46 % Leaves enough room on all margins:
bshanks@78 47
bshanks@96 48 %% changed by bayle shanks: use .5 inch, not .49
bshanks@96 49
bshanks@78 50 % 0.5 inch top
bshanks@96 51 \RequirePackage[letterpaper,left=0.5in,top=0.5in,bottom=0.575in,right=0.55in,nohead,nofoot]{geometry}
bshanks@78 52
bshanks@78 53 % 0.49 inch top
bshanks@96 54 %\RequirePackage[letterpaper,left=0.5in,top=0.49in,bottom=0.575in,right=0.55in,nohead,nofoot]{geometry}
bshanks@78 55
bshanks@78 56
bshanks@78 57
bshanks@78 58 % 0.45 inch top
bshanks@78 59 %\RequirePackage[letterpaper,left=0.5in,top=0.45in,bottom=0.575in,right=0.55in,nohead,nofoot]{geometry}
bshanks@78 60
bshanks@78 61 % Ideal but Doesn't leave enough room on some margins:
bshanks@78 62 %\RequirePackage[letterpaper,left=0.5in,top=0.5in,bottom=0.5in,right=0.5in,nohead,nofoot]{geometry}
bshanks@78 63
bshanks@78 64 % the command below simply deletes the headers and footers and makes
bshanks@78 65 % the geometry exactly like the paper grant application:
bshanks@78 66 %\RequirePackage[letterpaper,margin=0.5in,includeheadfoot]{geometry}
bshanks@78 67 \RequirePackage{fancyhdr}
bshanks@78 68 \RequirePackage{amsmath}
bshanks@78 69 \pagestyle{empty}
bshanks@78 70
bshanks@78 71
bshanks@78 72 %%%% More code
bshanks@78 73 % preamble stuff
bshanks@78 74
bshanks@78 75 \renewcommand{\headrulewidth}{0pt}
bshanks@78 76 \renewcommand{\footrulewidth}{0.75pt}
bshanks@78 77
bshanks@78 78 %%%% Changed by M A Lewis, Ph.D. (mal11 at alumni.cwru.edu)
bshanks@78 79 %%%% Simplify page layout by using geometry package above.
bshanks@78 80 % page dimensions (note: assumes 8.5x11)
bshanks@78 81 %\setlength{\oddsidemargin}{31pt}
bshanks@78 82 %\setlength{\textwidth}{8.5in}
bshanks@78 83 %\addtolength{\textheight}{0in} % 0.5in margins on both sides
bshanks@78 84 %\addtolength{\textwidth}{-1.1in}
bshanks@78 85 %\setlength{\oddsidemargin}{-1in}
bshanks@78 86 %\addtolength{\oddsidemargin}{0.505in}
bshanks@78 87 %\setlength{\evensidemargin}{\oddsidemargin}
bshanks@78 88 %\addtolength{\textheight}{0.2in}
bshanks@78 89 %\addtolength{\topmargin}{-0.2in}
bshanks@78 90 %\renewcommand{\baselinestretch}{.9}
bshanks@78 91 %\headwidth=\textwidth
bshanks@78 92
bshanks@78 93 \addtolength{\headheight}{2.5pt}
bshanks@78 94
bshanks@78 95 % rename the bibliography section
bshanks@78 96 %\AtBeginDocument{\renewcommand{\refname}{Literature~Cited}}
bshanks@78 97 \AtBeginDocument{\renewcommand{\refname}{Bibliography \& References~Cited}}
bshanks@78 98 %FIXME: something is going on with the bibliography style. Dunno what.