Remover numeração (e "()") em SubFloats (em uma tabela)

Remover numeração (e "()") em SubFloats (em uma tabela)

Então, defini três ambientes tabulares em uma tabela:

\begin{table}[h]

\centering
\scriptsize

\subfloat[``student" data table]{
\begin{tabular}{lcc} \toprule
Column Name &  Data Type \\\midrule
id* & Integer \\
name & Text  \\\bottomrule
\end{tabular}
}
\qquad\qquad
\subfloat[``term\_gpa" data table]{
\begin{tabular}{lcc} \toprule
Column Name &  Data Type \\\midrule
id* & Integer \\
term* & Integer \\
gpa & Float \\\bottomrule
\end{tabular}}
\qquad\qquad
\subfloat[``degrees" data table]{
\begin{tabular}{lcc} \toprule
Column Name &  Data Type \\\midrule
id* & Integer \\
term & Integer \\
degree* & Char(5) \\\bottomrule
\end{tabular}}

\end{table}

Ambiente de mesa

Tudo parece ótimo, porém os "(a)", "(b)", "(c)", tem confundido alguns usuários como sendo os nomes das tabelas. Estou tentando removê-los, no entanto, quando adiciono isto:

\renewcommand{\thesubtable}{\relax}

Eu recebo cada um deles rotulado como "()"; então está suprimindo a numeração, mas ainda inclui a parátese.

Alguma ideia. Espero que seja algo simples. Obrigado!

Responder1

Como subfigusa o captionpacote, você pode usar

\captionsetup[subfloat]{labelformat=empty}

Um exemplo completo:

\documentclass{article}
\usepackage[margin=2cm]{geometry}% just for the example
\usepackage{subfig}
\usepackage{booktabs}

\begin{document}

\begin{table}[h]

\centering
\scriptsize
\captionsetup[subfloat]{position=top,labelformat=empty}
\subfloat[``student" data table]{
\begin{tabular}[t]{lcc} \toprule
Column Name &  Data Type \\\midrule
id* & Integer \\
name & Text  \\\bottomrule
\end{tabular}
}
\qquad\qquad
\subfloat[``term\_gpa" data table]{
\begin{tabular}[t]{lcc} \toprule
Column Name &  Data Type \\\midrule
id* & Integer \\
term* & Integer \\
gpa & Float \\\bottomrule
\end{tabular}}
\qquad\qquad
\subfloat[``degrees" data table]{
\begin{tabular}[t]{lcc} \toprule
Column Name &  Data Type \\\midrule
id* & Integer \\
term & Integer \\
degree* & Char(5) \\\bottomrule
\end{tabular}}

\end{table}

\end{document}

insira a descrição da imagem aqui

A propósito, usar [h]como especificador de posicionamento pode ser muito restritivo; você poderia tentar usar algo como [ht]ou [hb].

informação relacionada