我无法删除此表中的编号

问题描述 投票:0回答:2

我使用表格在 Latex 中编写数学问题的集合、数据和变量。我不想对这些表进行编号。当我创建“实际”表时,该表得到错误的数字,因为集合、数据和变量是使用表函数写入的。有人可以帮我吗?

我已经尝试在函数内使用

\usepackage{caption}
\caption*{nothing}
,但什么也没发生。

\begin{table}[h]
    \begin{tabular}{l}
    $N$ : Set of   production and consumption ports \\
                                                  \\
    $V$ : Set of vessels                              \\
                                                  \\
    $S^{A}$ : Set of possible nodes $(i,m)$         \\
                                                    \\
    $S_{v}^{A}$ : Set of nodes that can be visited by vessel $v$\\
                                                                \\
    $S_{v}^{X}$ : Set of all possible visits $(i,m,j,n)$ of vessel $v$\\
                                                                    \\
    $S_{v}^{S}$ : Set of breakpoints for the speed of vessel $v$, where $S_{v}^{S}=\{ 1,2,..,U \}$\\
                                                                    \\
    \end{tabular}
    \end{table}
latex overleaf
2个回答
0
投票

防止 LaTeX 增加表数量的最简单解决方法是在浮动环境中首先插入

\ContinueFloat
。这个宏的意思是把一个大表分成几个部分,并保持每个部分的数量相同,以表明这些表形成一个单独的表。

这是一个例子。请注意,我通过添加

:
作为列分隔符稍微更改了您的表格,因此该表格由两列组成

\documentclass{article}
\usepackage{caption}

\begin{document}
\begin{table}[h]
  \caption{Table}\label{tab:test3}
  \begin{tabular}{r @{\ :\ } l}
    $N$ & Set of   production and consumption ports \\
    $V$ & Set of vessels \\
    $S^{A}$ & Set of possible nodes $(i,m)$ \\
    $S_{v}^{A}$ & Set of nodes that can be visited by vessel $v$ \\
    $S_{v}^{X}$ & Set of all possible visits $(i,m,j,n)$ of vessel $v$ \\
    $S_{v}^{S}$ & Set of breakpoints for the speed of vessel $v$, where $S_{v}^{S}=\{ 1,2,..,U \}$
  \end{tabular}
\end{table}

\begin{table}[h]\ContinuedFloat
  \caption{Table (continued)}\label{tab:test2}
\end{table}

\begin{table}[h]
  \caption{Table}\label{tab:test3}
\end{table}
\end{document}


0
投票

尽管即使

table
环境在没有命令
caption
的情况下也应该按预期工作,但我还是切换到了
table*
环境:

\documentclass{article}

\begin{document}

\begin{table*}[ht]
\begin{tabular}{l}
$N$ : Set of   production and consumption ports\\[0.5em]
$V$ : Set of vessels\\[0.5em]
$S^A$ : Set of possible nodes $(i,m)$\\[0.5em]
$S_v^A$ : Set of nodes that can be visited by vessel $v$\\[0.5em]
$S_v^X$ : Set of all possible visits $(i,m,j,n)$ of vessel $v$\\[0.5em]
$S_v^S$ : Set of breakpoints for the speed of vessel $v$, where $S_v^S=\{1,2,..,U\}$\\
\end{tabular}
\end{table*}

\end{document}

此外,您可以更好地使用行之间的垂直间距,例如每行末尾的

[1em]
,而不是包含内容的行之间的空行。

© www.soinside.com 2019 - 2024. All rights reserved.