diff --git a/content/maths.tex b/content/maths.tex index 24edb3a..98dc693 100644 --- a/content/maths.tex +++ b/content/maths.tex @@ -78,6 +78,6 @@ Line breaks are denoted by two backslashes. Sometimes sets have to be defined in terms of textual descriptions or longer function names. The \LaTeX{} math mode assumes that letters are variables rather than text, which creates problems when they are indeed supposed to be entire words. -For this case, there is the \code{latex}{\textbackslash mathrm\{\}} command (\enquote{math roman}, c.\,f. \cref{lst:set-builder-notation}). +For this case, there is the \code{latex}{\textbackslash text\{\}} command (c.\,f. \cref{lst:set-builder-notation}). \example{lst:set-builder-notation}{maths/set-builder-notation}{Problems arising from intensional set notation and their solution} diff --git a/exercises/maths/math-formulas.code.done.tex b/exercises/maths/math-formulas.code.done.tex index b351ab9..667dac3 100644 --- a/exercises/maths/math-formulas.code.done.tex +++ b/exercises/maths/math-formulas.code.done.tex @@ -16,7 +16,7 @@ $$x_{1,2} = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a}$$ $$n! = \prod_{i=1}^{n} i$$ % Set of all odd natural numbers -$$\{ x \mid x \in \mathds{N}, \mathrm{odd}(x) \}$$ +$$\{ x \mid x \in \mathds{N}, \text{odd}(x) \}$$ % Elimination $\neg\exists x$ $$\neg\exists x . p(x) \Leftrightarrow \forall x . \neg p(x)$$ \ No newline at end of file diff --git a/exercises/maths/math-formulas.rend.tex b/exercises/maths/math-formulas.rend.tex index f7c5820..25df8cf 100644 --- a/exercises/maths/math-formulas.rend.tex +++ b/exercises/maths/math-formulas.rend.tex @@ -36,7 +36,7 @@ $$n! = \prod_{i=1}^{n} i$$ \\ ~ \\ \textbf{Set of all odd natural numbers} -$$\{ x \mid x \in \mathds{N}, \mathrm{odd}(x) \}$$ +$$\{ x \mid x \in \mathds{N}, \text{odd}(x) \}$$ ~ \\ \textbf{Elimination $\neg\exists x$} diff --git a/listings/maths/set-builder-notation.tex b/listings/maths/set-builder-notation.tex index cf351d3..d73fcb2 100644 --- a/listings/maths/set-builder-notation.tex +++ b/listings/maths/set-builder-notation.tex @@ -1,4 +1,4 @@ \begin{align*} \left\lbrace x \mid tiefe(x) \geq 20 \right\rbrace \\ - \left\lbrace x \mid \mathrm{tiefe}(x) \geq 20 \right\rbrace + \left\lbrace x \mid \text{tiefe}(x) \geq 20 \right\rbrace \end{align*} \ No newline at end of file