9

I'm getting that error for the line:

$S = (s_0,S), ahol s_0 = x_1 := <>,...,x_n := <> és S = \{x_0, x_1 := lorem(x_0), hiext(x_1,f_0(x_0.lov)), ha \ x_0 \not\equiv <> \\ ,...,$ \\ 

I'm very new to LaTeX, and don't quite understand what this means. Could you help?

lte__
  • 193

2 Answers2

9

You have to use \acute{e} instead of é in math mode, but I think it depends on your inputenc.

I don't have that error and your code works fine (even if is a too long line in math mode with no breaks).

josky
  • 391
  • Note you should only use \acute if it is denoting a math oeration, not if it is a natural language word containing é which is I think the case here. – David Carlisle Dec 05 '16 at 15:16
  • Yes, my answer supposes that in math mode there are only math symbols or operations, otherwise you have to use \text{} inside $..$. It's correct? – josky Dec 05 '16 at 15:25
  • yes but that is not the case here, "és" is "and" – David Carlisle Dec 05 '16 at 15:26
  • @DavidCarlisle: He's right, everything in math mode must be math or else enclosed in \text{} (or \mbox{} etc). Here the word meaning "and" should be marked as plain non-mathematical text. – Ben Voigt Aug 20 '19 at 22:49
6

You should not set natural language words in math mode (although you only get an error for the accented letters)

The markup should be more like:

enter image description here

\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{amsmath}
\usepackage[hungarian]{babel}% I think? :-)

\begin{document}

$S = (s_0,S)$,
ahol 
$s_0 = x_1 := \langle\rangle,\dots,x_n := \langle\rangle$
 és 
\[S = \{x_0, x_1 := \operatorname{lorem}(x_0),
\operatorname{hiext}(x_1,f_0(x_0.\mathrm{lov})),\]
ha 
$x_0 \not\equiv \langle\rangle$

\end{document}
David Carlisle
  • 757,742