
Estou tentando preencher uma tabela com equações, mas algumas equações são tão longas que a tabela fica completamente cortada no lado direito. Comecei a trabalhar com látex ontem, então meu conhecimento é mínimo neste momento. Alguém tem uma sugestão de como consertar isso? Suponho que não é ideal apenas deixar a fonte super pequena, nem quero realmente dividir a tabela, a menos que seja totalmente necessário.
Aqui está o que tenho para a mesa até agora:
\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}
É apenas a última equação que está sendo cortada, pois é muito longa.
Eu apreciaria qualquer feedback ou links para perguntas semelhantes. Obrigado!
Responder1
Você pode ter uma solução trocando linhas e colunas e carregando makecell
quebras de linha nas células. Aqui está um layout possível. Além disso, carreguei siunitx
para formatar de forma coerente as unidades (não padronizadas) desta tabela e mhchem
para ter um código mais simples para fórmulas químicas.
\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}