Replace \mathrm by \text
This commit is contained in:
parent
9b9940af27
commit
f3e18adcb4
@ -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}
|
||||
|
||||
@ -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)$$
|
||||
@ -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$}
|
||||
|
||||
@ -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*}
|
||||
Loading…
x
Reference in New Issue
Block a user