我正在尝试利用业余时间学习 LaTeX,使用 Griffiths 和 Hingham 编写的《Learning LaTeX》。我复制了第 6 页上的示例代码,但编译时却没有段落。
有人能指出我哪里错了吗?这是代码
\documentclass{article}
\begin{document}
This is a short document to illustrate the basic use of \LaTeX.
Simply leave a blank line to start a new paragraph; indentation is automatic.
Mathematical expressions such as $y = 3 \sin x$ are obtaines with dollar signs. Equations can be displayed, as in
\[
y = 3 \sin x .
\]
Numbered equations are also possible :
\begin{equation}\label{banana}
y = 3 \sin x
\end{equation}
Because we have labeled this equation we can refer to it without having to know its number. Thus, the preceding equation was number~(\ref{banana}).
Powers (also known as superscripts), as in $x^2$ are obtained with \verb"^";
more complicated powers must live in curly braces: $x^{2+\alpha}$.
Likewise, indices (also known as subscripts) are obtained with the underscore: $y_3$ or $y_{n+1}$
We can get both indices and powers at the same time!
$x_{n_1}^{2+\alpha}$
\end{document}
我使用什么文本编辑器和编译器有关系吗?抱歉,这个问题太简单了,但我在网上找不到任何关于段落不显示的信息。我也运行了几次编译器,段落仍然没有显示。抱歉,如果这个问题对于论坛来说太基础了,但我不知道在哪里可以问。
答案1
由于您的段落大多只有一行,缩进并不明显,我用红色标记了缩进的行,用绿色标记了非缩进的行,