다중 열과 함께 수집을 사용할 때 정렬 문제

다중 열과 함께 수집을 사용할 때 정렬 문제

나는 이것에서 발견되는 것과 유사한 정렬 문제가 있습니다질문. 그러나 열 나누기를 사용해도 이 질문에서와 같이 내 문제가 해결되지 않았습니다.

정렬을 시도해 볼 수도 있겠지만 이 새로운 형식으로 모든 것을 다시 작성하는 것은 성가신 일이 될 것입니다. 정렬이 허용되는지 확인하기 위해 이 코드를 적용할 수 있는 방법이 있습니까?

다음은 몇 가지 예제 코드입니다.

\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}

관련 정보