zoukankan      html  css  js  c++  java
  • tex table

    documentclass{article}
    
    usepackage{xeCJK}
    setCJKmainfont[BoldFont=SimHei]{SimSun}
    setCJKfamilyfont{hei}{SimHei}
    setCJKfamilyfont{kai}{KaiTi}
    setCJKfamilyfont{fang}{FangSong}
    
    ewcommand{hei}{CJKfamily{hei}}
    
    ewcommand{kai}{CJKfamily{kai}}
    
    ewcommand{fang}{CJKfamily{fang}}
    
    usepackage[table]{xcolor}
    usepackage{supertabular}
    usepackage{tabularx}
    usepackage{booktabs}
    
    
    
    egin{document}
    
    中文eng混合input。
    
    egin{center}
        
    owcolors{1}{green}{pink}
        egin{tabular}{lll}
            odd     & odd     & odd \
            even     & even     & even\
            odd     & odd     & odd \
            even     & even     & even\
        end{tabular}
    end{center}
    
    egin{center}
        	ablefirsthead{
            hline
            multicolumn{1}{|c}{column 1} &
            multicolumn{1}{|c}{column 2} &
            multicolumn{1}{|c}{column 3} &
            multicolumn{1}{|c}{column 4} \
            hline
        }
    
        	ablehead{
            hline
            multicolumn{4}{|l|}{smallsl continued from previous page}\
            hline
            multicolumn{1}{|c}{column 1} &
            multicolumn{1}{|c}{column 2} &
            multicolumn{1}{|c}{column 3} &
            multicolumn{1}{|c}{column 4} \
            hline
        }
    
        	abletail{
            hline
            multicolumn{4}{|r|}{smallsl continued on next page}\
            hline
        }
    
        	ablelasttail{hline}
    
        ottomcaption{This table is split across pages}
    
        
    enewcommandarraystretch{2}
        setlength{arrayrulewidth}{0.6mm}
    
        egin{supertabular}{A{red!30}{5cm}| B{green!20}{2cm}| C{blue!30}{4cm}| l}
            1 & 111212 121111112 154551541212 & 1 & 1 \hline
            2 & 4 & 16 & 2 \
            3 & 9 & 81 & 6 \midrule[2mm]
            2 & 4 & 16 & 2 \
            3 & 9 & 81 & 6 \hline
            1 & 111212 121111112 154551541212 & 1 & 1 \hline
            2 & 4 & 16 & 2 \
            3 & 9 & 81 & 6 \midrule[2mm]
            2 & 4 & 16 & 2 \
            3 & 9 & 81 & 6 \hline
            1 & 111212 121111112 154551541212 & 1 & 1 \hline
            2 & 4 & 16 & 2 \
            3 & 9 & 81 & 6 \midrule[2mm]
            2 & 4 & 16 & 2 \
            3 & 9 & 81 & 6 \hline
            1 & 111212 121111112 154551541212 & 1 & 1 \hline
            2 & 4 & 16 & 2 \
            3 & 9 & 81 & 6 \midrule[2mm]
            2 & 4 & 16 & 2 \
            3 & 9 & 81 & 6 \
            2 & 4 & 16 & 2 \
            3 & 9 & 81 & 6 \hline
            1 & 111212 121111112 154551541212 & 1 & 1 \
        end{supertabular}
    end{center}
     
    end{document}

  • 相关阅读:
    HTTP 缓存图解
    http协议构成整理
    HTTP2.0
    Event Loop
    斐波那契数列
    归并排序
    快速排序
    史上最全前端资源
    Js 将 Date 转化为指定格式的String
    vue-cli webpack全局引入jquery
  • 原文地址:https://www.cnblogs.com/Searchor/p/6769511.html
Copyright © 2011-2022 走看看