cg

view nih-blank.cls @ 84:d89a99c9ea9a

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