Step@88
-
2007-12-07
循序渐进使用Latex(二) - [GNU]
1 . 制作文章title 和 索引目录
\title{title name}
\author{ your name}
\date{date time }
\maketitle
\tableofcontents % 将section 自动制作成目录
\section{xxx}
\subsection{xxx}
% 还有其它的 \paragraph{} \subparagraph{},对于book 还可以有chapter
\chapter{first chapter}
\section{first section to this chapter}
2. 制作单独块 \begin{quote} \end{quote}
3. 制作list
\begin{enumerate}
\item first item
\begin{itemize}
\item sub item
\item sub item two
\end{itemize}
\ item two item
\begin{description}
\item{xxx} sub item
\item{xxx} sub item two
\end{description}
\end{enumerate}
4. 制作文章内连接 (crosse reference)
\label{index} ........refer to \ref{index} : 其中index会自动替代相应的标题 \label{ch:xxx} 会自动引用章节标题,等等 还有 {sec:xxx}
5. 制作表格
\begin{tabular}{|c|c|c|c|c|c|c|c|}
\hline
\multicolumn{4}{|c|}{Source Port}&\multicolumn{4}{c|}{Destination Port}\\
\hline
\multicolumn{8}{|c|}{Sequence Number}\\
\hline
\multicolumn{8}{|c|}{ACK Number}\\
\hline
\multicolumn{2}{|c|}{Header Length}&reserved&Flags&\multicolumn{4}{|c|}{Window}\\
\hline
\multicolumn{4}{|c|}{Checksum}&\multicolumn{4}{|c|}{URG Pointer}\\
\hline
\multicolumn{8}{|c|}{Packet OPtions (Padding)}\\
\hline
\multicolumn{8}{|c|}{User Data}\\
\hline
\end{tabular}
6. 制作框框
\makebox[width][pos]{text content} \framebox[width][pos]{text content}
7. 比较不错的程序代码段包含
\usepackage{listings}
\lstset{language=c,extendedchar=false}
\begin{lstlisting}
your code here
\end{lstlisting}
除了此宏以外,还有一个宏 verbatim ,使用也很方便 \begin{verbatim} text \end{verbatim} 会自动忽略text中的tex命令,verbatim*的话将空格替代为下凹槽。
随机文章:
循序渐进使用Latex(三) 2007-12-19循序渐进使用Latex(一) 2007-12-05Doxygen 使用(一) 2007-11-30Latex 安装和使用以及中文问题 2007-05-27autotoolset使用(2) 2007-05-22
收藏到:Del.icio.us







