
Quiero hacer una tabla donde esté completamente cuadriculada aparte del subíndice de línea donde quiero tener solo líneas arriba y abajo, pero ninguna otra línea.
Estoy probando este código pero no me da lo que quiero.
\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}
Cualquier ayuda sería muy apreciada. ¡Muchas gracias!
Respuesta1
Lo que quieres se 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}
te da una tabla como esta:
Como puede ver, el primero {}
determina cuántas columnas se deben juntar. El segundo {}
representa el formato de esas celdas y el tercero el contenido real.
En lugar de utilizar un tabular
entorno nuevo, simplemente puede reemplazarlo con esta \multicolimn
línea y obtener lo que desea.
Su ejemplo completo debería verse así después de aplicar esos cambios:
\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}