码迷,mamicode.com
首页 > 其他好文 > 详细

tex tab example

时间:2018-07-22 15:18:50      阅读:133      评论:0      收藏:0      [点我收藏+]

标签:font   back   info   from   table   tin   fir   top   geo   

\documentclass[12pt]{book}
\usepackage{xeCJK}
\usepackage{fontspec}
\newfontfamily\sourcehansans{Source Han Sans CN}
\newfontfamily\sourcehanserif{Source Han Serif CN}
\setCJKmainfont{Source Han Serif CN}
\setCJKsansfont{Source Han Sans CN}
\usepackage{geometry}
\geometry {  paperheight=297mm,paperwidth=210mm,left=9mm, right=9mm, top=7mm, bottom=7mm}
\usepackage[table]{xcolor}
\usepackage{supertabular}
\usepackage{tabularx}
\usepackage{booktabs}
\newcolumntype{L}[2]{>{\sf \columncolor{#1} \raggedright \arraybackslash} m{#2}}
  
\begin{document}

\begin{center}
    \tablefirsthead{
        \hline
        \multicolumn{1}{|c}{Item} &
        \multicolumn{1}{|c}{1} &
        \multicolumn{1}{|c}{2} &
        \multicolumn{1}{|c}{3} \        \hline
    }

    \tablehead{
        \hline
        \multicolumn{4}{|l|}{\small\sl continued from previous page}\        \hline
        \multicolumn{1}{|c}{Item} &
        \multicolumn{1}{|c}{1} &
        \multicolumn{1}{|c}{2} &
        \multicolumn{1}{|c}{3} \        \hline
    }

    \tabletail{
        \hline
        \multicolumn{4}{|r|}{\small\sl continued on next page}\        \hline
    }

    \tablelasttail{\hline}

    \bottomcaption{short summary}

    \renewcommand\arraystretch{2}

    \begin{supertabular}{L{white!30}{1.5cm}| L{gray!20}{5cm}| L{blue!20}{5cm}| L{red!20}{5cm}}
      1 & 1 & 2  & 3 \    \end{supertabular}
\end{center}
  
\end{document}

 

tex tab example

标签:font   back   info   from   table   tin   fir   top   geo   

原文地址:https://www.cnblogs.com/Searchor/p/9350027.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!