## Wednesday, 14 January 2009

### Some New Latex Commands

I've gotten a couple of new Latex books (the typesetting language) and found a bunch of commands I didn't know about. I've written them up at http://rasmusen.org/a/latex-rasmusen.txt and http://rasmusen.org/a/latex-rasmusen.pdf and http://rasmusen.org/a/latex-rasmusen.tex. An example is doing footnotes inside tables and math:

Use the \footnotemark command to insert the footnote number. To
insert the footnote itself, use

\stepcounter{footnote}

outside the table or math but trying to be on the same page.

$$x = y\footnotemark$$

\addtocounter{footnote}{-1}\footnotetext{Except when $x= 8$. }
\stepcounter{footnote}

\begin{tabular}{|l|l|r|l|}

\hline

lattice & $d$ & $q$ & last column\footnotemark \\

\hline

square & 2 & 4 & 1.763 \\

\hline

\end{tabular}

\addtocounter{footnote}{-1}\footnotetext{ That's two words in that
entry. }
\stepcounter{footnote}