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).

Referring to a table in LaTeX

You must place the label after a caption in order to for label to store the table’s number, not the chapter’s number. \begin{table} \begin{tabular}{| p{5cm} | p{5cm} | p{5cm} |} — cut — \end{tabular} \caption{My table} \label{table:kysymys} \end{table} Table \ref{table:kysymys} on page \pageref{table:kysymys} refers to the …

LaTex errors: unit of measure (pt inserted)

Here are some considerations: While \MinNumber is defined to be 0, you have a number that is smaller than that in the table (-0.01). If you’re performing a test on dimensions (\ifdim <dimA><relation><dimB>) you need to make sure both <dimA> and <dimB> are dimensions. In your case you have\ifdim#1pt>\MidNumber and \MidNumber is clearly not a dimension. It is just a number (0.8). That’s the main … Read more

LaTeX: Multiple authors in a two-column article

I put together a little test here: Things to note, the title, author and date fields are declared before \begin{document}. Also, the multicol package is likely unnecessary in this case since you have declared twocolumn in the document class. This example puts all four authors on the same line, but if your authors have longer names, departments or … Read more