The text asterisk is raised, while the math asterisk is used for denoting an operation.
You can use \mbox{*}
or \text{*}
(if you load amsmath
).
However, in general $Q^{*}$
is preferred.
You can get the behavior automatically:
\documentclass{article}
\usepackage{amsmath}
%%% magic code starts
\mathcode`*=\string"8000
\begingroup
\catcode`*=\active
\xdef*{\noexpand\textup{\string*}}
\endgroup
%%% magic code ends
\begin{document}
$a^{\ast} Q*$
\end{document}
I've added \ast
that is the usual math asterisk for a comparison.
I'd recommend using the first form.
You had several math mode expressions written in text mode; I've fixed them in the code below. I would suggest you to use the amsthm
package to define a theorem-like structure with the desired formatting for your definitions; in this way, the formatting and numbering are dona automatically:
\documentclass{article}
\usepackage{amssymb}
\usepackage{amsthm}
\newtheoremstyle{mydefi}
{\topskip}{\topskip}
{\itshape}{}
{\bfseries}{}
{\newline}{}
\theoremstyle{mydefi}
\newtheorem{defi}{Definitie}
\begin{document}
\begin{defi}
Als $z$, $f(z) \in \mathbb{R}^{m}$, dan is de $M$-de Fr\'echet afgeleide van $f$, voorgesteld door $f^{(M)}(z)$ een operator op $\mathbb{R}^{m} \times \mathbb{R}^{m} \times \cdots \times \mathbb{R}^{m}$ ($M$ maal), die lineair is in elk van de operandi met als waarde
\end{defi}
\end{document}
I used Fr\'echet
; but loading inputenc
with the appropriate encoding, you can simply write Fréchet
.
By the way, for definitions it's also common to use use the roman (upright) font instead of italics; in this case, you can change the definition of the mydefi
style to:
\newtheoremstyle{mydefi}
{\topskip}{\topskip}
{}{}
{\bfseries}{}
{\newline}{}
I would also like to suggest you (quoting cmhughes's valuable comment) to have a look at some introductory material (the Not so short guide to LaTeX
(available in seveal languages) and the amsmath package documentation
, for example); in your first few documents, always build up your code slowly, compiling frequently- this will help you find where the errors are.
Best Answer
One of the (many!) aspects that makes TeX and LaTeX (and friends) so useful for writing mathy stuff is that there are two fundamental math modes -- inline-style math and display-style math -- and that it's very easy to switch from one mode to the other. The following screenshots shows the same formula (the pdf of a normal distribution) twice: First in inline math mode (aka text-style math mode), then in display-math mode. Observe that the code uses
$ ... $
to get in and out of inline-math mode and\[ ... \]
to enter and exit display-math mode.