
나는 위와 아래에 줄만 있고 다른 줄은 갖고 싶지 않은 줄 아래 첨자와는 별도로 완전히 격자로 표시되는 테이블을 만들고 싶습니다.
이 코드를 시도하고 있지만 내가 원하는 것을 제공하지 않습니다.
\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}
다음과 같은 테이블을 제공합니다.
보시다시피 첫 번째 항목은 {}
몇 개의 열을 함께 넣어야 하는지를 결정합니다. 두 번째는 {}
해당 셀의 형식을 나타내고 세 번째는 실제 내용을 나타냅니다.
새로운 환경을 사용하는 대신 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}