sample file sect3.tex

The file sect3.tex contains only the contents of Section 3 of the document. The main LaTeX file, MyDoc.tex, inserts the contents of sect3.tex into the document by using the command
\input set3.tex

A link to the actual file sect3.tex, and some comments about its contents, are at the bottom of this page.

\section{Diagrams, tables}			% file "sect3.tex"

\LaTeX{} does provide a way to define simple diagrams,
but almost always it is easier to use other software to
draw graphs/diagrams,
save them in individual PostScript files,
then import them using the macro
\verb9\includegraphics{}9.

On the other hand, tables look pretty good when done
with \LaTeX{} formatting.  Nevertheless, it is also
possible to use other software (e.g., Excel) to save
a table to a single-page PostScript file,
then import it.  For oversize or otherwise unusual
tables, this becomes the preferred method.


\subsection{Importing a figure}

In a separate PostScript file,
\verb9diagram.eps9,
is a figure to be inserted into this document.
Here I use the simplest form of the command,
\verb9\includegraphics{diagram.eps}9:

\centerline{\includegraphics{diagram.eps}}

A more complicated form \cite{Bailey}
of the command
specifies specifize size and placement:

\centerline{\includegraphics[angle=45,width=52mm]{diagram.eps}}


\subsection{Tables}

Here is a table defined using only \LaTeX{} macros, and it
looks pretty good!

\begin{center}
\begin{tabular}{|rc|rl|cc|} \hline
	\multicolumn{6}{|c|}{\bf 2003 NCAA Men's Final Four}
	\\ \hline \hline
	&&&& \multicolumn{2}{|c|}{season} \\
	region & seed & {\bf team} & nickname & W & L
	\\ \hline
	Midwest & 3 & Marquette  & Golden Eagles & 23 & 5
	\\ \hline
	West & 2 & Kansas  & Jayhawks &    25 & 7
	\\ \hline
	South & 1 & Texas  & Longhorns &     22 & 6
	\\ \hline
	East & 3 & Syracuse  & Orangemen &  24 & 5
	\\ \hline
\end{tabular}
\end{center}


LINKS

If using pdflatex or TeXShop -- any LaTeX compiler which produces a PDF file rather than a DVI file -- then you must insert PDF images rather than PostScript images (see details). You can convert an EPS file to a PDF file using epstopdf. In the examples above one would use \includegraphics{diagram.pdf} rather than diagram.eps.