• If you are citizen of an European Union member nation, you may not use this service unless you are at least 16 years old.

• Want to get organized in 2022? Let Dokkio put your cloud files (Drive, Dropbox, and Slack and Gmail attachments) and documents (Google Docs, Sheets, and Notion) in order. Try Dokkio (from the makers of PBworks) for free. Available on the web, Mac, and Windows.

View

# LaTex

last edited by 9 years, 11 months ago

Useful books:

Lamport introductory book

LaTeX Companion

You might check out ~ruml/lib/tex

AAAI paper templates

for finding the tex name of a symbol you know how to draw: detexify

## For Talks

the powerdot class and its manual

Wheeler has some powerdot samples

We've got a thesis template as well

## Figures

graphicx

ps-tricks trees

Inkscape - vector drawing, snazzier than xfig

xfig

Dia?

tikz+pgf

gnuplot - yuck

## Psuedo-code in Papers

Wheeler uses macros like this

\newcommand{\bncode}{
\begin{tabbing}
0. nn\=nn\=nn\=nn\=nn\=nn\=nn\=nn\=nn\=nn\kill
}
\newcommand{\ecode}{\end{tabbing}}


to format code like this

\begin{figure}


\bncode


1. while there is an \nblock\ with open nodes \\


2. \&gt; lock; $b \leftarrow$ best free $n$block; unlock \\


3. \&gt; while $b$ is no worse than the best free \nblock\ or \\


4. \&gt; \&gt; \&gt; we've done fewer than $m$ expansions \\


5. \&gt; \&gt; $n \leftarrow$ best open node in $b$ \\


6. \&gt; \&gt; if $f(n) &gt; f(\myit{incumbent})$, prune all open nodes in $b$ \\


7. \&gt; \&gt; else if $n$ is a goal \\


8. \&gt; \&gt; \&gt; if $f($n$) &lt; f(\myit{incumbent})$ \\


9. \&gt; \&gt; \&gt; \&gt; $\myit{incumbent} \leftarrow n$ \\


10. \&gt; \&gt; else for each child $c$ of $n$ \\


11. \&gt; \&gt; \&gt; insert $c$ in the open list of the appropriate \nblock


\ecode


\caption{A sketch of the PBNF search framework.}


\label{fig:pbnf}


\end{figure}



Some people like the algorithmicx package.

## Configuring Latex

How to point to the groups Latex setup:

setenv TEXINPUTS .:~ruml/lib/tex/unhletter:~ruml/lib/tex/powerdot/run:~ruml/lib/tex/xkeyval/run:~ruml/lib/tex/xcolor:~ruml/lib/tex:

setenv BSTINPUTS :.:~ruml/lib/tex:

## For Posters

If you happen to use inkscape to produce your posters, it is possible to include latex directly:

At the menu bar at the top, go through the following, extensions -> render -> latex formula

This will allow you to input latex in math mode, and get an equation out.