Home | 簡體中文 | 繁體中文 | 雜文 | 打賞(Donations) | ITEYE 博客 | OSChina 博客 | Facebook | Linkedin | 知乎專欄 | Search | Email

第 23 章 文章的組成元素

標題

\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}
		

例 23.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}
			

例 23.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}