return to Creating Document
latex MyDoc.tex (or pdflatex MyDoc.tex) bibtex MyDoc.tex (for the bibliography)The contents of the file MyDoc.tex are displayed in the window below. It is plain text -- ASCII -- so it could be typed using any text editor, e.g., vi or emacs or pico. A word processor (e.g., MS Word) generally inserts non-ASCII characters to control the formatting of a document, whereas in a LaTeX file any formatting instructions are clearly readable as plain text in the form of macros, generally anything preceeded by a backslash \. Note that LaTeX ignores a percent signs and everything that follows it on a line, so % is used for comments not to appear in the printed document. (When preceeded by a backslash, \%, LaTeX will recognize/print a percent sign rather than ignoring it as a comment.)
To view or download the actual LaTeX file MyDoc.tex, or any of its associated LaTeX files, see the links at the bottom of this page, or click on the links in the window below.
\documentclass[12pt,twoside]{article} % file "MyDoc.tex"
\usepackage{graphicx}
\usepackage{amssymb}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% PRELIMINARY STUFF
% default values = 1" margins all around
\setlength{\textwidth}{168mm}
\setlength{\evensidemargin}{-5mm}
\setlength{\oddsidemargin}{-5mm}
\setlength{\textheight}{225mm}
\setlength{\topmargin}{-12mm}
\setlength{\parindent}{0mm}
\setlength{\parskip}{1.0ex}
\title{On Accelerated Dispersion of Reactive Solvents
\thanks{This research was supported by the National Sciense
Foundation under grant JQX-637292.}}
\author{Jane Q. Doe \\
Department of Applied Chemistry \\
University of Colorado \\
Boulder CO 80309}
\date{6 September 2003}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% BODY OF DOCUMENT
\begin{document}
\maketitle
\tableofcontents % this is optional
This document showcases some of the important basics
features of \LaTeX.
You should view the text of these ``source files''
(files named with the \verb9.tex9 and \verb9.bib9
suffixes), which showcases some basic features;
how to include other \LaTeX{} files, produce lists,
footnotes\footnote{This is an example}
and references.
Of particular importance are examples of
mathematical formulae and included diagrams.
\input sect1.tex
\input sect2.tex
\input sect3.tex
% \input sect4.tex
% \input sect5.tex
\appendix
\input appendix.tex % file with the contents of appendix A
% \input appendixB.tex % file with the contents of appendix B
% \input appendixC.tex % file with the contents of appendix C
\bibliographystyle{plain} % or "unsrt", "alpha", "abbrv", etc.
\bibliography{biblio} % use data in file "biblio.bib"
\end{document}
|
MyDoc.tex,     sect1.tex,     sect2.tex,     sect3.tex,     appendix.tex
biblio.bib,     diagram.eps,     diagram.pdf,     MyDoc.pdf
MyDoc.log,     MyDoc.aux,     MyDoc.dvi,     MyDoc.toc,     MyDoc.bbl,     MyDoc.blg