關於空間的基本問題

關於空間的基本問題

我正在嘗試在業餘時間使用 Griffiths 和 Hingham 的“Learning LaTeX”來學習 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

在此輸入影像描述

由於你的段落大部分都是一行,所以縮排不會顯示太多,我將縮排的行標記為紅色,將非縮排的行標記為綠色,

相關內容