
Можно ли разместить два подраздела рядом друг с другом, а не друг под другом?
Если нет: какая может быть альтернатива?
КОД:
\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}
Приложение, навеянный комментарием @JohnKormylo: В случае, если элементы списка представляют собой целые предложения, а не отдельные слова, хорошей идеей будет вставить пробельный буфер между двумя minipage
окружениями:
\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*
(несбалансированный) с \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}