列区切りのない表に行を配置し、表の残りの部分に区切りをつける方法

列区切りのない表に行を配置し、表の残りの部分に区切りをつける方法

上と下に線だけがあり、他の線がない、線の下付き文字を除いて完全にグリッド化された表を作成したいと考えています。

このコードを試していますが、必要なものは得られません。

\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}

ご協力いただければ幸いです。どうぞよろしくお願いいたします。

答え1

あなたが望むものはこんな感じです\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}

次のような表が表示されます。

ここに画像の説明を入力してください

ご覧のとおり、最初の要素{}は、いくつの列をまとめるかを決定します。2 番目は{}それらのセルの形式を表し、3 番目は実際のコンテンツを表します。

新しい環境を使用する代わりに、tabularこの行に置き換えるだけで\multicolimn、必要なものを取得できます。

これらの変更を適用すると、完全な例は次のようになります。

\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}

関連情報