
Ich möchte eine Tabelle erstellen, die bis auf den Zeilenindex vollständig gerastert ist. Ich möchte darüber und darunter nur Zeilen, aber keine anderen Zeilen haben.
Ich versuche diesen Code, aber er gibt mir nicht, was ich will.
\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}
Für jede Hilfe wäre ich sehr dankbar. Vielen Dank!
Antwort1
Wie Sie aussehen möchten\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}
gibt Ihnen eine Tabelle wie diese:
Wie man sieht, {}
bestimmt die erste Zahl, wie viele Spalten zusammengefasst werden sollen. Die zweite Zahl {}
steht für das Format der Zellen und die dritte für den eigentlichen Inhalt.
Anstatt eine neue tabular
Umgebung zu verwenden, können Sie sie einfach durch diese \multicolimn
Zeile ersetzen und erhalten, was Sie möchten.
Ihr vollständiges Beispiel sollte nach dem Anwenden dieser Änderungen folgendermaßen aussehen:
\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}