Como colocar uma linha em uma tabela sem divisão de colunas, mas o resto da tabela terá divisões

Como colocar uma linha em uma tabela sem divisão de colunas, mas o resto da tabela terá divisões

Quero fazer uma tabela onde ela esteja completamente gradeada, exceto o subscrito da linha, onde quero ter apenas as linhas acima e abaixo, mas nenhuma outra linha.

Estou tentando esse código, mas ele não me dá o que desejo.

\begin{table}[!ht]
\centering
\caption*{Common Notation}
\begin{tabular}{|l|l|l|}
\hline
{\bf Symbol} & {\bf  Description} & {\bf Units} \\ \hline
$\alpha$ & Thermal expansion coefficient & $^\circ$C$^{-1}$ \\ \hline
$\kappa$ & Thermal diffusivity &  m$^2$/s \\ \hline
$\eta$ & Dynamic viscosity & Pa s \\ \hline
$\nu$ & Kinematic viscosity & m$^2$/s \\ \hline
C$_{p}$ & Specific Heat Capacity & J/kg$^\circ$C \\ \hline
$\rho$ & Density & kg/m$^3$ \\ \hline
T & Temperature & $^\circ$C \\ \hline
k & Thermal conductivity & W/m$^\circ$C \\ \hline
v & Velocity & m/yr \\ \hline
$\Delta$T=T$_h$-T$_\infty$ & Temperature Difference & $^\circ$C \\ \hline
$\eta$$^*$=$\eta$$_h$-$\eta$$_\infty$ & Viscosity Contrast & Pa s \\ \hline
U & Speed & m/s \\ \hline
y$_T$ & Thermal boundary layer & m \\ \hline
l$_c$ & Plume height after about 2 hours & m \\ \hline
$\tau$$_c$ & Diffusion time & s \\ \hline
$\tau$ & Time the plume first emerges & s \\ \hline
g & Gravitational acceleration & m/s$^2$ \\ \hline
D & Plume Diameter & m \\ \hline
H & Height of the tank &\\ \hline
P & Pressure & Pa \\
\end{tabular}
    \begin{tabular}{|l|} subscript \\ 
    \end{tabular}
    \begin{tabular}{|l|l|l|}
h & Heater  & \\ \hline
$\infty$ & Ambient & \\ \hline
b & Buoyancy & \\ \hline
    \end{tabular}
\label{corn}
\end{table}

Qualquer ajuda seria muito apreciada. Muito obrigado!

Responder1

O que você quer parece\multicolumn{}{}{}

\begin{tabular}{|l|l|l|}
    \hline
    something & something & something\\
    \hline
    \multicolumn{3}{|l|}{very very long line}\\
    \hline
    something & something & something\\
    \hline
    something & something & something\\
    \hline
\end{tabular}

fornece uma tabela como esta:

insira a descrição da imagem aqui

Como você pode ver, o primeiro {}determina quantas colunas devem ser unidas. O segundo {}representa o formato dessas células e o terceiro representa o conteúdo real.

Em vez de usar um novo tabularambiente você pode simplesmente substituí-lo por esta \multicolimnlinha e obter o que deseja.

Seu exemplo completo deve ficar assim depois de aplicar essas alterações:

\begin{table}[!ht] 
\centering 
\caption{Common Notation} 
\begin{tabular}{|l|l|l|} 
\hline 
{\bf Symbol} & {\bf Description} & {\bf Units} \\
\hline 
$\alpha$ & Thermal expansion coefficient & $^\circ$C$^{-1}$ \\
\hline 
$\kappa$ & Thermal diffusivity & m$^2$/s \\
\hline 
$\eta$ & Dynamic viscosity & Pa s \\
\hline 
$\nu$ & Kinematic viscosity & m$^2$/s \\
\hline 
$C_{p}$ & Specific Heat Capacity & J/kg$^\circ$C \\
\hline 
$\rho$ & Density & kg/m$^3$ \\
\hline 
T & Temperature & $^\circ$C \\
\hline 
k & Thermal conductivity & W/m$^\circ$C \\
\hline 
v & Velocity & m/yr \\
\hline 
$\Delta$T=T$h$-T$\infty$ & Temperature Difference & $^\circ$C \\
\hline 
$\eta$$^*$=$\eta$$h$-$\eta$$\infty$ & Viscosity Contrast & Pa s \\
\hline 
U & Speed & m/s \\ \hline 
y$_T$ & Thermal boundary layer & m \\
\hline 
l$_c$ & Plume height after about 2 hours & m \\
\hline 
$\tau$$_c$ & Diffusion time & s \\
\hline 
$\tau$ & Time the plume first emerges & s \\
\hline 
g & Gravitational acceleration & m/s$^2$ \\
\hline 
D & Plume Diameter & m \\
\hline 
H & Height of the tank & \\
\hline 
P & Pressure & Pa \\
\hline
\multicolumn{3}{|l|}{subscript} \\
\hline
h & Heater & \\ 
\hline 
$\infty$ & Ambient & \\ 
\hline 
b & Buoyancy & \\ 
\hline 
\end{tabular} 
\label{corn} 
\end{table}

informação relacionada