두 개의 하위 섹션을 서로 옆에 배치

두 개의 하위 섹션을 서로 옆에 배치

두 개의 하위 섹션을 서로 아래에 배치하는 대신 서로 옆에 배치할 수 있습니까?

그렇지 않다면 대안은 무엇입니까?

암호:

\documentclass{article}

\usepackage{amsmath}

\begin{document}
\section{Section}
\subsection{Subsection 1}
\begin{itemize}
    \item a
    \item b
    \item c
\end{itemize}
\subsection{Subsection 2}
\begin{itemize}
    \item A
    \item B
    \item C
\end{itemize}
\end{document} 

답변1

하위 섹션을 병렬 minipage환경에 배치할 수 있습니다.

여기에 이미지 설명을 입력하세요

하지만 하위 섹션 수준 헤더가 필요한지 스스로에게 물어보세요.

\documentclass{article} % or some other suitable document class
\usepackage{showframe}  % show edges of textblock

\begin{document}

\section{First section}

\noindent
\begin{minipage}[t]{0.5\textwidth}
\subsection{Subsection 1}
\begin{itemize}
    \item a
    \item b
    \item c
\end{itemize}
\end{minipage}% % be sure not to leave a blank line
\begin{minipage}[t]{0.5\textwidth}
\subsection{Subsection 2}
\begin{itemize}
    \item A
    \item B
    \item C
\end{itemize}
\end{minipage}

\section{Second section}

\end{document}

부록minipage, @JohnKormylo의 댓글에 의해 프롬프트됨: 항목별 목록이 단일 단어가 아닌 전체 문장인 경우 두 환경 사이에 공백 버퍼를 삽입하는 것이 좋습니다 .

여기에 이미지 설명을 입력하세요

\documentclass{article} % or some other suitable document class
\usepackage{enumitem}   % tools to modify 'itemize' environments
\usepackage{ragged2e}   % for '\RaggedRight' macro
\usepackage{showframe}  % show edges of textblock
\usepackage{lipsum}     % filler text

\begin{document}

\section{First section}

\noindent
\begin{minipage}[t]{0.475\textwidth}
\subsection{Subsection 1}
\RaggedRight % suspend full justification

\begin{itemize}[left=0pt,noitemsep]
    \item \lipsum[1][1]
    \item \lipsum[1][2]
    \item \lipsum[1][3]
\end{itemize}
\end{minipage}% 
\hfill % be sure not to leave a blank line
\begin{minipage}[t]{0.475\textwidth}
\subsection{Subsection 2}
\RaggedRight % suspend full justification

\begin{itemize}[left=0pt,noitemsep]
    \item \lipsum[1][4]
    \item \lipsum[1][5]
    \item \lipsum[1][6]
\end{itemize}
\end{minipage}

\section{Second section}

\end{document}

답변2

이는 paracol해결책을 보여줍니다. multicol*(unbalanced)를 와 함께 사용할 수도 있습니다 \columnbreak.

\documentclass{article}

\usepackage{amsmath}
\usepackage{paracol}
\globalcounter*

\begin{document}
\section{Section}
\begin{paracol}{2}
  \subsection{Subsection 1}
  \begin{itemize}
    \item a
    \item b
    \item c
  \end{itemize}
\switchcolumn
  \subsection{Subsection 2}
  \begin{itemize}
    \item A
    \item B
    \item C
  \end{itemize}
\end{paracol}
\end{document} 

관련 정보