![使用答案包枚举时出现对齐问题](https://linux22.com/image/322165/%E4%BD%BF%E7%94%A8%E7%AD%94%E6%A1%88%E5%8C%85%E6%9E%9A%E4%B8%BE%E6%97%B6%E5%87%BA%E7%8E%B0%E5%AF%B9%E9%BD%90%E9%97%AE%E9%A2%98.png)
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}