cg

annotate nih-blank.cls @ 109:a6b99bc50476

.
author bshanks@bshanks.dyndns.org
date Thu Apr 23 03:12:01 2009 -0700 (16 years ago)
parents 89815d210b5c
children

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@101 51 %\RequirePackage[letterpaper,left=0.5in,top=0.5in,bottom=0.575in,right=0.55in,nohead,nofoot]{geometry}
bshanks@101 52 \RequirePackage[letterpaper,left=0.5in,top=0.5in,bottom=0.52in,right=0.55in,nohead,nofoot]{geometry}
bshanks@78 53
bshanks@78 54 % 0.49 inch top
bshanks@96 55 %\RequirePackage[letterpaper,left=0.5in,top=0.49in,bottom=0.575in,right=0.55in,nohead,nofoot]{geometry}
bshanks@78 56
bshanks@78 57
bshanks@78 58
bshanks@78 59 % 0.45 inch top
bshanks@78 60 %\RequirePackage[letterpaper,left=0.5in,top=0.45in,bottom=0.575in,right=0.55in,nohead,nofoot]{geometry}
bshanks@78 61
bshanks@78 62 % Ideal but Doesn't leave enough room on some margins:
bshanks@78 63 %\RequirePackage[letterpaper,left=0.5in,top=0.5in,bottom=0.5in,right=0.5in,nohead,nofoot]{geometry}
bshanks@78 64
bshanks@78 65 % the command below simply deletes the headers and footers and makes
bshanks@78 66 % the geometry exactly like the paper grant application:
bshanks@78 67 %\RequirePackage[letterpaper,margin=0.5in,includeheadfoot]{geometry}
bshanks@78 68 \RequirePackage{fancyhdr}
bshanks@78 69 \RequirePackage{amsmath}
bshanks@78 70 \pagestyle{empty}
bshanks@78 71
bshanks@78 72
bshanks@78 73 %%%% More code
bshanks@78 74 % preamble stuff
bshanks@78 75
bshanks@101 76
bshanks@101 77 %% changed by bayle shanks
bshanks@101 78
bshanks@78 79 \renewcommand{\headrulewidth}{0pt}
bshanks@101 80 %\renewcommand{\footrulewidth}{0.75pt}
bshanks@101 81 \renewcommand{\footrulewidth}{0pt}
bshanks@78 82
bshanks@78 83 %%%% Changed by M A Lewis, Ph.D. (mal11 at alumni.cwru.edu)
bshanks@78 84 %%%% Simplify page layout by using geometry package above.
bshanks@78 85 % page dimensions (note: assumes 8.5x11)
bshanks@78 86 %\setlength{\oddsidemargin}{31pt}
bshanks@78 87 %\setlength{\textwidth}{8.5in}
bshanks@78 88 %\addtolength{\textheight}{0in} % 0.5in margins on both sides
bshanks@78 89 %\addtolength{\textwidth}{-1.1in}
bshanks@78 90 %\setlength{\oddsidemargin}{-1in}
bshanks@78 91 %\addtolength{\oddsidemargin}{0.505in}
bshanks@78 92 %\setlength{\evensidemargin}{\oddsidemargin}
bshanks@78 93 %\addtolength{\textheight}{0.2in}
bshanks@78 94 %\addtolength{\topmargin}{-0.2in}
bshanks@78 95 %\renewcommand{\baselinestretch}{.9}
bshanks@78 96 %\headwidth=\textwidth
bshanks@78 97
bshanks@101 98 %\addtolength{\headheight}{2.5pt}
bshanks@101 99 \addtolength{\headheight}{0.5pt}
bshanks@78 100
bshanks@78 101 % rename the bibliography section
bshanks@78 102 %\AtBeginDocument{\renewcommand{\refname}{Literature~Cited}}
bshanks@108 103 %%\AtBeginDocument{\renewcommand{\refname}{Bibliography \& References~Cited}}
bshanks@108 104 %% changed by bayle shanks to literature cited
bshanks@108 105 \AtBeginDocument{\renewcommand{\refname}{Bibliography \& Literature~Cited}}
bshanks@78 106 %FIXME: something is going on with the bibliography style. Dunno what.