
\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}
두 방정식을 같은 줄에 만들고 싶습니다.
답변1
사용 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}
나는 이 함수 표기법을 좋아했지만, 점점 싫어지기 시작했습니다. 무겁고, 공간을 많이 차지하며, 별로 좋은 일도 하지 않습니다. 칠판에서는 유용할 수 있지만 논문에서는 유용하지 않습니다.
답변2
를 사용하면 수학 모드 aligned
에서 작업을 수행할 수 있습니다 . inline
결과가 중앙에 오길 원할 것이므로 환경에 코드를 배치하고 마지막으로 더 나은 간격을 위해 center
몇 가지 명령을 추가했습니다 .\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}
답변3
이것들 중 하나 같은 게 있나요?
\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}