如何消除paracol环境后的空格?

如何消除paracol环境后的空格?

在以下示例中,环境后有空格。如何消除环境后的空间,以便下部规则与上部规则一样paracol紧贴环境?paracol

\documentclass[a4paper]{article}
\usepackage{polyglossia}
\usepackage{xcolor}
\usepackage{paracol}
\usepackage{duckuments}

\backgroundcolor{c(1pt,0pt)(1pt,0pt)}[rgb]{0.85,0.95,1}
\newcommand*{\myrule}{\noindent\hfil\rule{0.8\textwidth}{.4pt}\hfil}

\begin{document}
    \myrule
    \begin{paracol}{2}
        \sloppy
        \switchcolumn[0]*
        \blindduck[1]
        \switchcolumn[1]
        \blindduck[2]
    \end{paracol}
    \myrule
\end{document}

好规则 坏规则

答案1

在此处输入图片描述

\documentclass[a4paper]{article}
\usepackage{polyglossia}
\usepackage{xcolor}
\usepackage{paracol}
\usepackage{duckuments}

\backgroundcolor{c(1pt,0pt)(1pt,0pt)}[rgb]{0.85,0.95,1}
\newcommand*{\myrule}{\noindent\hfil\rule{0.8\textwidth}{.4pt}\hfil}

\begin{document}
    \myrule
    \begin{paracol}{2}
        \sloppy
        \switchcolumn[0]*
        \blindduck[1]
        \switchcolumn[1]
        \blindduck[2]
    \end{paracol}
    \nointerlineskip\myrule
\end{document}

相关内容