![ntheorem 中的 Easylist](https://linux22.com/image/332582/ntheorem%20%E4%B8%AD%E7%9A%84%20Easylist.png)
我想在 ntheorem 环境中使用 easylist。但它不会缩进嵌套列表。
\documentclass[a4paper]{scrartcl}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{ntheorem}
\usepackage[ampersand]{easylist}
% ntheorem config
\theoremstyle{break}
\theoremheaderfont{\normalfont\bfseries\large}
\theorembodyfont{\normalfont}
\theoremseparator{\medskip}
\theorempostskip{\topsep\medskip}
\newtheorem{exercise}{Excercise}
\begin{document}
Outside theorem
\begin{easylist}[itemize]
& Main item~:
&& Sub item.
&&& Another sub item.
\end{easylist}
\begin{exercise}
Inside theorem
\begin{easylist}[itemize]
& Main item~:
&& Sub item.
&&& Another sub item.
\end{easylist}
\end{exercise}
\end{document}
答案1
一个解决方法是将其包含easylist
在minipage
定理/练习中:
\documentclass[a4paper]{scrartcl}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{ntheorem}
\usepackage[ampersand]{easylist}
% ntheorem config
\theoremstyle{break}
\theoremheaderfont{\normalfont\bfseries\large}
\theorembodyfont{\normalfont}
\theoremseparator{\medskip}
\theorempostskip{\topsep\medskip}
\newtheorem{exercise}{Excercise}
\begin{document}
Outside theorem
\begin{easylist}[itemize]
& Main item~:
&& Sub item.
&&& Another sub item.
\end{easylist}
\begin{exercise}
Inside theorem
\noindent
\begin{minipage}[t]{1.0\linewidth}
\begin{easylist}[itemize]
& Main item~:
&& Sub item.
&&& Another sub item.
\end{easylist}
\end{minipage}
\end{exercise}
\end{document}