使用自定义列表时
\newenvironment{questions}{
\begin{list}{}{
\let\makelabel=\questionlabel
\setlength{\labelwidth}{1.5em}
\setlength{\labelsep}{0.1em}
\setlength{\leftmargin}{\labelwidth+\labelsep+0.5em}
\setlength{\itemsep}{\baselineskip}
\setlength{\listparindent}{1em}
\setlength{\parsep}{0pt}
\setlength{\topsep}{0pt}
}
}{
\end{list}
}
在multicol
环境中,我收到一个警告Underfull \hbox (badness 10000) detected at line 38
。如果我使用enumerate
,则不会出现任何警告。
平均能量损失
\documentclass[10pt]{book}
\usepackage{calc}
\usepackage{enumitem}
\usepackage{multicol}
\newcounter{qcounter}
\makeatletter
\newcommand*\questionlabel[1]{\refstepcounter{qcounter}%
\global\let\@currentlabel=\@currentlabel
\normalfont\bfseries\arabic{qcounter}.#1}
\newenvironment{questions}{
\begin{list}{}{
\let\makelabel=\questionlabel
\setlength{\labelwidth}{1.5em}
\setlength{\labelsep}{0.1em}
\setlength{\leftmargin}{\labelwidth+\labelsep+0.5em}
\setlength{\itemsep}{\baselineskip}
\setlength{\listparindent}{1em}
\setlength{\parsep}{0pt}
\setlength{\topsep}{0pt}
}
}{
\end{list}
}
\newcommand{\TT}{\item[]}
\begin{document}
\begin{multicols}{2}
\begin{questions}
\TT Some text
\TT Some text
\TT Some text
\TT Some text
\end{questions}
\end{multicols}
\end{document}
我怎样才能消除这个警告?