\documentclass[11pt, letterpaper]{article}
\usepackage{multicol}
\begin{document}
Consider the following intervals:
\begin{multicols}{2}
A = (1,5] \\
C = [4,7)
\columnbreak
B = [1,4) \\
D = (2,5)
\end{multicols}
\end{document}
结果是:
答案1
由于它是数学,因此请使用提供的环境之一amsmath来完成此类工作。例如:
\documentclass{article}
\usepackage{amsmath}
\begin{document}
Consider the following intervals:
\[
\begin{aligned}
A &= (1,5] & B &= [1,4) \\
C &= [4,7) & D &= (2,5) \\
\end{aligned}
\]
\end{document}
答案2
嗯,这正是align所做的。
\documentclass{article}
\usepackage{amsmath}
\begin{document}
Consider the following intervals:
\begin{align*}
A &= (1,5]&
B &= [1,4) \\
C &= [4,7) &
D &= (2,5)
\end{align*}
\end{document}
答案3
您还可以使用以下命令完全控制列之间的间距alignat:
\documentclass{article}
\usepackage{amsmath}
\begin{document}
Consider the following intervals:
\begin{alignat*}{2}
A &= (1,5]&\hspace{6pc}
B &= [1,4) \\
C &= [4,7) &
D &= (2,5)
\end{alignat*}
\end{document}