%22)%20em%20SubFloats%20(em%20uma%20tabela).png)
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}
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 subfig
usa o caption
pacote, 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}
A propósito, usar [h]
como especificador de posicionamento pode ser muito restritivo; você poderia tentar usar algo como [ht]
ou [hb]
.