
我的問題是,內部方程式環境雙反斜線\\
似乎沒有如預期強制換行:
\begin{equation*}
\fontsize{12}{15} \text{1. (a) State the Mean Value Theorem.}\\
\fontsize{12}{15}\text{(b) Consider the function}
g:\mathbb{R} \rightarrow \mathbb{R}
\end{equation*}
在這段程式碼中,我找不到實現該\\
功能的方法。我希望元素 (b) 位於我用紅色繪製的位置。
這段程式碼有什麼問題,我該如何讓它\\
運作?
答案1
該equation
環境不是為斷行。為此目的,存在著環境multline
、gather
、 align
等(及其已加星標版本)由包提供amsmath
。 (也存在eqnarray
ofLaTeX
但不建議)。
對於您的範例,您應該使用環境enumerate
(如果您想要更個性化的東西,請與enumitem
包裹)。
例子
\documentclass[12pt]{article}
\usepackage{amssymb}
\begin{document}
\begin{enumerate}
\item
\begin{enumerate}
\item State the Mean Value Theorem.
\item Consider the function $g:\mathbb{R} \rightarrow \mathbb{R}$
\end{enumerate}
\end{enumerate}
\end{document}