
다음 코드를 컴파일하면:
\subsection{Force}
A force accelerates that standard body by exactly
$ 1 \text{ m/s^2 } $
is defined to have a magnitude of
$ 1 \text(N) $
The direction of a force is the direction of the acceleration is causes.
다음 오류가 발생합니다.
Missing $ inserted. <inserted text>
$ l.196 $ 1 \text{m/s^2}
$ I've inserted a begin-math/end-math symbol since I think you left one out. Proceed, with fingers crossed.
! Extra }, or forgotten $. \textdef@ ...th {#1}\let \f@size
#2\selectfont #3}
} l.196 $ 1 \text{m/s^2}
$ I've deleted a group-closing symbol because it seems to be spurious, as in `$x}$'. But perhaps the } is legitimate and you forgot something else, as in `\hbox{$x}'. In such cases the way to recover is to insert both the forgotten and the deleted material, e.g., by typing `I$}'.
무슨 일이야?
답변1
그런 식으로 하면 안 됩니다. 대신 사용하세요 siunitx
.
\documentclass{article}
\usepackage[detect-all]{siunitx}
\begin{document}
\subsection{Force}
A force accelerates that standard body by exactly
\SI{1}{\meter\per\second^2}
is defined to have a magnitude of
\SI{1}{\newton}.
The direction of a force is the direction of the acceleration is causes.
\end{document}