LaTeX/文章结构

维基教科书,自由的教学读本

LaTeX 的文稿結構

環境(environment)[编辑]

所有的環境,都是起於 \begin{環境名稱},止於 \end{環境名稱},這兩個指令之間的文稿都會被作用,而且,環境之內還可以套用其他不同的環境。

LaTeX 文稿的正文,其實就是包在一個 \begin{document} 和 \end{document} 這個 document 環境當中。

\documentclass{article}

 這裡是 preamble 區

\begin{document}

 這裡是本文區

\end{document}

實例[编辑]

% example1.tex
\documentclass{article}
\begin{document}
This is my first typesetting example.\\

\end{document}