You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

LaTeX中multicol环境排版枚举列表出现多余空白的解决求助

问题描述

我正在制作一份包含简答题的多选答题纸,使用multicol环境时出现了多余空白。我的代码如下:

\documentclass[11pt,addpoints]{exam}
\usepackage{amsfonts,amssymb,amsmath, amsthm}
\usepackage{graphicx}
\usepackage{systeme}
\usepackage{pgf,tikz,pgfplots}
\usepackage{multicol}
\pgfplotsset{compat=1.15}
\usepgfplotslibrary{fillbetween}
\usepackage{mathrsfs}
\usetikzlibrary{arrows}
\usetikzlibrary{calc}
\usepackage[shortlabels]{enumitem}
\usepackage{amsmath}
\newcommand{\summation}[2]{\sum\limits^{#1}_{#2}}

    
\textbf{11)} The expression $\frac{\sin{x} + \sin{y}}{\cos{x} + \cos{y}}$ is equal to
    \begin{enumerate}[(A)]
    \begin{multicols}{2}
            \item $\tan{\frac{x + y}{2}}$ % CORRECT
        \item $\tan{\frac{x - y}{2}}$
        \item $2\tan{x + y}$
        \item $2\tan{x - y}$
        \item $2\tan{2 x y}$
        \end{multicols}
    \end{enumerate}

使用后出现多余空白,我试过multicols*环境,但页面只显示答题列,请问该怎么解决?


解决方法

方法1:用tasks环境替代multicol

tasks是专门用于排版多列选项的包,和exam文档类兼容性更好,能自动规避多余空白问题。

首先导入tasks包:

\usepackage{tasks}

然后修改选项部分代码:

\textbf{11)} The expression $\frac{\sin{x} + \sin{y}}{\cos{x} + \cos{y}}$ is equal to
\begin{tasks}[label=(\Alph*), label-width=1.5em](2)
    \task $\tan{\frac{x + y}{2}}$ % CORRECT
    \task $\tan{\frac{x - y}{2}}$
    \task $2\tan{x + y}$
    \task $2\tan{x - y}$
    \task $2\tan{2 x y}$
\end{tasks}

方法2:调整enumerate间距参数

如果坚持使用multicol,可以通过压缩enumerate环境的上下间距来减少空白:

\textbf{11)} The expression $\frac{\sin{x} + \sin{y}}{\cos{x} + \cos{y}}$ is equal to
\begin{enumerate}[(A), topsep=0pt, partopsep=0pt]
    \begin{multicols}{2}
        \item $\tan{\frac{x + y}{2}}$ % CORRECT
        \item $\tan{\frac{x - y}{2}}$
        \item $2\tan{x + y}$
        \item $2\tan{x - y}$
        \item $2\tan{2 x y}$
    \end{multicols}
\end{enumerate}

其中topsep=0pt和partopsep=0pt分别用于消除列表顶部的额外间距。

方法3:调整嵌套结构

将enumerate放入multicol内部,避免反向嵌套带来的间距问题:

\textbf{11)} The expression $\frac{\sin{x} + \sin{y}}{\cos{x} + \cos{y}}$ is equal to
\begin{multicols}{2}
    \begin{enumerate}[(A)]
        \item $\tan{\frac{x + y}{2}}$ % CORRECT
        \item $\tan{\frac{x - y}{2}}$
        \item $2\tan{x + y}$
        \item $2\tan{x - y}$
        \item $2\tan{2 x y}$
    \end{enumerate}
\end{multicols}

内容的提问来源于stack exchange,提问作者Nawi

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.06.30 21:32:55