Rob's favorite links to all things LaTeX.
Things have changed recently so that it is now easier to control how citations appear in the document. To get some control over citations, use the cite.sty package (i.e.,
\usepackage{cite} To have
citation numbers appear as superscripts, change this to be
\usepackage[super]{cite} and that may be all you ever need to
know. For more info, read the cite.sty file.
Mine looks like this and gives an 11-point like font that NIH has accepted without problem on several occasions.
\usepackage{times}
% This command somehow makes Helvetica fonts
\renewcommand\rmdefault{phv}
\mathrm, for example
$\mathrm{\mu A / cm ^ 2}$
creates "micro-Amps per cm squared" with the correct fonts.
\usepackage{graphicx}
\usepackage{picinpar}
\begin{figwindow}[3,l,%
{\includegraphics[height=2in]{leadfield.eps}},%
{\label{fig:leadfield} Electrocardiographic lead field for use
in the student lab for Bioengineering 6000 class.}]
In this lab, you will record the standard limb leads in sequence,
according to the diagram below:
The goal for the Frank electrode system is to capture the
three-dimensional extent of the heart dipole. For this, it is
necessary to measure potential differences not just in the frontal
plane, as in the limb leads, but along the antero-posterior
(front-to-back) axis of the body. The diagram below illustrates the
original Frank lead system \cite{RSM:Fra56} and we will use a
simplified version of this.
\end{figwindow}
Note that despite what the documentation says, this does not work for
centering a figure and having text wrap around both sides.
For example:
\begin{floatingfigure}[r]{0.4\textwidth}
\centering
\includegraphics[width=0.4\textwidth]{lake1}
\caption{Text wrap around figure}
\noindent \hrulefill
\label{test}
\end{floatingfigure}
and
\begin{wrapfigure}{r}{0.4\textwidth}
\centering
\includegraphics[width=0.4\textwidth]{lake1}
\caption{Text wrap around figure}
\noindent \hrulefill
\label{test}
\end{wrapfigure}
The difference between floatingfigure and wrapfigure is that the text typed after \end{floatingfigure} will be forced to be a new paragraph.
For more information, please refer to floatflt manual and a webpage about wrapfig.
\usepackage{ulem}
\normalem
Getting and setting up Auctex is easy, either for a sysadmin type or a mere mortal. If you do not have local support, here are the steps:
make
make lispdir=$HOME/emacs/lisp install
(setq load-path (cons "~/emacs/lisp" load-path))
(require 'tex-site)
(setq TeX-auto-save t)
(setq TeX-parse-self t)
(setq-default TeX-master nil)
(setq LaTeX-indent-level 4)
(setq LaTeX-item-indent -2)
Note: the first 2 lines are required; the rest are some useful settings you can alter at will.
One of the mysteries of Emacs version 21 is how to set up colors for the different elements of a document. This used to happen with highlight packages but now it is built in and hence more powerful and sometimes more difficult to use. Here are some points to note in fumbling around with this feature.
(global-font-lock-mode t)
M-x customize-face
(custom-set-faces
'(font-lock-comment-face ((t (:foreground "pink")))))
C-h v
font-lock-keywords
Then read the documentation at the top or jump to the encoded list of
keywords at the bottom.