请看一下下面的代码及其输出:switchcolumn
before的使用itemize
加宽了列宽(与 itemize1 句子相比)。
由于某些原因,我需要继续使用此语法,并想消除这种差异。有什么解决办法吗?
\documentclass{article}
\RequirePackage{paracol}
\begin{document}
\begin{paracol}{2}
\begin{enumerate}
\item {}
enumerate sentence
\begin{itemize}
\item {}
subitemize1 subitemize1 subitemize1 subitemize1 subitemize1 subitemize1 subitemize1 subitemize1 subitemize1 subitemize1 subitemize1 subitemize1 subitemize1
\end{itemize}
\switchcolumn
interfering text
\switchcolumn
\begin{itemize}
\item {}
subitemize2 subitemize2 subitemize2 subitemize2 subitemize2 subitemize2 subitemize2 subitemize2 subitemize2 subitemize2 subitemize2 subitemize2 subitemize2
\end{itemize}
\end{enumerate}
\end{paracol}
\end{document}
答案1
Paracol 保留计数器的重复项,但不保留长度。这是一个问答解决方案。列表(\leftmargin
、、 )使用了大量的长度\totalleftmargin
,\rightmargin
可能需要重复值。
\documentclass{article}
\RequirePackage{paracol}
\newlength{\savewidth}
\begin{document}
\begin{paracol}{2}
\begin{enumerate}
\item {}
enumerate sentence
\begin{itemize}
\item {}
subitemize1 subitemize1 subitemize1 subitemize1 subitemize1 subitemize1 subitemize1 subitemize1 subitemize1 subitemize1 subitemize1 subitemize1 subitemize1
\end{itemize}
\savewidth=\linewidth
\switchcolumn
interfering text
\switchcolumn
\linewidth=\savewidth
\begin{itemize}
\item {}
subitemize2 subitemize2 subitemize2 subitemize2 subitemize2 subitemize2 subitemize2 subitemize2 subitemize2 subitemize2 subitemize2 subitemize2 subitemize2
\end{itemize}
\end{enumerate}
\end{paracol}
\end{document}