enumerate
在包内使用时answers
生成练习列表,与后面的所有其他项目相比,第一个项目未正确缩进。是否可以enumerate
在answers
包内使用并获得所有项目的正确对齐?
这是我的 MWE。
\documentclass{memoir}
\usepackage{answers}
\Newassociation{sol}{Solution}{ans}
\renewcommand{\Solutionlabel}[1]{\small{#1.}}
\newtheorem{ex}{}[section]
\begin{document}
\begin{ex}
\begin{enumerate}
\item Part 1. of the first exercise which is not correctly aligned
compared to all other subsequence items in the list.
\item Part 2. of the first exercise.
\item Part 3. of the first exercise.
\end{enumerate}
\end{ex}
\begin{ex}
The next exercise.
\end{ex}
\end{document}
答案1
您可以在后面指定一些(解释性)文本,或者在后面\begin{ex}
添加字符。~
\begin{ex}
ex
“问题”是由于和的定义引起的,与包根本\newtheorem
无关。answers
\documentclass{memoir}
\usepackage{answers}
\Newassociation{sol}{Solution}{ans}
\renewcommand{\Solutionlabel}[1]{\small{#1.}}
\newtheorem{ex}{Exercise}[section]
\begin{document}
\chapter{First}
\section{First}
\begin{ex}~
\begin{enumerate}
\item Part 1. of the first exercise which is not correctly aligned
compared to all other subsequence items in the list.
\item Part 2. of the first exercise.
\item Part 3. of the first exercise.
\end{enumerate}
\end{ex}
\begin{ex} Or with some text
\begin{enumerate}
\item Part 1. of the first exercise which is not correctly aligned
compared to all other subsequence items in the list.
\item Part 2. of the first exercise.
\item Part 3. of the first exercise.
\end{enumerate}
\end{ex}
\end{document}