知乎专栏 |
标题
\title{文章的题目} \author{作者姓名} \date{2005/09/23} \maketitle
abstract
\begin{abstract} put your abstract here... \end{abstract}
目录
\tableofcontents
章节
\chapter{章的名称} \section{节的名称} \subsection{小节的名称} \subsubsection{子节的名称}
索引
\printindex
参考文献
\begin{thebibliography} \bibitem{}参考文献1 \bibitem{}参考文献2 \end{thebibliography}
例 18.1. article.latex
% This is a comment line \documentclass{article} \begin{document} % Note to self: % I must change this title later! \title{Hello World} \author{Your Name\\ Department of Computer Science\\ Courant Institute, NYU} \maketitle \begin{abstract} ...put your abstract here... \end{abstract} \section{First Section} ...text... \subsection{First subsection} ...text... \subsection{Second subsection} ...text... \section{Second Section} ...text... ...and so on... \end{document}
例 18.2. book.latex
% This is a comment line \documentclass{article} \begin{document} % Note to self: % I must change this title later! \title{Hello World} \author{Your Name\\ Department of Computer Science\\ Courant Institute, NYU} \maketitle \begin{abstract} ...put your abstract here... \end{abstract} \chapter{First Chapter} ...text... \section{First Section} ...text... \subsection{First subsection} ...text... \subsection{Second subsection} ...text... \chapter{Second Chapter} ...text... \section{Second Section} ...text... ...and so on... \end{document}