Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I'm using paralist environment in this form:

\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}

I would like to ask how to put the sentence: "We remark that in some cases a change or supplementary argument is demanded in the proof" on the same level as "Result with no change...".

enter image description here

share|improve this question
add comment

2 Answers

up vote 6 down vote accepted

You can do that by simply moving that item outside the inner compactitem since you want it at the same level as the outside compactitem:

enter image description here

Note:

  • A separate \item [] is not necessary for this as you are just continuing the prior \item from the outer compactitem.

Code:

\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}
share|improve this answer
    
@Jane: Please updated solution -- you don't need to use item []. –  Peter Grill Jul 3 '12 at 3:22
add comment

Note that an equivalent output is obtainable via the more flexible enumitem. Indeed, it provides a nosep option to all its lists that removes all vertical spacing and allows for a compact presentation, similar to that provided by compactitem and compactenum of paralist.

enter image description here

\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}

The options nosep (or less-compact noitemsep) can be set globally, or used locally (as above) on a list-by-list basis.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.