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}

转载于:https://my.oschina.net/durong/blog/113106

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值