Miscellaneous LaTeX Examples and Templates

Template for a Report or Grant Application Section

%Usage: pdflatex myfile
\usepackage{relsize,setspace}  % used by latex(describe( ))
\usepackage{url}               % used in bibliography
    pdfauthor={Frank E Harrell Jr},
    pdftitle={Bayesian Analysis Plan}]{hyperref}
% removed colorlinks after bookmarks

\newcommand{\code}[1]{\texttt{\smaller #1}}

\parskip 1.25ex
\parindent 0ex

\textwidth 6.75in
\textheight 9.25in
\topmargin -.875in
\oddsidemargin -.125in
\evensidemargin -.125in


\DeclareGraphicsExtensions{.pdf, .jpg, .png}

\title{Bayesian Analysis and Monitoring Plan for a Clinical Trial}
\author{Frank E Harrell Jr PhD  \\ \smaller Department of Biostatistics \\ Vanderbilt University School of Medicine \\

The paper by Oettle \emph{et al.}~\cite{oet07adj} provided evidence
for efficacy of gemcitabine in improving disease-free survival for
. . .
 The results are shown in the figure below.\footnote{Knots
  were placed at 0.3, 0.5, 0.7, 1, 1.5, 3, and 4
  years.  Ordinary least squares was used to fit this cumulative hazard
  function.   Simulations that follow are based on this fitted survival
  curve, by drawing random standard exponentially-distributed random variables
  and solving for time $t$ so that the fitted spline function equals
  the exponential random variable.}


NIH Grant Template from Marie Davidian | CTAN Styles


%  comment out the \usepackage command to kill the ``DRAFT''
%  printed diagonally across each page


\def \doublespace{\openup 2\jot}
%\setlength{\topmargin}{0.2in}    %  uncomment for linux
\setlength{\topmargin}{-0.45in}  %  uncomment for solaris





\newcommand{\slf}{\sf \em}
\newcommand{\slbf}{\sf \textbf}


%%%%%%%%%%%%%%  Start the Research Plan here %%%%%%%%%%%%%%%%%%

%%%% \newcommands and description of notation where needed


%  Next page is the personnel page for a modular grant.
\lhead{} \chead{{\scriptsize\sf Principal Investigator/Program
Director (Last, First, Middle):} \sf DAVIDIAN, Marie} 
%\lfoot{{$\bullet$ \scriptsize\sf PHS 398/2590 (Rev. 09/04)}}
\lfoot{{\scriptsize\sf PHS 398/2590 (Rev. 09/04)}}
\rfoot{{\scriptsize \slbf{Continuation Format Page}}}
\cfoot{{\scriptsize \sf Page} \underline{\,\,\,\sf\thepage\,\,\,}}

%\par \noindent


%  reset this so that this is the correct page for the final version









\section{\large \slbf{SPECIFIC AIMS}}


\section{\large \slbf{BACKGROUND AND SIGNIFICANCE}}


\subsection{\normalsize \slbf{Aim 1}}


\section{\large \slbf{PROGRESS REPORT}}


\section{\large \slbf{RESEARCH DESIGN AND METHODS}}


\subsection{\normalsize \slbf{Aim 1}}


\section{\large\slbf{HUMAN SUBJECTS RESEARCH}}

This Human Subjects Research falls under Exemption 4.

\subsection{\normalsize\slbf{Human Subjects Involvement and Characteristics}}

\subsection{\normalsize\slbf{Sources of Materials}}


\section{\large\slbf{VERTEBRATE ANIMALS} }




\section{\large\slbf{LITERATURE CITED}}


\item Paper 1.


\section{\large\slbf{RESOURCE SHARING} }



Using LaTeX for NIH Grant Applications by Bruce Donald

NIH Biosketch Style from Roberto Marabini | Output

This was found by the google search http://groups.google.com/groups?q=biographical+sketch+format+page+latex&hl=en&lr=&ie=UTF-8&selm=3736F395.2990%40THISOUT.cnb.uam.es&rnum=1
% paper width=215 height=280 
 { \small \sffamily FF} \hspace{43mm}{\scriptsize \sffamily Principal Investigator/Program Director (Last, first, middle): } 
 \underline {\hspace{6.5cm} }\\[-3mm] 
 {\center {\small \bf  \sffamily BIOGRAPHICAL SKETCH}\\ 
 {\scriptsize \sffamily Provide the following information for the key 
 personnel in the order listed on Form Page 2. \\ 
 Photocopy this page or follow this format for each person.\\[2mm]} 

 \hline {\scriptsize \sffamily \hspace{-3mm} NAME} & {\scriptsize 
 \sffamily \hspace{-1mm} POSITION TITLE} \\ 
 \ \ My-name & \ \ Postdoctoral Research Fellow \\[3mm] \hline 

{\scriptsize \sffamily EDUCATION/TRAINING }{\scriptsize \it \sffamily 
 (Begin with baccalaureate or other initial professional education, such 
 as nursing, and include postdoctoral training.) }\\[-3.5mm] 

 \parbox[t][.9cm][t]{9.2cm}{\vspace{0mm} \center \scriptsize \sffamily 
 \parbox[t][.9cm][t]{2.2cm}{\vspace{-2mm}\center \scriptsize \sffamily 
 DEGREE \\ (if applicable)} \vline{} 
 \parbox[t][.9cm][t]{2.20cm}{\vspace{0mm}\center \scriptsize \sffamily 
 YEAR(s)} \vline{} 
 \parbox[t][.9cm][t]{4.5cm}{\vspace{0mm}\center \scriptsize \sffamily 
 \parbox[t][2.1cm][t]{9.2cm}{ \vspace{2mm} MY-University\\ 
 My-other-university} \vline{} 
 \parbox[t][2.1cm][t]{2.2cm}{\vspace{2mm} M.Sc. \\ Ph.D.} \vline{} 
 \parbox[t][2.1cm][t]{2.20cm}{\vspace{2mm} 1989 \\ 1995} \vline{} 
 \parbox[t][2.1cm][t]{4.5cm}{\vspace{2mm} Physics \\ Physics} 

 \scriptsize {\sffamily   
 RESEARCH AND PROFESSIONAL EXPERIENCE: Concluding with present position, 
 list, in chronological order, previous employment, experience, and 
 honors. Include present membership on any Federal Government public 
 advisory committee. List, in chronological order, the titles, all 
 authors, and complete references to all publications during the past 
 three years and to representative earlier publications pertinent to this 
 application. If the list of publications in the last three years exceeds 
 two pages, select the most pertinent publications. {\bf \sffamily DO NOT 

1989 -- 1990 &\textbf{whatever1}, Alpha Beta Inc, Madrid 
 1990 -- 1991 &\textbf{whatever2}, Health Ministry, Madrid 
 1991 -- 1995 &\textbf{whatever3}, Centro Nacional de Biotecnolog\'{\i}a, 
 Madrid (Spain). Thesis advisor: whoever1\\[0.5cm] 
 1995 -- 1996 &\textbf{whatever4}, Silicon Graphics Inc, Madrid (Spain). 
 Supervisor: whoever1\\[0.5cm] 
1996 -- 1998 &\textbf{whatever5}, Centro Nacional de Biotecnolog\'{\i}a, 
 Madrid (Spain). Supervisor: whoever\\[0.5cm] 
 1998 -- present &\textbf{whatever7}, MIPG, Philadelphia (USA). 
 Supervisor: Dr. whoknows\\[0.5cm] 
\renewcommand{\refname}{Publications (Selected papers)} 
%\section*{Invited Papers:} 
 %Author A.: How to write invited paper. Journ.of Invited Papers, 1999, 
This requires biography.sty which is found below.

  \def\@oddhead{\hfil \rightmark}% 
  \def\@oddfoot{}\def\@evenhead{\hfil \leftmark}% 


An NIH Style Along art11.sty

% art11.sty 22-Dec-87

\lineskip 1pt \normallineskip 1pt

\abovedisplayskip 11pt plus3pt minus6pt\belowdisplayskip \abovedisplayskip
\abovedisplayshortskip \z@ plus3pt\belowdisplayshortskip 6.5pt plus3.5pt
\abovedisplayskip 10pt plus2pt minus5pt\belowdisplayskip \abovedisplayskip
\abovedisplayshortskip \z@ plus3pt\belowdisplayshortskip 6pt plus3pt minus3pt
\def\@listi{\leftmargin\leftmargini \topsep 6pt plus 2pt minus 2pt\parsep 3pt
plus 2pt minus 1pt
\itemsep \parsep}}
\abovedisplayskip 8pt plus 2pt minus 4pt\belowdisplayskip \abovedisplayskip
\abovedisplayshortskip \z@ plus 1pt\belowdisplayshortskip 4pt plus 2pt minus
\def\@listi{\leftmargin\leftmargini \topsep 4pt plus 2pt minus 2pt\parsep 2pt
plus 1pt minus 1pt
\itemsep \parsep}}
\if@twoside \oddsidemargin 36pt \evensidemargin 74pt \marginparwidth 100pt
\else \oddsidemargin 54pt \evensidemargin 54pt
 \marginparwidth 83pt 
\marginparsep 10pt 
 \topmargin 27pt 
\headheight 12pt \headsep 25pt \footskip 30pt 
\textheight = 38\baselineskip
\advance\textheight by \topskip
\textwidth 360pt \columnsep 10pt \columnseprule 0pt 

\footnotesep 7.7pt 
\skip\footins 10pt plus 4pt minus 2pt 
\floatsep 12pt plus 2pt minus 2pt \textfloatsep 20pt plus 2pt minus 4pt
\intextsep 12pt plus 2pt minus 2pt \@maxsep 20pt \dblfloatsep 12pt plus 2pt
minus 2pt \dbltextfloatsep 20pt plus 2pt minus 4pt \@dblmaxsep 20pt 
\@fptop 0pt plus 1fil \@fpsep 8pt plus 2fil \@fpbot 0pt plus 1fil 
\@dblfptop 0pt plus 1fil \@dblfpsep 8pt plus 2fil \@dblfpbot 0pt plus 1fil
\marginparpush 5pt 
\parskip 0pt plus 1pt \parindent 17pt \partopsep 3pt plus 1pt minus 2pt 
\@lowpenalty 51 \@medpenalty 151 \@highpenalty 301 
\@beginparpenalty -\@lowpenalty \@endparpenalty -\@lowpenalty \@itempenalty

\def\part{\par \addvspace{4ex} \@afterindentfalse \secdef\@part\@spart} 
\def\@part[#1]#2{\ifnum \c@secnumdepth >\m@ne \refstepcounter{part}
\addcontentsline{toc}{part}{\thepart \hspace{1em}#1}\else
\addcontentsline{toc}{part}{#1}\fi { \parindent 0pt \raggedright 
 \ifnum \c@secnumdepth >\m@ne \Large \bf Part \thepart \par\nobreak \fi \huge
\bf #2\markboth{}{}\par } \nobreak \vskip 3ex \@afterheading } 
\def\@spart#1{{\parindent 0pt \raggedright 
 \huge \bf 
 #1\par} \nobreak \vskip 3ex \@afterheading } 
\def\section{\@startsection {section}{1}{\z@}{-3.5ex plus -1ex minus 
 -.2ex}{2.3ex plus .2ex}{\large\bf}}
\def\subsection{\@startsection{subsection}{2}{\z@}{-3.25ex plus -1ex minus 
 -.2ex}{1.5ex plus .2ex}{\normalsize\bf}}
\def\subsubsection{\@startsection{subsubsection}{3}{\z@}{-3.25ex plus 
 -1ex minus -.2ex}{1.5ex plus .2ex}{\normalsize\it}}
 {paragraph}{4}{\z@}{3.25ex plus 1ex minus .2ex}{-1em}{\normalsize\bf}}
 {subparagraph}{4}{\parindent}{3.25ex plus 1ex minus 



\leftmargini 2.5em
\leftmarginii 2.2em \leftmarginiii 1.87em \leftmarginiv 1.7em \leftmarginv 1em
\leftmarginvi 1em
\labelsep .5em
\def\@listI{\leftmargin\leftmargini \parsep 4.5pt plus 2pt minus 1pt\topsep
9pt plus 3pt minus 5pt\itemsep 4.5pt plus 2pt minus 1pt}
 \topsep 4.5pt plus 2pt minus 1pt
 \parsep 2pt plus 1pt minus 1pt
 \itemsep \parsep}
 \topsep 2pt plus 1pt minus 1pt 
 \parsep \z@ \partopsep 1pt plus 0pt minus 1pt
 \itemsep \topsep}

Slide Template from Jose Pinheiro

%From Jose Pinheiro <jcp@rice.research.bell-labs.com>
%May want to add slidesonly after 11pt if using notes
%Bibliography may work with slidesonly if put it inside a slide

%{\sl OVERALL TITLE \hfil SHORT TITLE}{\hfil \thepage}


\DeclareGraphicsRule{.epsi.gz}{eps}{.bb}{`zcat #1}
\DeclareGraphicsRule{.eps.gz}{eps}{.bb}{`zcat #1}
\DeclareGraphicsRule{.ps.gz}{eps}{.bb}{`zcat #1}

%Example: \fig{myfig}{An example of a good fit on worthless data}
%Inserts postscript figure myfig.ps into document, with caption given
%This is for .ps files not generated by transfig
%\fig{label=.ps prefix}{caption}
\newcommand{\fig}[2]{\begin{figure}[htbp]           %
    % can also try \centerline{\includegraphics{}} or \centering b4 includeg.
%   \includegraphics[width=0.9\textwidth]{#1}



\newcommand{\bm}[1]{{\boldsymbol {#1}}}
\newcommand{\Ti}[1]{\hfill {\textbf{\large \blue  #1}\\}%
  \vspace*{-1cm} \rule{\linewidth}{0.2mm}}

\newcommand{\mg}[1]{{\magenta #1}}
\newcommand{\rd}[1]{{\red #1}}
\newcommand{\bu}[1]{{\blue #1}}
\newcommand{\gr}[1]{{\green #1}}

\newcommand{\splus}{{S-P\sc{lus}} \mbox{}}
\newcommand{\sct}[1]{{\scriptsize #1}}
\newcommand{\sctm}[1]{{\scriptsize $#1$}}

\Large Frank E Harrell Jr \\
Division of Biostatistics and Epidemiology \\
Department of Health Evaluation Sciences \\
University of Virginia School of Medicine \\
Box 800717 Charlottesville VA 22908 USA \\
{\tt fharrell@virginia.edu} \\
{\tt hesweb1.med.virginia.edu/biostat} \\
\textsc{MEETING \\ DATE}

%Shortcut for below:
\item ....
   \item ....

    \item \rd{Introduction}
    \item motivating examples of \mg{linear} and \mg{non-linear}
      mixed-effects models 
   \item   $x^{2} - \sum_{i=1}^{n}\chi^{2}$
    \item a sample of \splus commands for \mg{fitting} and
      \mg{analyzing} mixed-effects models. 
  \item \rd{Grouped data}
    \item \spc \mg{repeated measures}, \mg{longitudinal} data, \mg{growth
        curve} data 
    \item  \spc \mg{multiply-nested} data
    \item Data structures, \mg{classes}, and \mg{methods} for grouped
      data in \splus
    \item \spc \mg{Trellis} displays for grouped data
  \Ti{Outline (cont.'d)}
  \item[3.] \rd{Linear mixed-effects models}
    \item brief review of linear models
    \item linear mixed-effects (\mg{LME}) model
    \item \spc \mg{Multilevel} LME models
    \item the \mg{lme} function in \splus
  \item[4.] \rd{Extending the basic LME model}
    \item modelling the random effects \mg{covariance} structure
    \item variance functions for modelling \mg{heteroscedasticity}
    \item correlation structures: \mg{serial}, \mg{spatial}
    \item  S-PLUS capabilities for extending and customizing the
      \mg{lme} function
    \item the \mg{gls} function in \splus
  \Ti{Outline (cont.'d)}
  \item[5.] \rd{Nonlinear mixed-effects models}
    \item \spc \mg{nonlinear} regression model
    \item starting estimates: \mg{self-starting} models
    \item nonlinear mixed-effects (\mg{NLME}) models
    \item the \mg{nlme} function in \splus
    \item extending the basic \mg{NLME} model
    \item using \mg{covariates} with \rd{nlme}
  \Ti{Some examples}

  {\red Orthodont} -- orthodontic growth data\\[2ex]
  Distance (in millimeters) between the pituitary and the
  pterygomaxillary fissure measured every two years for 27 children
  (16 males, 11 females) from age 8 until age 14. Reported in
    distance age Subject  Sex 
  1     26.0   8     M01 Male
  2     25.0  10     M01 Male
  3     29.0  12     M01 Male
  4     31.0  14     M01 Male
  5     21.5   8     M02 Male
  6     22.5  10     M02 Male
. . .
104     19.5  14     F10 Female
105     24.5   8     F11 Female
106     25.0  10     F11 Female
107     28.0  12     F11 Female
108     28.0  14     F11 Female
  \item balanced data
  \item linear growth with time
\fig{nomogram}{This is a test.  This is only a test.}
  \item similar patterns across individuals, but with different
    intercepts and slopes \cite{har98dev}
\fig{nomogram}{This is a test.  This is only a test.}


. . . . .


Some LaTeX Graphics Inclusion Macros


%Example: \fig{myfig}{An example of a good fit on worthless data}
%Inserts postscript figure myfig.ps into document, with caption given
%This is for .ps files not generated by transfig
%\fig{label=.ps prefix}{caption}
\newcommand{\fig}[2]{\begin{figure}[htbp]           %
        \begin{center}\includegraphics{ps/#1.ps}\end{center}   %
        \small                                %
        \caption{#2}                             %
        \label{#1}                            %

%figs is same as fig but allowing a height as 2nd argument
%\figs{label=.ps prefix}{scale}{caption}
\newcommand{\figs}[3]{\begin{figure}[htbp]           %
        \begin{center}\includegraphics[#2]{ps/#1.ps}\end{center}   %
        \small                                %
        \caption{#3}                             %
        \label{#1}                            %

%figh is same as fig but has 3rd argument for short description
%for use in Table of Figures
%\figh{label=.ps prefix}{caption}{short caption}
\newcommand{\figh}[3]{\begin{figure}[htbp]           %
        \begin{center}\includegraphics{ps/#1.ps}\end{center}   %
        \small                                %
        \caption[#3]{#2}                          %
        \label{#1}                            %

%figsh is like figs but has 4th argument for short description for
%use in Table of Figures
\newcommand{\figsh}[4]{\begin{figure}[htbp]              %
%\begin{center}\scalebox{#2}{\includegraphics{ps/#1.ps}}\end{center} %unix
        \includegraphics[height=#2]{ps/#1.ps}   %
        \small                                %
        \caption[#4]{#3}                          %
        \label{#1}                            %

%figtoh is same is fig but has 2nd argument for sizing to a given height
%(e.g., 4in), 4th arg for table of figures
%\figtoh{label=.ps prefix}{size}{caption}{short caption}
\newcommand{\figtoh}[4]{\begin{figure}[htbp]   %
   \small               %
   \caption[#4]{#3}         %
   \label{#1}            %

%Similar to \fig except for transfig (.fig) figures
%\tfig{label=.ps prefix}{caption}
\newcommand{\tfig}[2]{\begin{figure}[htbp]          %
        \begin{center}                   %
        \input{#1.tex}                     %
        \small                           %
        \caption{#2}                     %
        \label{#1}                       %
        \end{center}                     %

%tfigh like \figh but has 3rd argument for short description
%for use in Table of Figures
%\tfigh{label=.ps prefix}{caption}{short caption}
\newcommand{\tfigh}[3]{\begin{figure}[htbp]          %
        \begin{center}                   %
        \input{#1.tex}                     %
        \small                           %
        \caption[#3]{#2}                     %
        \label{#1}                       %
        \end{center}                     %
Topic attachments
I Attachment Action Size Date Who Comment
biosketch.dvidvi biosketch.dvi manage 3.1 K 02 Mar 2005 - 06:56 FrankHarrell Example output of Roberto Marabini's biosketch template
Edit | Attach | Print version | History: r9 | r6 < r5 < r4 < r3 | Backlinks | View wiki text | Edit WikiText | More topic actions...
Topic revision: r5 - 28 May 2009, FrankHarrell

This site is powered by FoswikiCopyright © 2013-2022 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding Vanderbilt Biostatistics Wiki? Send feedback