Template for American Journal of Psychiatry

Here is a cover letter as shown except for the date location (maybe someone can advice us on how to change its location unless that doesn't matter).

In the main document, you add \usepackage{pdfpages} and where you want the letter you put \includepdf[pages = 1]{coverletter.pdf}. The pages = option is what page you want to insert the cover letter.

Here is a link to the package documentation: http://www.ctan.org/pkg/pdfpages

\documentclass[11pt]{letter}
\usepackage{newcent}
\usepackage{lipsum}
% Margins                                                                           
\topmargin = -1in
\textheight = 8.5in
\oddsidemargin = -10pt
\textwidth = 6.5in
\let\raggedleft\raggedright
\begin{document}
\begin{letter}{
    My Name\\
    U of Research\\
    Some address\\
    Some city, state, and zip code\\
    Some phone number\\
    My e-mail address\\
    \medskip
    Dr. John Edit\\
    Editor-in-Chief\\
    \textit{Journal of Science}
  }
  \signature{
    My Name\\
    Professor, Dep ...\\
    U of Research
  }
  \opening{Dear Dr. Edit:}
  \lipsum[2-4]
  \closing{Sincerely,}
\end{letter}
\end{document}

enter image description here


Here was a sample main.tex I created.

\documentclass{article}
\usepackage{lipsum}
\usepackage[final]{pdfpages}
\usepackage{tocloft}
% this section enclosed was lifted from Alan Munn
\usepackage{fancyhdr}
\fancyhf{}
\renewcommand{\headrulewidth}{0pt}
\pagestyle{fancy}
%-------------------------------------------------
\cfoot{\thepage}
\begin{document}
\cleardoublepage
\tableofcontents

\includepdf[addtotoc = {1, section, 1, Cover Letter, coverl}, pagecommand =
{\thispagestyle{fancy}}]{coverletter.pdf}
% addtotoc has {section number (first so it occurs after the toc, 
% type it could chapter, section, etc, level refers to chapter...,
% the name in toc, and reference label

\section{Two}
\lipsum[1-3]
\end{document}

Since this was 3 pages, I had to take unorthodox pictures to show it achieves your request.

Table of Contents correctly ordered:

enter image description here


Bottom of TOC page with letter following:

enter image description here


Bottom of the letter page numbered in correct order:

enter image description here


Bottom of the letter followed by the first section which has been indexed to the section 2.

enter image description here


Dustin has given you a layout for a letter. Here's some commands to modify the title page of the apa6e class so that the other information is included. I have created the following new commands:

  • \coverletter{} the filename of the PDF coverletter
  • \wordcount{} the word count of the document (you must supply this value)
  • \previous{} place of previous presentation
  • \address{} corresponding author's address
  • \disclosures{} any disclosures

Each of these needs to be provided a value for the document to compile correctly.

Note that counting words in LaTeX is a non-trivial task. See:

  • Is there any way to do a correct word count of a LaTeX document?

For some other options on letters in LaTeX see:

  • Letter class alternatives with support for figures, tables, and labels
  • Business letter template with letterhead on the side
  • Reproducing an official letterhead

It's not clear from your description whether the letter should have a numbered page or not, or just be included in the page numbering (so that the title page is numbered 2). Also, since the word count occupies the top right hand corner it's not clear whether the title page itself should have a number.)


Code

\documentclass{apa6e}
\usepackage{pdfpages} % to include the cover letter
\usepackage{kantlipsum} % for dummy text in this example
\makeatletter
% define new commands to meet Am. J. Psych.
\newcommand{\coverletter}[1]{\def\@coverletter{#1}}
\newcommand{\wordcount}[1]{\long\def\word@count{#1}}
\newcommand{\previous}[1]{\long\def\@previous{#1}}
\newcommand{\address}[1]{\long\def\@address{#1}}
\newcommand{\disclosures}[1]{\long\def\@disclosures{#1}}
% need to redefine fancyhdr's head command to use [t] aligned par boxes
\def\@fancyhead#1#2#3#4#5{#1\hbox to\headwidth{\fancy@reset
  \@fancyvbox\headheight{\hbox
    {\rlap{\parbox[t]{\headwidth}{\raggedright#2}}\hfill
      \parbox[t]{\headwidth}{\centering#3}\hfill
      \llap{\parbox[t]{\headwidth}{\raggedleft#4}}}\headrule}}#5}
% redefine the title page style to include the word count
\fancypagestyle{titlepage}{%
\setlength{\headheight}{2\baselineskip}
\lhead{Running head: \MakeUppercase{\@shorttitle}}
\rhead{\word@count}}
% redefine \maketitle to include the extra fields
\renewcommand{\maketitle}{%
\includepdf[pages=1-,offset={-.5in 0in}]{\@coverletter}
\thispagestyle{titlepage}%
\vspace*{1in}%
\Centering\@title\\\@author
\vfil%
\RaggedRight
\@previous
\vfil
\@address
\vfil%
\@disclosures
\vfil
\ifdefined%
  \apaSIXe@leavefloats%
  {\large\textbf{\textit{A helpful reminder, courtesy \texttt{apa6e.cls}:} Figures and tables are currently mixed in with
      your text for easier reading. Don't forget to remove the
      \texttt{leavefloats} option before you submit!}\vfill}%
\fi
Author Note\par\RaggedRight\@authornote%
\mspart{Abstract}%
\@abstract%
\mspart{\@title}}
\makeatother

% You need to supply all of the following:
\title{The title of the paper}
\shorttitle{Short title}
\author{An Author}
\previous{This was previously presented at a big conference.}
% Address is best put in a tabular (but not required)
\address{
\begin{tabular}{@{}l}
University of Somewhere\\
Psych Building\\
Somewhere
\end{tabular}
}
\wordcount{2000 words\\2 tables\\3 figures}
\disclosures{I am not funded by Big Pharma.}
\abstract{\kant[2]}
\authornote{}
\coverletter{myletter.pdf} % fill in the name of your letter PDF here
% once these are defined \maketitle does the rest
\begin{document}
\maketitle
\kant[3]
\end{document}

Packaging this as a package

These kinds of modifications are best put into a package. Save the following as ajp.sty in your local texmf directory and then you can eliminate all the code between \makeatletter and \makeatother (including those commands) and replace it with:

\usepackage{ajp}

ajp.sty

\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{ajp}[2013/08/16 Extra stuff for American Journal of Psychiatry v 1.0]
\@ifclassloaded{apa6e}{}
{\PackageError{apj}
  {This package assumes you are using the apa6e class}
  {Please load the apa6e class.}}
\RequirePackage{pdfpages}
% define new commands to meet Am. J. Psych.
\newcommand{\coverletter}[1]{\def\@coverletter{#1}}
\newcommand{\wordcount}[1]{\long\def\word@count{#1}}
\newcommand{\previous}[1]{\long\def\@previous{#1}}
\newcommand{\address}[1]{\long\def\@address{#1}}
\newcommand{\disclosures}[1]{\long\def\@disclosures{#1}}
% need to redefine fancyhdr's head command to use [t] aligned par boxes
\def\@fancyhead#1#2#3#4#5{#1\hbox to\headwidth{\fancy@reset
  \@fancyvbox\headheight{\hbox
    {\rlap{\parbox[t]{\headwidth}{\raggedright#2}}\hfill
      \parbox[t]{\headwidth}{\centering#3}\hfill
      \llap{\parbox[t]{\headwidth}{\raggedleft#4}}}\headrule}}#5}
% redefine the title page style to include the word count
\fancypagestyle{titlepage}{%
\setlength{\headheight}{2\baselineskip}
\lhead{Running head: \MakeUppercase{\@shorttitle}}
\rhead{\word@count}}
% redefine \maketitle to include the extra fields
\renewcommand{\maketitle}{%
\includepdf[pages=1-,offset={-.5in 0in}]{\@coverletter}
\thispagestyle{titlepage}%
\vspace*{1in}%
\Centering\@title\\\@author
\vfil%
\RaggedRight
\@previous
\vfil
\@address
\vfil%
\@disclosures
\vfil
\ifdefined%
  \apaSIXe@leavefloats%
  {\large\textbf{\textit{A helpful reminder, courtesy \texttt{apa6e.cls}:} Figures and tables are currently mixed in with
      your text for easier reading. Don't forget to remove the
      \texttt{leavefloats} option before you submit!}\vfill}%
\fi
Author Note\par\RaggedRight\@authornote%
\mspart{Abstract}%
\@abstract%
\mspart{\@title}}
\endinput

Output of first 4 pages

output of code

Tags:

Templates