증명 + \mathaccent 오류

증명 + \mathaccent 오류

다음 코드에 대해 "수학 모드에서 악센트에 \mathaccent를 사용하십시오."라는 오류가 발생합니다. 에 문제가 있는 것 같지만 $Vˆ{\infty}$에 있기 때문에 왜 잘못된 것인지 잘 모르겠습니다 $.

\begin{proof}
(4) can be written component-wise for all $t$ 
as $v=Qv$, where $Q$ is the operator 
on $Vˆ{\infty}$ defined on the R.H.S of (4). 
\end{proof}

답변1

위 첨자 시작자 ˆ대신 ASCII가 아닌 문자인 을(를) 사용하고 있습니다 . ^문자를 ˆ로 입력할 수도 있습니다 \textasciicircum. 텍스트 모드에서는 괜찮을 수 있지만(utf8 입력 인코딩이 사용되는 한) 수학 모드에서는 작동하지 않습니다.

결론: ^수학 모드에서만 사용하십시오.

MWE(최소 작업 예):

\documentclass{article}
\usepackage[utf8]{inputenc}
\begin{document}
$Vˆ{\infty}$ vs.\ $V^{\infty}$
\end{document}

실제로 전체 경고 메시지 세트는 다음과 같습니다.

LaTeX Warning: Command \textasciicircum invalid in math mode on input line 4.

LaTeX Warning: Command \^ invalid in math mode on input line 4.

! Please use \mathaccent for accents in math mode.

\add@accent ...@spacefactor \spacefactor }\accent 

                                                 #1 #2\egroup \spacefactor ...

l.4 $Vˆ

        {\infty}$ vs.\ $V^{\infty}$

? 

TeX의 오류 및 경고 메시지는 간결하기로 유명합니다(때로는 거의 뚫을 수 없을 때도 있습니다). 핵심은 찾는 것이다.첫 번째현재의 경우 "LaTeX 경고: \textasciicircum수학 모드에서 명령이 유효하지 않습니다"라는 오류 또는 경고 메시지입니다. 이것은 당신에게 정보를 제공했을 수도 있습니다. 그러나 ˆ로 입력될 수도 있다는 것이 명확하지 않을 수도 있습니다 [!] \textasciicircum.

관련 정보