
나는 다음과 같은 상황이 있었다
\begin{itemize}
\item[(A_s)] Item (A_s) such that
\begin{equation}\label{sob}
\sum_{n}n
\end{equation}
\item[(B_s)] Item (B_s)
\end{itemize}
결과는 빈 화면이었습니다. 그 후 $
항목의 시작과 끝 부분에 넣었습니다.
\begin{itemize}
\item[$(A_s)$] Item (A_s) such that
\begin{equation}\label{sob}
\sum_{n}n
\end{equation}
\item[$(B_s)$] Item (B_s)
\end{itemize}
모든 것이 잘 작동했습니다. 이것을 발견하기까지 나는 많은 시간을 허비했다. 문제는 무엇 이었습니까?
답변1
_
첨자의 시작을 나타내는 특수 문자이며 수학 모드에서만 허용됩니다. 이처럼 삽입$
약수학 관련 콘텐츠를 사용하면 문제가 방지됩니다.
환경 equation
은 자동으로 수학 모드를 시작하므로 수학 모드로 들어갈 필요가 없습니다.
실제로 밑줄을 원하는 경우 아래 방법 중 하나를 사용할 수 있습니다. 또한 참조하십시오단어의 밑줄(텍스트).
\documentclass{article}
\usepackage[T1]{fontenc}
\begin{document}
\begin{itemize}
\item[$(A_s)$] Item ($A_s$) such that
\begin{equation}\label{sob}
\sum_{n}n
\end{equation}
\item[$(B_s)$] Item ($B_s$)
\item[(C\string_s)] Item (\detokenize{C_s}) and (C\textunderscore s)
\end{itemize}
\end{document}