Paralist 环境

Paralist 环境

我使用paralist这种形式的环境:

\begin{compactenum}[(a)]
\item  Results with no change in the statement (except the
replacement of $[a,\infty]$ for $[a,b]$):
\begin{compactitem}
\item Theorem  (Linearity and Positivity).
\item Theorem (Additivity). 
\item Lemma  (Cauchy Criterion). 
We remark that in some cases a
change or supplementary argument is demanded in the proof.
\end{compactitem}
\item Results with a minor change in the statement:
\begin{compactitem}\setlength{\itemsep}{0pt}
\item Theorem (Second Mean Value Theorem). \item
Theorem  (Integration by Substitution).
\end{compactitem}
\end{compactenum}

我想问一下这句话怎么表述:“我们注意到,在某些情况下,证明中需要改变或补充论据”“结果没有变化……”

在此处输入图片描述

答案1

您可以通过简单地将该项目移到内部之外来实现这一点,compactitem因为您希望它与外部处于同一级别compactitem

在此处输入图片描述

笔记:

  • 由于您只是从外部\item []继续先前的操作,因此无需进行分离。\itemcompactitem

代码:

\documentclass{article}
\usepackage{paralist} 
%
\begin{document}
\begin{compactenum}[(a)]
\item  Results with no change in the statement (except the
replacement of $[a,\infty]$ for $[a,b]$):
\begin{compactitem}
\item Theorem  (Linearity and Positivity).
\item Theorem (Additivity). 
\item Lemma  (Cauchy Criterion). 
\end{compactitem}
We remark that in some cases a
change or supplementary argument is demanded in the proof.
\item Results with a minor change in the statement:
\begin{compactitem}\setlength{\itemsep}{0pt}
\item Theorem (Second Mean Value Theorem). \item
Theorem  (Integration by Substitution).
\end{compactitem}
\end{compactenum}
\end{document}

答案2

请注意,通过更灵活的enumitem。事实上,它nosep为所有列表提供了一个选项,可以删除所有垂直间距并允许紧凑显示,类似于compactitem和提供的compactenum选项paralist

在此处输入图片描述

\documentclass{article}
\usepackage{enumitem}% http://ctan.org/pkg/enumitem
\begin{document}
\begin{enumerate}[label=(\alph*),nosep]
  \item  Results with no change in the statement (except the 
    replacement of $[a,\infty]$ for $[a,b]$):
    \begin{itemize}[nosep]
      \item Theorem (Linearity and Positivity).
      \item Theorem (Additivity). 
      \item Lemma (Cauchy Criterion). 
    \end{itemize}
    We remark that in some cases a
    change or supplementary argument is demanded in the proof.
  \item Results with a minor change in the statement:
    \begin{itemize}[nosep]
      \item Theorem (Second Mean Value Theorem).
      \item Theorem (Integration by Substitution).
    \end{itemize}
\end{enumerate}
\end{document}

选项nosep(或 less-compact noitemsep)可以全局设置,也可以按列表逐个本地使用(如上所述)。

相关内容