Wednesday, May 10, 2006

Latex information

I was thinking this could be a post for people to put some useful Latex snippits, style files, etc. I might as well get this started by posting the USC thesis style file. You can find it here. The style file is actually pretty good at explaining things, but the main commands are:
  1. \usepackage[final,thesis]{USCthesis} %Look in the style file for the different options, there are lots of them for things like qual, final, etc.
  2. \title[]{blah}
  3. \author{}
  4. \committee{Prof 1\\*
    Prof 2\\*
    Prof 3}
  5. \majorfield{COMPUTER SCIENCE}
  6. \submitdate{Month 2005}
  7. You use \chapter{chapter name} instead of \section{}
Lastly, to use the bibliography you need to somethign like:
\begin{singlespace}
\references[Reference List]{plain}{refs}
\end{singlespace}

Note that refs is the name of the bibtex file. I hope this is useful.

1 comment:

Martin Michalowski said...

Here is some of the minipage stuff I was talking about:

How to Put Two Figures Next to Each Other

\begin{figure}[h]
\hfill
\begin{minipage}[t]{.45\textwidth}
\begin{center}
\epsfig{file=figure1.eps, scale=0.5}
\caption{figure 1}
\label{fig-tc}
\end{center}
\end{minipage}
\hfill
\begin{minipage}[t]{.45\textwidth}
\begin{center}
\epsfig{file=figure2.eps, scale=0.5}
\caption{figure 2}
\label{fig-tc}
\end{center}
\end{minipage}
\hfill
\end{figure}

Or as Donovan said, you can use subfigure. You have to include the /usepackage{subfigure} in your document:

begin{figure}[htbp]
\begin{center}
\mbox{
\subfigure[Honda]{\scalebox{0.3}{\input{prelude.pstex_t}}} \quad
\subfigure[Toyota]{\scalebox{0.3}{\input{celica.pstex_t}}} \quad
\subfigure[Nissan]{\scalebox{0.3}{\input{FairladyZ.pstex_t}}}
}
\caption{I like these!}
\label{fig:my_car}
\end{center}
\end{figure}

There are more helpful tips here.