Home | Mirror | Search

第 21 章 文章的組成元素

標題

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

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

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

comments powered by Disqus