Graphics, Figures & TablesMissing $ inserted error

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
pongi
Posts: 2
Joined: Wed Aug 17, 2011 7:21 pm

Missing $ inserted error

Post by pongi »

Hi guys,

I'm trying to make a table (see code), but every time on compile I get 100 errors, first is Missing $ inserted error on line

Code: Select all

~    & Luftdichte \emph{\rho} [\frac{kg}{m\textsuperscript{3}}] & ~ \\
. Can somebody figure out why?

Code: Select all

\begin{table}[htbp]
\centering
 \begin{tabular}{|l|l|l|}
   \hline
   {\bf Eingangsgrößen} & {\bf Parameter} & {\bf Ausgangsgrößen} \\
   \hline \hline
   ~    & Luftdichte \emph{\rho} [\frac{kg}{m\textsuperscript{3}}] & ~ \\
   \hline
 \end{tabular}
 \caption{Berechnungsparameter Fahrzeugmodell}
 \label{tab:FzgPar}
\end{table}
If I delete this part

Code: Select all

\emph{\rho} [\frac{kg}{m\textsuperscript{3}}]
from the cell, its working fine...

Thx in advance!

cheers

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

User avatar
Stefan Kottwitz
Site Admin
Posts: 10348
Joined: Mon Mar 10, 2008 9:44 pm

Missing $ inserted error

Post by Stefan Kottwitz »

Hi pongi,

welcome to the board!

Use math mode for math expressions and symbols, such as

Code: Select all

~    & Luftdichte \emph{$\rho$} [$\frac{kg}{m\textsuperscript{3}}$] & ~ \\
and the line will work.

Stefan
LaTeX.org admin
pongi
Posts: 2
Joined: Wed Aug 17, 2011 7:21 pm

Re: Missing $ inserted error

Post by pongi »

cool, thanks for the quick help :)
Post Reply