
私はこれと似たような配置の問題を抱えています質問しかし、この質問のように列区切りを使用しても問題は解決しませんでした。
align を試すこともできると思いますが、すべてをこの新しい形式で書き直すのは面倒です。このコードを適応させて、配置が許容されるようにする方法はありますか?
以下にコード例を示します。
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{multicol}
\usepackage{amsmath}
\begin{document}
\begin{multicols}{2}
\subsubsection*{Omaha}
\begin{gather*}
F = FB \neq \textbf{MB = MBS} \\
M = \textbf{MZ = MBD }\neq FZ \\
B = MZS = FBS \neq FZS \\
Z = MZD = FBD \neq FZD
\end{gather*}
\columnbreak
\subsubsection*{Crow}
\begin{gather*}
F = \textbf{FB = FZS} \neq MB \\
M = MZ \neq \textbf{FZ = FZD} \\
B = FBS = MZS \neq MBS \\
Z = FBD = MZD \neq MBD
\end{gather*}
\end{multicols}
\end{document}
答え1
tabularx
環境の代わりにテーブルを使用する場合multicol
:
(赤い線はテキストの境界線を示します)
\documentclass{article}
%---------------- show page layout. don't use in a real document!
\usepackage{showframe}
\renewcommand\ShowFrameLinethickness{0.15pt}
\renewcommand*\ShowFrameColor{\color{red}}
%---------------------------------------------------------------%
\usepackage{tabularx}
\usepackage{amsmath}
\begin{document}
\noindent%
\begin{tabularx}{\linewidth}{@{} X @{} X @{}}
\subsubsection*{Omaha}
\begin{gather*}
F = FB \neq \mathbf{MB = MBS} \\
M = \mathbf{MZ = MBD }\neq FZ \\
B = MZS = FBS \neq FZS \\
Z = MZD = FBD \neq FZD
\end{gather*}
&
\subsubsection*{Crow}
\begin{gather*}
F = \mathbf{FB = FZS} \neq MB \\
M = MZ \neq \mathbf{FZ = FZD} \\
B = FBS = MZS \neq MBS \\
Z = FBD = MZD \neq MBD
\end{gather*}
\end{tabularx}
or
\noindent%
\begin{tabularx}{\linewidth}{@{} X @{} X @{}}
\subsubsection*{Omaha}
\[\begin{aligned}
F & = FB \neq \mathbf{MB = MBS} \\
M & = \mathbf{MZ = MBD }\neq FZ \\
B & = MZS = FBS \neq FZS \\
Z & = MZD = FBD \neq FZD
\end{aligned}\]
&
\subsubsection*{Crow}
\[\begin{aligned}
F & = \mathbf{FB = FZS} \neq MB \\
M & = MZ \neq \mathbf{FZ = FZD} \\
B & = FBS = MZS \neq MBS \\
Z & = FBD = MZD \neq MBD
\end{aligned}\]
\end{tabularx}
\end{document}
答え2
代わりに、次のようなミニページを含む表形式の環境を使用することもできます。
\begin{tabular}{p{.5\textwidth}p{.5\textwidth}}
\begin{minipage}{1\textwidth}
\subsubsection*{Omaha}
$
F = FB \neq \textbf{MB = MBS} \\
M = \textbf{MZ = MBD }\neq FZ \\
B = MZS = FBS \neq FZS \\
Z = MZD = FBD \neq FZD
$
\end{minipage}
&
\begin{minipage}{1\textwidth}
\subsubsection*{Crow}
$
F = \textbf{FB = FZS} \neq MB \\
M = MZ \neq \textbf{FZ = FZD} \\
B = FBS = MZS \neq MBS \\
Z = FBD = MZD \neq MBD
$
\end{minipage}
\end{tabular}