详细列举部分无条目

详细列举部分无条目

我在日志文件中收到以下类型的消息,https://www.overleaf.com/learn/latex/Errors/LaTeX_Error:_Something%27s_wrong--perhaps_a_missing_%5Citem 在第 23 行的列表中未找到任何条目

\begin{itemize}
     \textendash\textbf{i} To be able to understand the anomaly detection techniques by existing service providers.
     \textendash\textbf{ii} To be able to implement an approach which can detect anomalies in a given data set.\\
\end{itemize}

我想知道上述用法有什么错误?

答案1

信息很明确:没有\item,所以您可以添加一个。

\documentclass{article}

\begin{document}
\begin{itemize}
     \item[\textendash\textbf{i}] To be able to understand the anomaly detection techniques by existing service providers.
     \item[\textendash\textbf{ii}] To be able to implement an approach which can detect anomalies in a given data set.
\end{itemize}
\end{document}

当然,还有更好的方法可以达到同样的效果,例如

\documentclass{article}
\usepackage{enumitem}
\begin{document}
\begin{enumerate}[label=\textendash\textbf{\roman*}, ref=\textbf{\arabic*}]
     \item To be able to understand the anomaly detection techniques by existing service providers.
     \item To be able to implement an approach which can detect anomalies in a given data set.
\end{enumerate}
\end{document}

在此处输入图片描述

我还删除了\\不应该在那里的(并导致了underfull hbox消息。

相关内容