\begin{equation}
\begin{split}
${\delta _{k + 1}} = {\theta _{k + 1}} - {\theta _k}$ \\
\end{split}
\end{equation}
我正在使用 TeXstudio 编写方程式。我收到以下错误。我是 latex 的初学者
Missing } inserted. \end{split}
我必须插入哪里}
?
答案1
你$
里面有虚假的split
:
\documentclass{article}
\usepackage{amsmath}
\begin{document}
\begin{equation}
\begin{split}
{\delta _{k + 1}} = {\theta _{k + 1}} - {\theta _k} \\
\end{split}
\end{equation}
\end{document}
顺便说一句:如果它只是方程内的线,split
则完全不需要。
答案2
我还删除了不必要的括号:
% My standard header for TeX.SX answers:
\documentclass[a4paper]{article} % To avoid confusion, let us explicitly
% declare the paper format.
\usepackage[T1]{fontenc} % Not always necessary, but recommended.
% End of standard header. What follows pertains to the problem at hand.
\usepackage{amsmath}
\begin{document}
Some text.
\begin{equation}
\begin{split}
\delta_{k + 1} &= \theta_{k + 1} - \theta_{k} \\
&= \text{there should be an alignment point, shouldn't it?}
\end{split}
\end{equation}
\end{document}
答案3
避免$
、\\
和行距
\begin{equation}
\begin{split}
\delta _{k + 1} = \theta _{k + 1} - \theta _k
\end{split}
\end{equation}