cg

diff nih-blank.cls @ 90:9e85d264837c

.
author bshanks@bshanks.dyndns.org
date Tue Apr 21 05:58:31 2009 -0700 (16 years ago)
parents
children 3dd9a1a81c23
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/nih-blank.cls Tue Apr 21 05:58:31 2009 -0700 1.3 @@ -0,0 +1,96 @@ 1.4 +% vim:tabstop=4 expandtab syntax=tex: 1.5 +% This is nih.cls by Alan Shields, May 2003 1.6 +% email: Alan-Shields2omrf.ouhsc.edu 1.7 +% Heavily based upon (read: copied almost exactly from) 1.8 +% nih.sty by Bruce R. Donald and Matthew L. Fidler 1.9 +% 1.10 +\NeedsTeXFormat{LaTeX2e} 1.11 +\ProvidesClass{nih-blank}[2005/05/24 NIH PHS 398 as of November 06] 1.12 + 1.13 +% includes needed for preliminary code 1.14 +\RequirePackage{ifthen} 1.15 + 1.16 +\pagestyle{empty} 1.17 + 1.18 + 1.19 +% Preliminary code 1.20 +\newcommand{\nih@kk}{~} 1.21 + 1.22 +\newboolean{nih@blank} 1.23 +\setboolean{nih@blank}{true}% not strictly necessary, but let's be clear about it 1.24 + 1.25 +% Options 1.26 +%%%% Changed by M A Lewis, Ph.D. (mal11 at alumni.cwru.edu) 1.27 +%%%% NIH suggests Helvetica or Arial 12pt. Use Helvetica Postscript fonts for 12pt also. 1.28 +\DeclareOption{12pt}{\AtEndOfClass{\RequirePackage{helvet}\renewcommand{\familydefault}{\sfdefault}}} 1.29 +%\DeclareOption{12pt}{\AtEndOfClass{\RequirePackage{times}}} 1.30 +%\DeclareOption{12pt}{\AtEndOfClass{\RequirePackage{arial}}} 1.31 +\DeclareOption{11pt}{\AtEndOfClass{\RequirePackage{helvet}\renewcommand{\familydefault}{\sfdefault}}} 1.32 +\DeclareOption{nihblank}{\setboolean{nih@blank}{true}} 1.33 +\DeclareOption{kk}{\renewcommand{\nih@kk}{\small KK}} 1.34 +\DeclareOption*{\PassOptionsToClass{\CurrentOption}{article}} 1.35 +\ProcessOptions\relax 1.36 + 1.37 +% The class we're overwriting 1.38 +\LoadClassWithOptions{article} 1.39 + 1.40 + 1.41 +% Begin Requirements 1.42 +%%%% Changed by M A Lewis, Ph.D. (mal11 at alumni.cwru.edu) 1.43 +%%%% PHS 398 allows 0.5in magins everywhere. Simplify page layout using geometry package. 1.44 +%\RequirePackage{fullpage} 1.45 + 1.46 +%% Page Margins 1.47 +%% Use standard paper size (8 ½" x 11). 1.48 +%% Use at least one-half inch margins (top, bottom, left, and right) for all pages. 1.49 +% Leaves enough room on all margins: 1.50 + 1.51 +% 0.5 inch top 1.52 +%\RequirePackage[letterpaper,left=0.5in,top=0.5in,bottom=0.575in,right=0.55in,nohead,nofoot]{geometry} 1.53 + 1.54 +% 0.49 inch top 1.55 +\RequirePackage[letterpaper,left=0.5in,top=0.49in,bottom=0.575in,right=0.55in,nohead,nofoot]{geometry} 1.56 + 1.57 + 1.58 + 1.59 +% 0.45 inch top 1.60 +%\RequirePackage[letterpaper,left=0.5in,top=0.45in,bottom=0.575in,right=0.55in,nohead,nofoot]{geometry} 1.61 + 1.62 +% Ideal but Doesn't leave enough room on some margins: 1.63 +%\RequirePackage[letterpaper,left=0.5in,top=0.5in,bottom=0.5in,right=0.5in,nohead,nofoot]{geometry} 1.64 + 1.65 +% the command below simply deletes the headers and footers and makes 1.66 +% the geometry exactly like the paper grant application: 1.67 +%\RequirePackage[letterpaper,margin=0.5in,includeheadfoot]{geometry} 1.68 +\RequirePackage{fancyhdr} 1.69 +\RequirePackage{amsmath} 1.70 +\pagestyle{empty} 1.71 + 1.72 + 1.73 +%%%% More code 1.74 +% preamble stuff 1.75 + 1.76 +\renewcommand{\headrulewidth}{0pt} 1.77 +\renewcommand{\footrulewidth}{0.75pt} 1.78 + 1.79 +%%%% Changed by M A Lewis, Ph.D. (mal11 at alumni.cwru.edu) 1.80 +%%%% Simplify page layout by using geometry package above. 1.81 +% page dimensions (note: assumes 8.5x11) 1.82 +%\setlength{\oddsidemargin}{31pt} 1.83 +%\setlength{\textwidth}{8.5in} 1.84 +%\addtolength{\textheight}{0in} % 0.5in margins on both sides 1.85 +%\addtolength{\textwidth}{-1.1in} 1.86 +%\setlength{\oddsidemargin}{-1in} 1.87 +%\addtolength{\oddsidemargin}{0.505in} 1.88 +%\setlength{\evensidemargin}{\oddsidemargin} 1.89 +%\addtolength{\textheight}{0.2in} 1.90 +%\addtolength{\topmargin}{-0.2in} 1.91 +%\renewcommand{\baselinestretch}{.9} 1.92 +%\headwidth=\textwidth 1.93 + 1.94 +\addtolength{\headheight}{2.5pt} 1.95 + 1.96 +% rename the bibliography section 1.97 +%\AtBeginDocument{\renewcommand{\refname}{Literature~Cited}} 1.98 +\AtBeginDocument{\renewcommand{\refname}{Bibliography \& References~Cited}} 1.99 +%FIXME: something is going on with the bibliography style. Dunno what.