日本免费高清视频-国产福利视频导航-黄色在线播放国产-天天操天天操天天操天天操|www.shdianci.com

學無先后,達者為師

網站首頁 編程語言 正文

latex表格添加注腳;對表格的內容進行注釋

作者:別出BUG求求了 更新時間: 2023-11-15 編程語言

解決方法:調用threeparttable包

  1. 在文檔的最前面加入以下命令:
\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}

在這里插入圖片描述

原文鏈接:https://blog.csdn.net/weixin_39589455/article/details/128505708

  • 上一篇:沒有了
  • 下一篇:沒有了
欄目分類
最近更新