Michał
Michał

Reputation: 711

Missing $ inserted underscore sign

Here is my snippet from LaTeX doc i am creating:

54 \subsection{Definicja}
55 Interpolacją nazywamy czynności, których celem jest znalezienie wartości pewnej 
   funkcji \textit{f(x)} w dowolnie wybranym punkcie z przedziału x_{0}, x_{n}

I keep getting error:

konstrukcja.tex:55 Missing $ inserted ...dowolnie wybranym punkcie z przedziału x_

I am new to LaTeX so I have no idea what does it mean.

Upvotes: 0

Views: 649

Answers (2)

Henri Menke
Henri Menke

Reputation: 10939

Wrap mathematical expressions in $...$. Since you did not know that it is best for you to read a basic introduction to LaTeX. There are a lot of references listed in these two questions on TeX.SX:

My personal favourite is »LaTeX and friends« by M. van Dongen.

\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\begin{document}

\subsection{Definicja}
Interpolacją nazywamy czynności, których celem jest znalezienie wartości pewnej 
funkcji $f(x)$ w dowolnie wybranym punkcie z przedziału $x_{0}$, $x_{n}$

\end{document}

enter image description here

Upvotes: 1

mtkilic
mtkilic

Reputation: 1243

"Missing $ inserted" is probably caused by the underscores

Try:

przedziału x\_{0}, x\_{n}

Upvotes: 0

Related Questions