
\documentclass[12pt,a4paper]{report}
\usepackage{mathtools, nccmath}
\usepackage{amssymb, amsthm, mathrsfs}
\begin{document}
\begin{align*}
h\colon S(0,1)& \rightarrow S^A(0,1)\\
x&\mapsto \frac{x}{\|x\|_A},
\end{align*}
and
\begin{align*}
g\colon S^A(0,1)& \rightarrow S(0,1)\\
y&\mapsto \frac{y}{\|y\|},
\end{align*}
\end{document}
Ich möchte die beiden Gleichungen in derselben Zeile platzieren
Antwort1
Verwenden aligned
:
\documentclass[12pt,a4paper]{report}
\usepackage{mathtools}
\begin{document}
\begin{equation*}
\begin{aligned}[t]
h\colon S(0,1) &\rightarrow S^A(0,1)\\
x &\mapsto \frac{x}{\|x\|_A},
\end{aligned}
\quad\text{and}\quad
\begin{aligned}[t]
g\colon S^A(0,1) &\rightarrow S(0,1)\\
y &\mapsto \frac{y}{\|y\|},
\end{aligned}
\end{equation*}
\end{document}
Früher mochte ich diese Funktionsnotation, aber dann begann sie mir nicht mehr zu gefallen: Sie ist schwerfällig, verbraucht Platz und ist eigentlich nicht gut. An der Tafel kann sie nützlich sein, in Aufsätzen nicht.
Antwort2
Mit aligned
können Sie die Aufgabe im inline
Mathematikmodus erledigen. Ich nehme an, Sie möchten das Ergebnis zentriert haben, also habe ich den Code in eine Umgebung eingefügt und schließlich einige Befehle für eine bessere Abstände center
hinzugefügt :\hspace
\documentclass[12pt,a4paper]{report}
\usepackage{mathtools, nccmath}
\usepackage{amssymb, amsthm, mathrsfs}
\begin{document}
\begin{center}
\(\begin{aligned}
h\colon S(0,1)& \rightarrow S^A(0,1)\\
x&\mapsto \frac{x}{\|x\|_A},
\end{aligned}
\hspace{20pt}\text{ and }\hspace{20pt}
\begin{aligned}
g\colon S^A(0,1)& \rightarrow S(0,1)\\
y&\mapsto \frac{y}{\|y\|},
\end{aligned}\)
\end{center}
\end{document}
Antwort3
So etwas wie eines davon?
\documentclass[12pt,a4paper]{report}
\usepackage{mathtools, nccmath}
\usepackage{amssymb, amsthm, mathrsfs}
\begin{document}
\[ \begin{aligned}
h\colon S(0,1)& \longrightarrow S^A(0,1)\\
x&\longmapsto \frac{x}{\|x\|_A},
\end{aligned}
\qquad\text{ and }\qquad
\begin{aligned}
g\colon S^A(0,1)& \longrightarrow S(0,1)\\
y&\longmapsto \frac{y}{\|y\|},
\end{aligned} \]\bigskip
\[ \begin{rcases} \begin{aligned}
h\colon S(0,1)& \longrightarrow S^A(0,1)\\
x&\longmapsto \frac{x}{\|x\|_A},
\end{aligned}\end{rcases}
\quad\text{ and }\quad
\begin{dcases} \begin{aligned}
g\colon S^A(0,1)& \longrightarrow S(0,1)\\
y&\longmapsto \frac{y}{\|y\|},
\end{aligned}\end{dcases} \]
\end{document}