我在使用以下代码进行枚举时遇到问题:
\begin{enumerate}
\item[\textbf{Class A:}] High quality clean P-waves;
\item[\textbf{Class B:}] Complete noise and absent P-waves. This included P-waves with \textit{no resemblance} to normal P-wave morphology, either due to motion artefacts, severe baseline wander, muscular activation interference, or simply by the absence of a P-wave;
\item[\textbf{Class C:}] Unreliable, noise-distorted P-waves. This included P-waves that had \textit{some resemblance} to normal P-wave morphology.
\end{enumerate}
一开始,这很顺利,并且枚举与剩余文本对齐,正如我想要的那样:
但是,在添加\usepackage{enumitem}
到序言中之后(我需要它作为表格),枚举项移到左边:
这只发生在我调整项目符号的 \item 中。例如,在编号项目中,没有任何变化。
有人能帮助我吗?
答案1
我会使用description
列表:
\documentclass{article}
\usepackage{enumitem}
%---------------- show page layout. don't use in a real document!
\usepackage{showframe}
\renewcommand\ShowFrameLinethickness{0.15pt}
\renewcommand*\ShowFrameColor{\color{red}}
%---------------------------------------------------------------%
\begin{document}
\begin{description}
\item[Class A:] High quality clean P-waves;
\item[Class B:] Complete noise and absent P-waves. This included P-waves with \textit{no resemblance} to normal P-wave morphology, either due to motion artefacts, severe baseline wander, muscular activation interference, or simply by the absence of a P-wave;
\item[Class C:] Unreliable, noise-distorted P-waves. This included P-waves that had \textit{some resemblance} to normal P-wave morphology.
\end{description}
\end{document}
\end{document}
这使:
(红线表示文字边框)
答案2
尝试这个:
\documentclass{article}
\usepackage{calc}
\usepackage{enumitem}
\begin{document}
\noindent and P-wave quality was manually annotated and double-checked. Following the tool’s methodology, P-waves were classified into three distinct classes (Figure 4.1):
\begin{enumerate}[label=Class \Alph*: , font=\bfseries, wide=0pt, leftmargin=\widthof{\textbf{Class B:\hspace*{\labelsep}}}%
]
\item High quality clean P-waves;
\item Complete noise and absent P-waves. This included P-waves with \textit{no resemblance} to normal P-wave morphology, either due to motion artefacts, severe baseline wander, muscular activation interference, or simply by the absence of a P-wave;
\item Unreliable, noise-distorted P-waves. This included P-waves that had \textit{some resemblance} to normal P-wave morphology.
\end{enumerate}
\end{document}