我试图在行中添加一个方程式,它会像这样改变之后写入的文本的格式。
It makes quadratic equation which is ax^2 \pm bx \pm c .\\ then by eliminating the constants
and lower order terms.
它将“然后通过消除常数和低阶项。”的格式改为“然后通过消除常数和低阶项“”。
答案1
只是为了‘关闭’这个问题......
\documentclass{book}
\begin{document}
There are principally two methods to write an equation surrounded by text:
\begin{enumerate}
\item Displaystyle -- in a separate line
It makes quadratic equation which is \[ ax^2 \pm bx \pm c,\] then by eliminating the constants
and lower order terms...
\item Inline
It makes quadratic equation which is \begin{math} ax^2 \pm bx \pm c,\end{math} then by eliminating the constants
and lower order terms...
\end{enumerate}
\end{document}