Replace \mathrm by \text

This commit is contained in:
Knoch 2023-01-03 10:55:24 +01:00
parent 9b9940af27
commit f3e18adcb4
4 changed files with 4 additions and 4 deletions

View File

@ -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. 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. 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} \example{lst:set-builder-notation}{maths/set-builder-notation}{Problems arising from intensional set notation and their solution}

View File

@ -16,7 +16,7 @@ $$x_{1,2} = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a}$$
$$n! = \prod_{i=1}^{n} i$$ $$n! = \prod_{i=1}^{n} i$$
% Set of all odd natural numbers % 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$ % Elimination $\neg\exists x$
$$\neg\exists x . p(x) \Leftrightarrow \forall x . \neg p(x)$$ $$\neg\exists x . p(x) \Leftrightarrow \forall x . \neg p(x)$$

View File

@ -36,7 +36,7 @@ $$n! = \prod_{i=1}^{n} i$$ \\
~ \\ ~ \\
\textbf{Set of all odd natural numbers} \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$} \textbf{Elimination $\neg\exists x$}

View File

@ -1,4 +1,4 @@
\begin{align*} \begin{align*}
\left\lbrace x \mid tiefe(x) \geq 20 \right\rbrace \\ \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*} \end{align*}