Miscellaneous LaTeX Examples and Templates
Template for a Report or Grant Application Section
%Usage: pdflatex myfile
%
\documentclass{article}
\usepackage[superscript]{cite} % remove to use brackets instead of superscripts in citations
\usepackage{graphicx}
\usepackage{relsize,setspace} % used by latex(describe( ))
\usepackage{url} % may be used in bibliography
\usepackage{fancyhdr}
\pagestyle{fancy}
\usepackage[pdftex,bookmarks,pdfpagemode=UseOutlines,
pdfauthor={Frank E Harrell Jr},
pdftitle={Bayesian Analysis Plan}]{hyperref}
% removed colorlinks after bookmarks
\newcommand{\code}[1]{\texttt{\smaller #1}}
\newcommand{\R}{{\normalfont\textsf{R}}{}}
\parskip 1.25ex
\parindent 0ex
\textwidth 6.75in
\textheight 9.25in
\topmargin -.875in
\oddsidemargin -.125in
\evensidemargin -.125in
\newcommand{\fig}[1]{\centerline{\includegraphics{#1}}}
\DeclareGraphicsExtensions{.pdf, .jpg, .png}
\setkeys{Gin}{width=0.85\textwidth}
\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 \\
\texttt{f.harrell@vanderbilt.edu}}
\date{\today}
\begin{document}
\maketitle
\section{Background}
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.}
\fig{gem}
\bibliography{/home/harrelfe/bib/feh.bib}
\bibliographystyle{abbrv}
\end{document}
NIH Grant Template (2010)
With nothing allowed in header and footer, the new template is much simpler.
Also need
myrefstyle.bst in the same folder as the .tex file.
%% For NIH grant application %%
%% July 2010 %%
%% Tatsuki Koyama %%
\documentclass[11pt]{article} %11 or 12 pt
% Packages some may find useful.
% \usepackage{graphicx,epsf,psfig,pstricks,subfigure,psfrag,rotating}
% New NIH specifications
% font = Arial, Helvetica, Palatino Linotype, or Georgia typeface
% font size 11 or larger
% margin = at least one-half inch
% Use at least one-half inch margins for all pages.
% No information should appear in the margins, including the PI's name and page numbers.
\renewcommand{\rmdefault}{phv} % Arial
\renewcommand{\sfdefault}{phv} % Arial
\usepackage[width=7.0in, height=9.5in, head=0.0in, foot=0.0in, headsep=0.0in]{geometry}
%% This controls margins. Can't go over width=7.5in, height=10.0in.
%% top-bottom margins = (11-height)/2 left-right margins = (8.5-width)/2
\usepackage{setspace} % useful in changing vertical spacing temporarily.
\usepackage{natbib} % more control over how references appear within text.
\bibpunct{[}{]}{,}{n}{}{} % like so.
%% use \citep{ref} instead of \cite{ref} in text.
\usepackage{sectsty} % can change font, size of the section headings.
\sectionfont {\fontsize{12pt}{3}\usefont{OT1}{phv}{b}{sc}\selectfont}
\subsectionfont {\fontsize{11pt}{3}\usefont{OT1}{phv}{b}{n}\selectfont}
\subsubsectionfont{\fontsize{11pt}{3}\usefont{OT1}{phv}{m}{n}\selectfont}
\renewcommand{\thesection}{\Alph{section}} % so that section headings use A B C instead 1 2 3
\renewcommand{\baselinestretch}{1}
\renewcommand\refname{\section{Literature Cited} \vspace{-1em}}
%% This changes ``Reference'' to ``Literature Cited''.
\newcommand{\inden}[1]{\mbox{} \hspace{#1} } % Force horizontal spaces.
% -- % -- % -- % -- % -- %
% -- % -- % -- % -- % -- %
\begin{document}
\pagestyle{empty}
% -- % -- % -- % -- % -- %
% -- % -- % -- % -- % -- %
\section{Specific Aims}
State concisely the goals of the proposed research and summarize the expected outcome(s),
including the impact that the results of the proposed research will exert on the research field(s) involved.
List succinctly the specific objectives of the research proposed, e.g., to test a stated hypothesis,
create a novel design, solve a specific problem, challenge an existing paradigm or clinical practice,
address a critical barrier to progress in the field, or develop new technology.
Specific Aims are limited to one page.
% -- % -- % -- % -- % -- %
\subsection{Specific Aim 1: Develop something amazing.}
\inden{2em} A.1.1: sub aim 1\\
\inden{2em} A.1.2: sub aim 2\\
\inden{2em} A.1.3: sub aim 3
% -- % -- % -- % -- % -- %
\subsection{Specific Aim 2: Develop more amazing things.}
This and that
% -- % -- % -- % -- % -- %
%\newpage
\section{Research Strategy}
Organize the Research Strategy in the specified order and using the instructions provided below.
Start each section with the appropriate section heading . Significance, Innovation, Approach.
Cite published experimental details in the Research Strategy section and provide the full reference
in the Bibliography and References Cited section.
% -- % -- % -- % -- % -- %
\subsection{Significance}
% -- % -- % -- % -- % -- %
\begin{itemize}
\item Explain the importance of the problem or critical barrier to progress in the field
that the proposed project addresses.
\item Explain how the proposed project will improve scientific knowledge, technical capability,
and/or clinical practice in one or more broad fields.
\item Describe how the concepts, methods, technologies, treatments, services,
or preventative interventions that drive this field will be changed if the proposed aims are achieved.
\end{itemize}
% -- % -- % -- % -- % -- %
\subsection{Innovation}
% -- % -- % -- % -- % -- %
\begin{itemize}
\item Explain how the application challenges and seeks to shift current research or clinical practice paradigms.
\item Describe any novel theoretical concepts, approaches or methodologies, instrumentation or interventions
to be developed or used, and any advantage over existing methodologies, instrumentation, or interventions.
\item Explain any refinements, improvements, or new applications of theoretical concepts,
approaches or methodologies, instrumentation, or interventions.
\end{itemize}
% -- % -- % -- % -- % -- %
\subsection{Approach}
% -- % -- % -- % -- % -- %
\begin{itemize}
\item Describe the overall strategy, methodology, and analyses to be used to accomplish the specific aims of the project.
Unless addressed separately in Item 15 (Resource Sharing Plan), include how the data will be collected, analyzed,
and interpreted as well as any resource sharing plans as appropriate.
\item Discuss potential problems, alternative strategies, and benchmarks for success anticipated to achieve the aims.
\item If the project is in the early stages of development, describe any strategy to establish feasibility,
and address the management of any high risk aspects of the proposed work.
\item Point out any procedures, situations, or materials that may be hazardous to personnel and precautions to be exercised.
A full discussion on the use of Select Agents should appear in Item 11, below.
\end{itemize}
% -- % -- % -- % -- % -- %
\bibliographystyle{myrefstyle} %unsrt should work, too. copy myrefstyle.bst in the same directory as the .tex file.
\bibliography{../0Bib/ref} % Or wherever you keep your .bib file.
% -- % -- % -- % -- % -- %
\end{document}
\documentclass[11pt]{article}
\usepackage{graphicx,epsf,psfig,pstricks}
\usepackage{subfigure}
\usepackage{psfrag}
\usepackage{fancyheadings}
\usepackage{helvet}
\usepackage{rotating}
% comment out the \usepackage command to kill the ``DRAFT''
% printed diagonally across each page
%\usepackage[dark,all]{draftcopy}
\def \doublespace{\openup 2\jot}
%\setlength{\textwidth}{7.15in}
%\setlength{\textwidth}{7.48in}
\setlength{\textwidth}{7.44in}
%\setlength{\textheight}{9.2in}
\setlength{\textheight}{9.32in}
%\setlength{\oddsidemargin}{-.25in}
%\setlength{\oddsidemargin}{-0.35in}
\setlength{\oddsidemargin}{-0.43in}
%\setlength{\headrulewidth}{0.2pt}
\setlength{\headrulewidth}{0.0pt}
\setlength{\footrulewidth}{.2pt}
%\setlength{\evensidemargin}{0.0in}
%\setlength{\evensidemargin}{-0.25in}
\setlength{\evensidemargin}{-0.19in}
\setlength{\headheight}{.20in}
%\setlength{\topmargin}{0.2in} % uncomment for linux
\setlength{\topmargin}{-0.45in} % uncomment for solaris
\setlength{\headsep}{1ex}
%\setlength{\parskip}{1.5ex}
\renewcommand{\baselinestretch}{0.925}
%\setlength{\baselineskip}{.10in}
\setcounter{secnumdepth}{4}
\renewcommand{\thesection}{\alph{section}}
\def\boxit#1{\vbox{\hrule\hbox{\vrule\kern6pt
\vbox{\kern6pt#1\kern6pt}\kern6pt\vrule}\hrule}}
\begin{document}
\setcounter{page}{1}
\sf
\newcommand{\slf}{\sf \em}
\newcommand{\slbf}{\sf \textbf}
%\input{resources.tex}
%%%%%%%%%%%%%% Start the Research Plan here %%%%%%%%%%%%%%%%%%
%%%% \newcommands and description of notation where needed
\newtheorem{theorem}{Theorem}[subsection]
% Next page is the personnel page for a modular grant.
\newpage
\lhead{} \chead{{\scriptsize\sf Principal Investigator/Program
Director (Last, First, Middle):} \sf DAVIDIAN, Marie}
\rhead{}
%\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\,\,\,}}
%\input{bold}
\pagestyle{fancy}
%\par \noindent
%\newpage
% reset this so that this is the correct page for the final version
\setcounter{page}{70}
\begin{flushleft}
\begin{large}
\slbf{RESOURCES AND ENVIRONMENT}
\label{page:rande}
\end{large}
\end{flushleft}
Blah.
\newpage
\noindent
\begin{large}
\slbf{INTRODUCTION TO REVISED APPLICATION}
\end{large}
Blah.
\newpage
\noindent
\begin{large}
\slbf{RESEARCH PLAN}
\end{large}
\section{\large \slbf{SPECIFIC AIMS}}
\label{s:a}
Blah.
\section{\large \slbf{BACKGROUND AND SIGNIFICANCE}}
\label{s:b}
Blah.
\subsection{\normalsize \slbf{Aim 1}}
\label{ss:aintro}
Blah.
\section{\large \slbf{PROGRESS REPORT}}
\label{s:c}
Blah.
\section{\large \slbf{RESEARCH DESIGN AND METHODS}}
\label{s:d}
Blah.
\subsection{\normalsize \slbf{Aim 1}}
Blah.
\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}}
\subsection{\normalsize\slbf{Justification}}
\section{\large\slbf{VERTEBRATE ANIMALS} }
N/A
\section{\large\slbf{CONSORTIUM/CONTRACTUAL ARRANGEMENTS}}
N/A
\section{\large\slbf{LITERATURE CITED}}
\label{s:literature}
\begin{description}
\item Paper 1.
\end{description}
\section{\large\slbf{RESOURCE SHARING} }
\section{\large\slbf{CONSULTANTS}}
\end{document}
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
\documentstyle[11pt,array,biography]{article}
% paper width=215 height=280
\textheight=240mm
\textwidth=191mm
\oddsidemargin=-12mm
\evensidemargin=-12mm
\topmargin=-17mm
\headheight=2ex
\headsep=5ex
\topskip=0mm
\footheight=2ex
\footskip=7ex
\raggedbottom
\begin{document}
\parindent=0pt
blank
\clearpage
\markboth{Principal-Investigator-Name}{Principal-Investigator-Name}
\pagestyle{myheadings}
\vspace*{-12mm}
{ \small \sffamily FF} \hspace{43mm}{\scriptsize \sffamily Principal Investigator/Program Director (Last, first, middle): }
\underline {\hspace{6.5cm} }\\[-3mm]
\hrule
{\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]}
}
\hrule
~\\
\begin{tabular}{m{9.1cm}|m{9.1cm}}
\hline {\scriptsize \sffamily \hspace{-3mm} NAME} & {\scriptsize
\sffamily \hspace{-1mm} POSITION TITLE} \\
\ \ My-name & \ \ Postdoctoral Research Fellow \\[3mm] \hline
\end{tabular}\\[-2.mm]
{\scriptsize \sffamily EDUCATION/TRAINING }{\scriptsize \it \sffamily
(Begin with baccalaureate or other initial professional education, such
as nursing, and include postdoctoral training.) }\\[-3.5mm]
\hrule
\parbox[t][.9cm][t]{9.2cm}{\vspace{0mm} \center \scriptsize \sffamily
INSTITUTION AND LOCATION} \vline{}
\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
FIELD OF STUDY}
\hrule
\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}
\hrule
~\\[-3mm]
\renewcommand{\baselinestretch}{.95}
\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
EXCEED TWO PAGES}.
}\\[-4mm]
\renewcommand{\baselinestretch}{1}
\normalsize
\section*{Experience}
\begin{tabular}{lp{5.70in}}
1989 -- 1990 &\textbf{whatever1}, Alpha Beta Inc, Madrid
(Spain).\\[0.5cm]
1990 -- 1991 &\textbf{whatever2}, Health Ministry, Madrid
(Spain).\\[0.5cm]
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]
\nocite{*}
\end{tabular}
\renewcommand{\refname}{Publications (Selected papers)}
\bibliographystyle{unsrt}
\bibliography{mybibliography}
%\section*{Invited Papers:}
%{\parsep=0ex\itemsep=0.8ex
%Author A.: How to write invited paper. Journ.of Invited Papers, 1999,
pp.1-4.
%}
\end{document}
This requires
biography.sty
which is found below.
\def\@biblabel#1{}
\def\ps@myheadings{\let\@mkboth\@gobbletwo
\def\@oddhead{\hfil \rightmark}%
\def\@oddfoot{}\def\@evenhead{\hfil \leftmark}%
\def\@evenfoot{}\def\sectionmark##1{}\def\subsectionmark##1{
}}
An NIH Style Along art11.sty
% art11.sty 22-Dec-87
\lineskip 1pt \normallineskip 1pt
\def\baselinestretch{1}
\def\@normalsize{\@setsize\normalsize{13.6pt}\xipt\@xipt
\abovedisplayskip 11pt plus3pt minus6pt\belowdisplayskip \abovedisplayskip
\abovedisplayshortskip \z@ plus3pt\belowdisplayshortskip 6.5pt plus3.5pt
minus3pt\let\@listi\@listI}
\def\small{\@setsize\small{12pt}\xpt\@xpt
\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}}
\def\footnotesize{\@setsize\footnotesize{11pt}\ixpt\@ixpt
\abovedisplayskip 8pt plus 2pt minus 4pt\belowdisplayskip \abovedisplayskip
\abovedisplayshortskip \z@ plus 1pt\belowdisplayshortskip 4pt plus 2pt minus
2pt
\def\@listi{\leftmargin\leftmargini \topsep 4pt plus 2pt minus 2pt\parsep 2pt
plus 1pt minus 1pt
\itemsep \parsep}}
\def\scriptsize{\@setsize\scriptsize{9.5pt}\viiipt\@viiipt}
\def\tiny{\@setsize\tiny{7pt}\vipt\@vipt}
\def\large{\@setsize\large{14pt}\xiipt\@xiipt}
\def\Large{\@setsize\Large{18pt}\xivpt\@xivpt}
\def\LARGE{\@setsize\LARGE{22pt}\xviipt\@xviipt}
\def\huge{\@setsize\huge{25pt}\xxpt\@xxpt}
\def\Huge{\@setsize\Huge{30pt}\xxvpt\@xxvpt}
\normalsize
\if@twoside \oddsidemargin 36pt \evensidemargin 74pt \marginparwidth 100pt
\else \oddsidemargin 54pt \evensidemargin 54pt
\marginparwidth 83pt
\fi
\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
-\@lowpenalty
\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}}
\def\paragraph{\@startsection
{paragraph}{4}{\z@}{3.25ex plus 1ex minus .2ex}{-1em}{\normalsize\bf}}
\def\subparagraph{\@startsection
{subparagraph}{4}{\parindent}{3.25ex plus 1ex minus
.2ex}{-1em}{\normalsize\bf}}
\setcounter{secnumdepth}{3}
\def\appendix{\par
\setcounter{section}{0}
\setcounter{subsection}{0}
\def\thesection{\Alph{section}}}
\leftmargini 2.5em
\leftmarginii 2.2em \leftmarginiii 1.87em \leftmarginiv 1.7em \leftmarginv 1em
\leftmarginvi 1em
\leftmargin\leftmargini
\labelsep .5em
\labelwidth\leftmargini\advance\labelwidth-\labelsep
\def\@listI{\leftmargin\leftmargini \parsep 4.5pt plus 2pt minus 1pt\topsep
9pt plus 3pt minus 5pt\itemsep 4.5pt plus 2pt minus 1pt}
\let\@listi\@listI
\@listi
\def\@listii{\leftmargin\leftmarginii
\labelwidth\leftmarginii\advance\labelwidth-\labelsep
\topsep 4.5pt plus 2pt minus 1pt
\parsep 2pt plus 1pt minus 1pt
\itemsep \parsep}
\def\@listiii{\leftmargin\leftmarginiii
\labelwidth\leftmarginiii\advance\labelwidth-\labelsep
\topsep 2pt plus 1pt minus 1pt
\parsep \z@ \partopsep 1pt plus 0pt minus 1pt
\itemsep \topsep}
\def\@listiv{\leftmargin\leftmarginiv
\labelwidth\leftmarginiv\advance\labelwidth-\labelsep}
\def\@listv{\leftmargin\leftmarginv
\labelwidth\leftmarginv\advance\labelwidth-\labelsep}
\def\@listvi{\leftmargin\leftmarginvi
\labelwidth\leftmarginvi\advance\labelwidth-\labelsep}
Slide Template from Jose Pinheiro
%From Jose Pinheiro <jcp@rice.research.bell-labs.com>
\documentclass[semhelv,semcolor,portrait,11pt]{seminar}
%May want to add slidesonly after 11pt if using notes
%Bibliography may work with slidesonly if put it inside a slide
\centerslidesfalse
%\usepackage{S}
\usepackage{graphicx}
%\usepackage{pstricks}
%\newpagestyle{intro}%
%{\sl OVERALL TITLE \hfil SHORT TITLE}{\hfil \thepage}
%\pagestyle{intro}
\slideframe{none}
\graphicspath{{figs/}}
\DeclareGraphicsExtensions{.eps.gz,.eps,.epsi.gz,.epsi,.ps,.ps.gz}
\DeclareGraphicsRule{*}{eps}{*}{}
\DeclareGraphicsRule{.epsi.gz}{eps}{.bb}{`zcat #1}
\DeclareGraphicsRule{.eps.gz}{eps}{.bb}{`zcat #1}
\DeclareGraphicsRule{.ps.gz}{eps}{.bb}{`zcat #1}
\setkeys{Gin}{width=\textwidth}
%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}
% can also try \centerline{\includegraphics{}} or \centering b4 includeg.
\leavevmode
\includegraphics{#1}
% \includegraphics[width=0.9\textwidth]{#1}
\end{center}
\caption{#2}
\label{#1}
\end{figure}}
\newcommand{\bs}[1]{\begin{slide*}\Ti{#1}}
\newcommand{\es}{\end{slide*}}
\newcommand{\bi}{\begin{itemize}}
\newcommand{\ei}{\end{itemize}}
\newcommand{\be}{\begin{enumerate}}
\newcommand{\ee}{\end{enumerate}}
\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{\Cf}[1]{\textsf{#1}}
\newcommand{\splus}{{S-P\sc{lus}} \mbox{}}
\newcommand{\spc}{$\mbox{}$}
\newcommand{\sct}[1]{{\scriptsize #1}}
\newcommand{\sctm}[1]{{\scriptsize $#1$}}
\begin{document}
\vspace*{\stretch{1}}
\noindent\rule{\linewidth}{1mm}
\begin{flushright}
\huge
TITLE\\[2ex]
\Large Frank E Harrell Jr \\
\normalsize
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} \\
\end{flushright}
\rule{\linewidth}{1mm}
\vspace*{\stretch{2}}
\begin{center}
\textsc{MEETING \\ DATE}
\end{center}
\thispagestyle{empty}
%Shortcut for below:
\bs{Outline}
\be
\item ....
\bi
\item ....
\ei
\ee
\es
\begin{slide*}
\Ti{Outline}
\begin{enumerate}
\item \rd{Introduction}
\begin{itemize}
\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.
\end{itemize}
\item \rd{Grouped data}
\begin{itemize}
\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
\end{itemize}
\end{enumerate}
\end{slide*}
\begin{slide*}
\Ti{Outline (cont.'d)}
\begin{enumerate}
\item[3.] \rd{Linear mixed-effects models}
\begin{itemize}
\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
\end{itemize}
\item[4.] \rd{Extending the basic LME model}
\begin{itemize}
\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
\end{itemize}
\end{enumerate}
\end{slide*}
\begin{slide*}
\Ti{Outline (cont.'d)}
\begin{enumerate}
\item[5.] \rd{Nonlinear mixed-effects models}
\begin{itemize}
\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}
\end{itemize}
\end{enumerate}
\end{slide*}
\begin{slide*}
\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
\cite{har96mul}
{\tiny
\begin{verbatim}
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
\end{verbatim}}
\begin{itemize}
\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}
\end{itemize}
\fig{nomogram}{This is a test. This is only a test.}
\end{slide*}
\bs
\small
\bibliographystyle{abbrv}
\bibliography{c:/doc/survrisk/feh}
\es
\bs{Abstract}
{\small
. . . . .
}
\es
\end{document}
Some LaTeX Graphics Inclusion Macros
\usepackage[dvips]{graphics}
%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} %
\end{figure}}
%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} %
\end{figure}}
%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} %
\end{figure}}
%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} %
\end{figure}}
%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] %
%
%\begin{center}\resizebox{!}{#2}{\includegraphics{ps/#1.ps}}\end{center}%UNIX
\begin{center}{\includegraphics[height=#2]{ps/#1.ps}}\end{center}
\small %
\caption[#4]{#3} %
\label{#1} %
\end{figure}}
%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} %
\end{figure}}
%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} %
\end{figure}}
A nice collection of LaTeX templates
http://www.latextemplates.com/