更改桌号

更改桌号

我在 Latex 中创建了下表:

\documentclass[12pt]{report}

\begin{table}[ht]
\centering
\small
\captionof{table}{Overview of selected Stablecoins} \label{tab:title} \\ 

\begin{tabular}{lllrrr}
\hline
 Name & Ticker & Type & Platform & Launch & Marketcap.\\
 \hline
Tether & USDT & Tokenised funds & Ethereum & 2014 & \$62.223.789.214 \\ 
Paxos Standard & PAX & Tokenised funds & Ethereum & 2018 & \$921.556.613\\ 
Digix Gold & DGX & Collateralized (off-chain) & Ethereum & 2018 & $4.207.210\\ 
PAX Gold & PAXG & Collateralized (off-chain) & Ethereum & 2019 & \$108.456.790\\ 
Dai & DAI & Collateralized (on-chain) & Ethereum & 2019 & \$5.500.483.542\\ 
Wrapped BTC & WBTC & Collateralized (on-chain) & Ethereum & 2019 & \$6.796.595.091 \\ 
Ampleforth & AMPL & Algorithmic & Ethereum & 2019 & \$125.480.264 \\
\hline
\end{tabular}
\end{table}
\\

这应该是我论文中的第一个表格。我希望名称为

表 1:部分稳定币概览

然而输出是

表 4.1:选定稳定币的概览

(4 是章节,4.1 是我的表格出现的小节)

我该如何改变这一点?

答案1

当我让你的代码可编译时(通过在符号前添加\begin{document}\end{document}缺失,并添加\$\usepackage{caption},那么它对我来说工作正常,并产生一个标题“表 1:选定稳定币的概述”。这就是为什么你通常应该提供一个平均能量损失

\usepackage{caption}
\begin{document}
\begin{table}[ht]
   \centering
   \small
   \captionof{table}{Overview of selected Stablecoins} \label{tab:title}
   \begin{tabular}{lllrrr}
      \hline
      Name           & Ticker & Type                       & Platform & Launch &       Marketcap. \\ \hline
      Tether         & USDT   & Tokenised funds            & Ethereum &   2014 & \$62.223.789.214 \\
      Paxos Standard & PAX    & Tokenised funds            & Ethereum &   2018 &    \$921.556.613 \\
      Digix Gold     & DGX    & Collateralized (off-chain) & Ethereum &   2018 &      \$4.207.210 \\
      PAX Gold       & PAXG   & Collateralized (off-chain) & Ethereum &   2019 &    \$108.456.790 \\
      Dai            & DAI    & Collateralized (on-chain)  & Ethereum &   2019 &  \$5.500.483.542 \\
      Wrapped BTC    & WBTC   & Collateralized (on-chain)  & Ethereum &   2019 &  \$6.796.595.091 \\
      Ampleforth     & AMPL   & Algorithmic                & Ethereum &   2019 &    \$125.480.264 \\ \hline
   \end{tabular}
\end{table}
\end{document}

在此处输入图片描述 这可能意味着您\counterwithin{table}{chapter}的代码中有一个(可能在序言中)或一个为您执行此操作的包。您应该找出它的来源,或者\counterwithout{table}{chapter}在合适的位置添加一个,前者是更好的主意。

我还冒昧地对您的代码进行了一些改进:

\documentclass[12pt]{report}
\usepackage{booktabs}
\usepackage[group-separator={.}]{siunitx}

\begin{document}
\begin{table}[ht]
   \centering
   \small
   \caption{Overview of selected Stablecoins.} \label{tab:title}
   \begin{tabular}{lllllS[table-format=11.0]}
      \toprule
      Name           & Ticker & Type                       & Platform & Launch & {Marketcap. (\$)} \\ \midrule
      Tether         & USDT   & Tokenised funds            & Ethereum & 2014   & 62223789214       \\
      Paxos Standard & PAX    & Tokenised funds            & Ethereum & 2018   &   921556613       \\
      Digix Gold     & DGX    & Collateralized (off-chain) & Ethereum & 2018   &     4207210       \\
      PAX Gold       & PAXG   & Collateralized (off-chain) & Ethereum & 2019   &   108456790       \\
      Dai            & DAI    & Collateralized (on-chain)  & Ethereum & 2019   &  5500483542       \\
      Wrapped BTC    & WBTC   & Collateralized (on-chain)  & Ethereum & 2019   &  6796595091       \\
      Ampleforth     & AMPL   & Algorithmic                & Ethereum & 2019   &   125480264       \\ \bottomrule
   \end{tabular}
\end{table}
\end{document}

在此处输入图片描述

相关内容