Latex程序 TABLE

%Latex初接触的一些符号使用方法
%\documentclass{article}%book,report,letter
\documentclass{book}
\usepackage{CJK}
\usepackage{amsmath}%这里的amsmath相当于宏包
\usepackage{enumerate}
\usepackage{indentfirst} % 中文段落首行缩进
\usepackage{longtable}
%导言区
\begin{document}
%正文区
\title{My Book}
\author{Du Rong}
\date{}    %加入这个首页就没有时间信息了,注意这句话的位置,要在maketitle前面
\maketitle

\tableofcontents %可以出现contents目录
\mainmatter %使页码从正文开始,这就是Latex最智能的地方。

\part{elementary}

\chapter{introduction}
\section{all kinds of item}
\subsection{itemize}
\subsubsection{how to use itemize. }%这里就是正文了
\begin{itemize}
  \item I Love LaTex.
  \item I Love Word.
  \item I Love PDF.
\end{itemize}
\subsection{numerate}
\subsubsection{how to use numerate(normal way)}%最基本的枚举方式
\begin{enumerate}
  \item I Love LaTex.
  \begin{enumerate}
    \item LaTex 1.0
    \item LaTex 2.0
  \end{enumerate}
  \item I Love Word.
  \item I Love PDF.
\end{enumerate}
\subsubsection{how to use numerate(my way1)}%序号方式是自定义的[A.]
\begin{enumerate}[A.]%1加入enmerate宏包,2 [A.]
  \item I Love LaTex.
  \begin{enumerate}[a.]
    \item LaTex 1.0
    \item LaTex 2.0
  \end{enumerate}
  \item I Love Word.
  \item I Love PDF.
\end{enumerate}

\subsubsection{how to use numerate(my way1 from No3.)}%从非一序号开始
\begin{enumerate}[A.]%1加入enmerate宏包,2 [A.]
 \setcounter{enumi}{3} \item I Love LaTex.
  \begin{enumerate}[a.]
  \setcounter{enumii}{3} \item LaTex 1.0 %注意这里enumii是俩个ii,表示从第二层开始的,否则还是第一层从No3.开始
    \item LaTex 2.0
  \end{enumerate}
  \item I Love Word.
  \item I Love PDF.
\end{enumerate}
\chapter{Table}
\section{Normal Table}
\begin{tabular}{clr}
3222&55&234\\
43&23&33\\
\end{tabular}
\section{My Table with full frame}
\begin{tabular}{|c|l|r|}%这是有竖杠
\hline%表示加横杠
3222&55&234\\
\hline%表示加横杠
43&23&33\\
\hline%表示加横杠
\end{tabular}

\eject%另起一页用\eject
\section{My Table with Excel using tabular}
\begin{tabular}{c|l|r}%这是有竖杠
\hline%表示加横杠
type & No & Name\\
\hline%表示加横杠
dys & 0606 & normar\\
dys & 0607 & normar\\
dys & 0608 & normar\\
dys & 0609 & normar\\
dys & 0610 & normar\\
dys & 0611 & normar\\
dys & 0612 & normar\\
dys/dys & 0613 & normar\\
dys & 0614 & normar\\
dys & 0700 & normar\\
\hline%表示加横杠
\end{tabular}%\eject%另起一页用\eject


\section{My Table with Table}
\begin{table}
  \centering
  \begin{tabular}{ccc}%这是有竖杠
\hline%表示加横杠
type & No & Name\\
\hline%表示加横杠
\multicolumn{2}{c}{dys  0606} & normar\\
dys & 0607 & normar\\
\cline{1-3}
dys & 0608 & normar\\
dys & 0609 & normar\\
dys & 0610 & normar\\
dys & 0611 & normar\\
dys & 0612 & normar\\
dys/dys & 0613 & normar\\
dys & 0614 & normar\\
dys & 0700 & normar\\
\hline%表示加横杠
\end{tabular}
  \caption{this is my table}\label{my}
\end{table}

\chapter{summary}

\part{advanced}
\chapter{introduction}
\section{first section}
\subsection{I like Word}
\chapter{blablabla}
\chapter{inclusion}
\end{document}

你可能感兴趣的:(Latex程序 TABLE)