cg

view nih-blank.cls @ 105:6c48f37d0f0c

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