
我正在嘗試用方程式填充表格,但有些方程式太長,以至於表格在右側完全被切斷。我昨天才開始使用乳膠,所以目前我的知識還很少。有人對如何解決這個問題有建議嗎?我猜想僅僅使字體變得超小並不理想,除非完全有必要,否則我也不想拆分錶格。
這是我到目前為止所擁有的表格:
\begin{table}[h!]
\centering
\begin{tabular}{c|c|c|c|c|c|c}
Time & $F_{in}$ & $F_{out}$ & k$_w$ & M & CO$_2$ & CO$_2$ \\
(kyr) & (Gton kyr$^{-1}$) & (Gton kyr$^{-1}$) & (kyr$^{-1}$) & (Gton)&
(Gton) & (ppmv)\\\hline65,000 & 100&0.1 & 0.1176 & $1.3043\times 10^{8}$& 596 & 280\\ & & & & & &\\\hline
sort(($0:25:65000$)','descend') &$
F_{in}\times ones(\frac{t1-t2+25}{25},1)$ &$K\times elevation$ &
\tfrac{F_{in}}{Elevation}$ & $SA \times elevation$ & $\left ( M(t) \div
M(0)))\right )^{2}\times pCO_{2}(0)) \ast 10^{-6} (\frac{12}
{.78(28)+.21(32)+.01(40)})\ast 5.14\ast 10^{21}g\ast \frac{1Gton}
{10^{15}g} $&\\& & & & & &\\
\end{tabular}
\label{tab:boxmodel}
\end{table}
只有最後一個方程式被截斷,因為它太長了。
如果您有任何反饋或類似問題的鏈接,我將不勝感激。謝謝!
答案1
您可以有一個解決方案,交換行和列並載入makecell
儲存格中的換行符。這是一個可能的佈局。此外,我還加載了siunitx
該表中的(非標準)單位的格式,並mhchem
為化學式提供了更簡單的程式碼。
\documentclass[a4paper]{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[showframe]{geometry}
\usepackage{array, tabularx, makecell, boldline}
\renewcommand\cellalign{tc}
\usepackage{siunitx}
\usepackage[version=4]{mhchem}
\DeclareSIUnit\ton{ton}
\DeclareSIUnit\Gton{\giga\ton}
\DeclareSIUnit\ppmv{ppmv}
\DeclareSIUnit\yr{{yr}}
\DeclareSIUnit\kyr{{\kilo\yr}}
\begin{document}
\begin{table}[h!]
\centering%
\setlength\tabcolsep{4pt}
\setcellgapes{1.5ex}\makegapedcells
\begin{tabularx}{\linewidth}{V{2.5}c V{2.5}c|X V{2.5}}
\Xhline{1pt}
\makecell{Time \\(\si{\kyr})} & 65,000 & sort(($0:25:65000$)','descend') \\
\hline
\makecell{ $F_\text{in}$ \\ (\si{\Gton\per\kyr})}& 100 & $ F_\text{in}\times ones\Bigl(\dfrac{t1-t2+25}{25},1\Bigr)$\\
\hline
\makecell{$F_\text{out}$ \\ (\si{\Gton\per\kyr})}& 0.1 & $ K\times \text{elevation} $ \\
\hline
\makecell{ k\textsubscript{w} \\ (\si{\per\kyr})}& 0.1176 & $ \dfrac{F_\text{in}}{\text{Elevation}}$ \\
\hline
\makecell{M \\ (\si{\Gton})}& \num{1.3043E8} & $ SA \times \text{elevation}$ \\
\hline
\makecell[tc]{\ce{CO2} \\ (\si\Gton)}& 596 & $\begin{aligned}[t]
& \bigl(M(t)\div M(0)\bigr)^{2}\times p_{\ce{CO2}}(0) \ast 10^{-6} \Bigl(\dfrac{12}{.78(28)+.21(32)+.01(40)}\Bigr)\\& \ast 5.14\ast \num{1E21}g\ast \dfrac{\SI{1}{\Gton}} {\num{1E15}g}
\end{aligned} $ \\
\hline
\makecell{\ce{CO2} \\ (\si{\ppmv})}& 280 & \\
\Xhline{1pt}
\end{tabularx}
\label{tab:boxmodel}
\end{table}
\end{document}