Latex的表格注释

作者: Shalom小白 | 来源:发表于2017-04-13 16:33 被阅读422次

    本文首发于:http://www.xiaoledeng.cn/2017/04/13/Latex10-Tablenote/

    调用threeparttable包

    在文档的最前面加入以下命令:

    \usepackage{threeparttable}
    
    

    在表格处插入命令

    \begin{table*} \label{table:number}
    \centering
    \caption{....}
    \begin{threeparttable}
    \begin{tabular}{lc}
       \hline
       A & B \\
       \hline
    A & B\tnote{*} \\
    A\tnote{**} & B \\
    % 添加表格信息
       \hline
    \end{tabular}
    
     \begin{tablenotes}
            \footnotesize
            \item[*] this is the ....  %此处加入注释*信息
            \item[**] my website is ... %此处加入注释**信息
          \end{tablenotes}
        \end{threeparttable}
    
    \end{table*}
    
    

    注意:星号可以换成数字或是其他的字符。

    完整例子测试

    
    \documentclass[12pt]{amsart}
    \usepackage{geometry} % see geometry.pdf on how to lay out the page. There's lots.
    \geometry{a4paper} % or letter or a5paper or ... etc
    
    \usepackage{threeparttable}
    
    
    \title{test}
    \author{tsta}
    \date{} % delete this line to display the current date
    
    %%% BEGIN DOCUMENT
    \begin{document}
    
    \maketitle
    \tableofcontents
    
    \section{Test1}
    \subsection{Table}
    
    
    \begin{table*} \label{table:number}
    \centering
    \caption{....}
    \begin{threeparttable}
    \begin{tabular}{llllllllll}
       \hline
       A & B& B& B& B& B& B& B& B& B \\
       \hline
    A & B\tnote{*}& B& B& B& B& B& B& B& B \\
    A\tnote{**} & B & B& B& B& B& B& B& B& B\\
    % 添加表格信息
       \hline
    \end{tabular}
    
     \begin{tablenotes}
            \footnotesize
            \item[*] this is the ....  %此处加入注释*信息
            \item[**] my website is ... %此处加入注释**信息
          \end{tablenotes}
        \end{threeparttable}
    
    \end{table*}
    
    
    \end{document}
    

    以上文件保存为test.tex,然后编译,显示如下:

    Latex表格注释例子

    Reference

    相关文章

      网友评论

        本文标题:Latex的表格注释

        本文链接:https://www.haomeiwen.com/subject/flgbattx.html