LaTex and TeX Template File Listings

File Listings from Living Linux column, Document Templates for TeX and LaTeX.

LaTeX templates

TeX templates


A letter or other correspondence -- letter.ltx


% LaTeX Template for a Letter or Correspondence
% 
% To use:
%
% Copy into a new file, replace all
% [BRACKETED UPPER CASE TEXT]
% with your own, then run the latex command on it.
% Use dvips to print the .dvi output
\documentclass{letter}

% If the letter doesn't fit on one page, but you
% want it do, remove the ``%'' on the next line:
% \setlength{\textheight}{8in}

\begin{document}
% If you want headings on subsequent pages,
% remove the ``%'' on the next line:
% \pagestyle{headings}

\begin{letter}{[TO NAME]\\
        [TO STREET ADDRESS]\\
        [TO CITY, STATE \ ZIP]}
\address{[FROM NAME]\\
        [FROM STREET ADDRESS]\\
        [FROM CITY, STATE \ ZIP]}

\opening{[SALUTATION]}

[BODY OF LETTER, PARAGRAPHS SEPARATED BY BLANK LINE.]


\signature{[YOUR NAME]\\
        [YOUR TITLE]}

\closing{[CLOSING,]}

\encl{[ENCLOSURE LISTING]}

\end{letter}
\end{document}

An article, research or term paper -- article.ltx

% LaTeX Template for a short article
% 
% To use:
%
% Copy into a new file, replace all
% [BRACKETED UPPER CASE TEXT]
% with your own, then run the latex command on it.
% Use dvips to print the .dvi output
\documentclass{article}
\usepackage{pslatex}

\author{[YOUR NAME]\\
        [YOUR TITLE]\\
\texttt{[YOUR EMAIL]}
}

\title{[TITLE OF YOUR ARTICLE]}

\begin{document}

\maketitle

\pagestyle{headings}

\section{[FIRST SECTION HEADER]}

[TEXT OF ARTICLE.

SEPARATE PARAGRAPHS WITH BLANK LINES.

INSERT SECTION HEADERS LIKE THIS:

\section{Conclusion}

MAKE BOLD TEXT LIKE \textbf{THIS}, and italicized text like \it{THIS}.]

\end{document}

A book manuscript -- manuscript.ltx

% LaTeX Template for a book manuscript 
% 
% To use:
%
% Copy into a new file, replace all 
% [BRACKETED UPPER-CASE TEXT]
% with your own, then run the latex command on it.
% Use dvips to print the .dvi output

\documentclass[12pt,oneside]{report}
\usepackage[T1]{fontenc}

\usepackage[submit]{manuscript}

\author{[AUTHOR NAME]}
\authaddr{[AUTHOR STREET ADDRESS]\\
[AUTHOR CITY, STATE \ ZIP]\\
[AUTHOR TELEPHONE NUMBER]}

\title{[TITLE OF BOOK]}
\headtitle{[SHORT TITLE FOR PAGE HEADERS]}
\wordcount{[NUMBER OF WORDS]}

\begin{document}

\maketitle

[THE TEXT OF YOUR MANUSCRIPT GOES HERE.

SEPARATE EACH PARAGRAPH WITH A BLANK LINE.

TO UNDERLINE WORDS, PUT THEM IN TAGS \emp{LIKE THIS}.

TO MAKE A MANUAL PAGE BREAK AT ANY PLACE IN THE MANUSCRIPT, INSERT
\newpage
AT THE PLACE WHERE YOU WANT THE BREAK.]

\end{document}

A cover sheet for sending fax messages -- fax.tex

% TeX Template for a fax cover sheet
% 
% To use:
%
% Copy into a new file, replace all
% [BRACKETED UPPER-CASE TEXT]
% with your own, then run the latex command on it.
% Use dvips to print the .dvi output

\nopagenumbers\rm\parindent=0 pt
\centerline{\bf FACSIMILE MESSAGE---[PAGE NUMBER] PAGES INCLUDING COVER}

\vskip .1 in
\hrule depth 2 pt
\vskip .1 in

\rightline{[TODAY'S DATE]}
\vskip .5 in
\rightline{[FROM NAME]}
\rightline{[FROM STREET ADDRESS]}
\rightline{[FROM CITY, STATE ZIP]}
\rightline{[FROM TELEPHONE NUMBER]}

attn: 

[TO NAME]

[TO STREET ADDRESS]

[TO CITY, STATE ZIP]

[TO TELEPHONE NUMBER]

\vskip .5 in
[SALUTATION]
\vskip .25 in

[PUT ANY MESSAGE HERE, SKIP SPACES BETWEEN PARAGRAPHS]

\parindent=0 pt\vskip .25 in
[CLOSING]
\vskip .5 in
[YOUR NAME]

[YOUR TITLE]
\end

A No. 10 mailing envelope -- envelope.tex

% TeX Template for an envelope
% 
% To use:
%
% Copy into a new file, replace all
% [BRACKETED UPPER-CASE TEXT]
% with your own, then run the tex command on it.
% Use dvips to print the .dvi output in landscape mode:
% dvips -t landscape reg-env.dvi 

\font\cmssa = cmss12
\font\cmssc = cmss14

\parindent 0 pt\nopagenumbers\parskip 10 pt
\hsize 9.5 in\vsize 3.25 in
\voffset 3.5 in
\cmssc

[FROM NAME]

[FROM STREET ADDRESS]

[FROM CITY, STATE \ ZIP]

\vskip .5 in\vskip 15 pt\parindent 3 in

[TO NAME]

[TO STREET ADDRESS]

[TO CITY, STATE \ ZIP]

\end

A single mailing label for printing on standard 15-up sheets -- label.tex

% TeX Template for a single mailing label printed
% on standard 15-up sheets
% 
% To use:
%
% Copy into a new file, replace all
% [BRACKETED UPPER-CASE TEXT]
% with your own, then run the tex command on it.
% Use dvips to print the .dvi output

\font\cmssc = cmss14
\font\cmsss = cmss10

\parindent 0 pt\nopagenumbers\parskip 10 pt
\hsize 9.5 in\vsize 12 in

% If you have an address with long lines,
% replaces \cmssc below with \cmsss
\cmssc

% By default, template prints on label in 
% upper-left hand corner. Adjust offsets to
% print on a different label:

% For each label vertically across the sheet,
% add 2.25 to the number below.
\voffset .1 in

% For each label horizontally down the sheet,
% add 2.75 to the number below.
\hoffset 2 in

[TO NAME]

[TO STREET ADDRESS]

[TO CITY, STATE \ ZIP]

\end