summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/nih
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2006-09-30 22:15:42 +0000
committerKarl Berry <karl@freefriends.org>2006-09-30 22:15:42 +0000
commitfaa731ffb480e9d2c507ea601ebd303ba25688d8 (patch)
tree8cfb7209bcde3faeaacb6eddd4d5a453ece61bf5 /Master/texmf-dist/tex/latex/nih
parent1e8938a1ca753dde6c8800b1389d314c0a42dbe4 (diff)
new package nih (29sep06)
git-svn-id: svn://tug.org/texlive/trunk@2230 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/nih')
-rw-r--r--Master/texmf-dist/tex/latex/nih/denselists.sty18
-rw-r--r--Master/texmf-dist/tex/latex/nih/nih.cls136
2 files changed, 154 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/nih/denselists.sty b/Master/texmf-dist/tex/latex/nih/denselists.sty
new file mode 100644
index 00000000000..d8188083d48
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/nih/denselists.sty
@@ -0,0 +1,18 @@
+% These definitions for minimizing list spacing come from Michel Goossens,
+% as put together by Bruce Donald (http://www.cs.duke.edu/brd/).
+%
+% You may freely use, modify and/or distribute this file.
+%
+% Prevent infinite loops
+\typeout{Style New lists - dense lists}
+
+\let\Otemize =\itemize
+\let\Onumerate =\enumerate
+\let\Oescription =\description
+% Zero the vertical spacing parameters
+\def\Nospacing{\itemsep=0pt\topsep=0pt\partopsep=0pt\parskip=0pt\parsep=0pt}
+% Redefine the environments in terms of the original values
+\newenvironment{Itemize}{\Otemize\Nospacing}{\endlist}
+\newenvironment{Enumerate}{\Onumerate\Nospacing}{\endlist}
+\newenvironment{Description}{\Oescription\Nospacing}{\endlist}
+
diff --git a/Master/texmf-dist/tex/latex/nih/nih.cls b/Master/texmf-dist/tex/latex/nih/nih.cls
new file mode 100644
index 00000000000..835118db2a5
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/nih/nih.cls
@@ -0,0 +1,136 @@
+% vim:tabstop=4 expandtab syntax=tex:
+%
+% nih.cls - class for preparing NIH (US National Institutes of Health)
+% grant applications.
+%
+% Copyright (C) 2003, 2004, 2005, 2006 Bruce Donald.
+%
+% This work may be distributed and/or modified under the
+% conditions of the LaTeX Project Public License, either version 1.3c
+% of this license or (at your option) any later version.
+% The latest version of this license is in
+% http://www.latex-project.org/lppl.txt
+% and version 1.3 or later is part of all distributions of LaTeX
+% version 2003/12/01 or later.
+%
+% This work has the LPPL maintenance status "author-maintained".
+%
+% The Current Maintainer of this work is Bruce Donald
+% (http://www.cs.duke.edu/brd/).
+%
+% This work consists of only this one file, nih.cls.
+% Accompanying example files are not under the LPPL.
+%
+% last changed by Bruce Donald in 2005
+% to mimic the two PHS forms.
+%
+% Previous modified by Alan Shields, May 2003
+% email: Alan-Shields2omrf.ouhsc.edu
+% Heavily based upon (read: copied almost exactly from)
+% nih.sty by Bruce R. Donald and Matthew L. Fidler
+%
+\NeedsTeXFormat{LaTeX2e}
+%\ProvidesClass{nih}[2005 NIH PHS 398 as of June 2005]
+\ProvidesClass{nih}[2005/06/01 NIH PHS 398 as of June 2005]
+
+% includes needed for preliminary code
+\RequirePackage{ifthen}
+
+% Preliminary code
+\newcommand{\nih@kk}{~}
+
+\newboolean{nih@blank}
+\setboolean{nih@blank}{false}% not strictly necessary, but let's be clear about it
+
+% Options
+%%%% Changed by M A Lewis, Ph.D. (mal11 at alumni.cwru.edu)
+%%%% NIH suggests Helvetica or Arial 12pt. Use Helvetica Postscript fonts for 12pt also.
+\DeclareOption{12pt}{\AtEndOfClass{\RequirePackage{helvet}\renewcommand{\familydefault}{\sfdefault}}}
+%\DeclareOption{12pt}{\AtEndOfClass{\RequirePackage{times}}}
+%\DeclareOption{12pt}{\AtEndOfClass{\RequirePackage{arial}}}
+\DeclareOption{11pt}{\AtEndOfClass{\RequirePackage{helvet}\renewcommand{\familydefault}{\sfdefault}}}
+\DeclareOption{nihblank}{\setboolean{nih@blank}{true}}
+\DeclareOption{kk}{\renewcommand{\nih@kk}{\small KK}}
+\DeclareOption*{\PassOptionsToClass{\CurrentOption}{article}}
+\ProcessOptions\relax
+
+% The class we're overwriting
+\LoadClassWithOptions{article}
+
+
+% Begin Requirements
+%%%% Changed by M A Lewis, Ph.D. (mal11 at alumni.cwru.edu)
+%%%% PHS 398 allows 0.5in magins everywhere. Simplify page layout using geometry package.
+%\RequirePackage{fullpage}
+\RequirePackage[letterpaper,margin=0.5in,includeheadfoot]{geometry}
+\RequirePackage{fancyhdr}
+\RequirePackage{amsmath}
+
+
+
+%%%% More code
+% preamble stuff
+\newcommand{\nih@PIname}{Donald, Bruce R.}
+\newcommand{\piname}[1]{\renewcommand{\nih@PIname}{#1}}
+
+% constants
+\newcommand{\nih@sillysize}{\scriptsize}
+
+% set the page style
+\pagestyle{fancy}
+\chead{\fancyplain{}{%
+ \ifthenelse{\boolean{nih@blank}}%
+ {}% fi
+ {%
+ {{\sf\scriptsize Principal Investigator/Program Director%
+ (Last, First, Middle):}}%
+ }% esle
+ }
+}
+\rhead{\fancyplain{}{%
+ \ifthenelse{\boolean{nih@blank}}%
+ {\ \ \ {\nih@PIname}\ \ \ \ \ }% fi
+ {%
+ \underline{\ \ \ {\nih@PIname}\ \ \ \ \ }%
+ }% esle
+ }
+}
+\lhead{\fancyplain{}{\nih@kk}}
+\lfoot{\fancyplain{}{%
+ \ifthenelse{\boolean{nih@blank}}%
+ {}% fi
+ {\sf\footnotesize PHS 398/2590 (Rev.~09/04)\\}% esle
+ }
+}
+\cfoot{\ifthenelse{\boolean{nih@blank}}%
+ {\thepage}% fi
+ {\sf\footnotesize{Page}}% esle
+ \ \underline{\ \ \ {\sf\thepage}\ \ \ }%
+}
+\rfoot{\fancyplain{}%
+ {\sf\footnotesize{\textbf{Continuation Format Page}}}%
+}
+
+\renewcommand{\headrulewidth}{0pt}
+\renewcommand{\footrulewidth}{0.75pt}
+
+%%%% Changed by M A Lewis, Ph.D. (mal11 at alumni.cwru.edu)
+%%%% Simplify page layout by using geometry package above.
+% page dimensions (note: assumes 8.5x11)
+%\setlength{\oddsidemargin}{31pt}
+%\setlength{\textwidth}{8.5in}
+%\addtolength{\textheight}{0in} % 0.5in margins on both sides
+%\addtolength{\textwidth}{-1.1in}
+%\setlength{\oddsidemargin}{-1in}
+%\addtolength{\oddsidemargin}{0.505in}
+%\setlength{\evensidemargin}{\oddsidemargin}
+%\addtolength{\textheight}{0.2in}
+%\addtolength{\topmargin}{-0.2in}
+%\renewcommand{\baselinestretch}{.9}
+%\headwidth=\textwidth
+
+\addtolength{\headheight}{2.5pt}
+
+% rename the bibliography section
+\AtBeginDocument{\renewcommand{\refname}{Literature~Cited}}
+%FIXME: something is going on with the bibliography style. Dunno what.