The goal of this page is to provide a very simple start for people to begin using LaTeX the powerful typesetting language. If you find something on this page confusing, please email me.
Setting up LaTeX isn't too hard. You can learn about it from LaTeX Bibliography and other resources. Here are several methods I've used:
\documentclass[12pt]{article}
\begin{document}
\large
a buncha
stuff
\begin{equation}
\sqrt{\pi}
\end{equation}
\end{document}
I called it test.tex. Then I did this:
The first line ran LaTeX and the second one poped up a viewer.
It worked fine.
latex test
xdvi test
On Ubuntu I also did:
I found I needed to install gv - that took only a few seconds.
So I was able to get LaTeX running on Ubuntu in about 5 minutes,
mostly waiting for the download.
The last step made a PDF for me and double clicking on it
in the graphical window
opened it in evince.
latex test
dvips test
gv test.ps
ps2pdf test.ps
\usepackage{graphics}
\usepackage{wrapfig}
\usepackage{floatfig}
Then call the graphics directly like this:
\includegraphics*{fig/logowalker.ps}
or inside a figure:
\begin{figure}
\begin{center}
\scalebox
{0.9} % h_length
{
\includegraphics*{fig/logowalker.ps}
}
\end{center}
\caption{
The caption
}
\label{fig.logowalker}
\end{figure}
The wrapfig and floatfig packages are very cool - they let
you wrap figures around text. Between paragaphs:
\begin{floatingfigure}{7 cm}
\scalebox{0.6}{
\includegraphics*[140,270][450,640]{fig/t7-wt-ex.ps}
}
\caption{Sequence logos for T7 promoters.
Top: wild type promoters \cite{Schneider1986};
bottom: strong T7 promoters found by an
\emph{in vivo} genetic screen \cite{Schneider1989}.
}
\noindent \hrulefill
\label{fig.t7-wt-ex}
\end{floatingfigure}
Wrap figure looks like this:
\begin{wrapfigure}{r}{12cm}
\begin{center}
\rotatebox{-90}{
\scalebox
{0.57} % h_length
{
% Note: the "*" makes the graphic be clipped - this is needed!!
% Guide to Latex p. 168
\includegraphics*[50,110][540,695]{fig/baseflipcover.ps}
}
}
\end{center}
\caption{
Anomalous base in RepA binding sites.
Sequence logos for
12 repressors and activators were created.
The logos were
then aligned so that the proteins would all be on
the same face of the DNA.
Since proteins make most of their contacts
in major grooves, there are two highly conserved
regions that correspond to two major grooves of
DNA, shown on top.
In addition, the sequence logo for
bacteriophage P1 RepA protein binding sites
was overlayed on top of the other sequence logos.
An unusually conserved thymine (red T) in the middle of
the RepA sites,
dubbed ``Tom's T'' by Dhruba Chattoraj,
is visible which corresponds to the minor groove facing
towards RepA.
Such a large amount of sequence conservation
in the minor groove
($> 1$ bit) is not possible with B-form DNA,
so the base must be distorted.
This figure
was
the cover of \emph{Nucleic Acids Research}
Volume 29, Number 23,
December 1, 2001
\cite{Schneider.baseflip.2001}.
}
\label{fig.baseflipcover}
\end{wrapfigure}
}
More information may be found in:
Guide to LATEX: Document Preparation for Beginners and
Advanced Users by Helmut Kopka, Patrick W. Daly.
Buy it!!
![]()
Schneider Lab
origin: 2000 February 16
updated: 2012 Apr 02
Viewing Files
Accessibility