Making LaTeX tables smaller?

As well as \singlespacing mentioned previously to reduce the height of the table, a useful way to reduce the width of the table is to add \tabcolsep=0.11cm before the \begin{tabular} command and take out all the vertical lines between columns. It’s amazing how much space is used up between the columns of text. You could reduce the font size to something … Read more

Getting the error “Missing $ inserted” in LaTeX

The “Missing $ inserted” is probably caused by the underscores and bars. These characters in LaTeX have special meaning in math mode (which is delimited by $ characters). Try escaping them; e.g. update\_element instead of update_element. However, if you’re trying to display code, a better solution would be to use the \verb command, which will typeset the text in a monospaced font … Read more

Footnotes for tables in LaTeX

This is a classic difficulty in LaTeX. The problem is how to do layout with floats (figures and tables, an similar objects) and footnotes. In particular, it is hard to pick a place for a float with certainty that making room for the associated footnotes won’t cause trouble. So the standard tabular and figure environments don’t even try. What … Read more

QED symbol in latex

You can use \blacksquare ■: When creating TeX, Knuth provided the symbol ■ (solid black square), also called by mathematicians tombstone or Halmos symbol (after Paul Halmos, who pioneered its use as an equivalent of Q.E.D.). The tombstone is sometimes open: □ (hollow black square).