1

I noticed that the package "easylist" is incompatible with theorem environment. Here is an example. There is unusual space at the left of theorem 1.

Could you fix this strange behavior?

example of easylist and theorem

This is a source code.

\documentclass{article}

\usepackage[T1]{fontenc}
\usepackage{lmodern}

\usepackage{amsmath}
\usepackage[at]{easylist}
\usepackage{lipsum}

\newtheorem{theorem}{Theorem}

\begin{document}

\lipsum[1]

\begin{theorem}
  \begin{easylist}[enumerate]
    @ test
    @ test
  \end{easylist}
\end{theorem}

\begin{theorem}
\lipsum[1]
\end{theorem}

\end{document}
0

1 Answer 1

2

The theorem environment is designed to continue any text on the leadin-line, unless using an explicitly \par or a \leavevmode command. \par does not work for easylist, the reason why, \lipsum works is an explicit \par in its definition (try to load lipsum package with the nopar option → the lipsum text will start on the header line.)

\documentclass{article}

\usepackage[T1]{fontenc}
\usepackage{lmodern}

\usepackage{amsmath}
\usepackage[at]{easylist}
\usepackage{lipsum}



\newtheorem{theorem}{Theorem}

\begin{document}

\lipsum[1]

\begin{theorem}
  \leavevmode
  \begin{easylist}[enumerate]
    @ test
    @ test
  \end{easylist}
\end{theorem}

\begin{theorem}
First
\end{theorem}

\end{document}
7
  • quick, "they" will reproach you that \leavevmode not being a documented LaTeX command, it is more kosher to use \mbox{}.
    – user4686
    Commented Jan 30, 2016 at 11:16
  • @jfbu: I am reproached by "them" basically for anything I am posting during the last weeks. But thanks
    – user31729
    Commented Jan 30, 2016 at 12:07
  • should we keep our comments visible to "them" ? or rather initiate a secret order ? ... ;-)
    – user4686
    Commented Jan 30, 2016 at 12:20
  • I don't mind keeping them. ;-)
    – user31729
    Commented Jan 30, 2016 at 12:22
  • long live our Bravery !
    – user4686
    Commented Jan 30, 2016 at 12:23

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .