Monday, August 11, 2008

 

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

\addtocounter{footnote}{-1}\footnotetext{Here is my footnote} \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}

Labels:

 

To view the post on a separate page, click: at (the permalink).

0 Comments:

Post a Comment

Links to this post:

Create a Link

<< Home