![以视觉吸引力的方式适应大桌子?(文学评论风格)](https://linux22.com/image/461235/%E4%BB%A5%E8%A7%86%E8%A7%89%E5%90%B8%E5%BC%95%E5%8A%9B%E7%9A%84%E6%96%B9%E5%BC%8F%E9%80%82%E5%BA%94%E5%A4%A7%E6%A1%8C%E5%AD%90%EF%BC%9F%EF%BC%88%E6%96%87%E5%AD%A6%E8%AF%84%E8%AE%BA%E9%A3%8E%E6%A0%BC%EF%BC%89.png)
我正在尝试适应“大”(即从宽度我在我的页面上添加了一个“调整框”表格。我发现“调整框”命令对于将大型表格居中非常有用:
\begin{adjustbox}{center}
\scalebox{0.55}{
\begin{tabular}{@{}lllllll@{}}
\toprule
No. & Source & Target countries & Model & Specificities & Estimated damage & Data \\ \midrule
1 & \begin{tabular}[c]{@{}l@{}}Bonfour, et al. (2018)\\ Macro estimates of \\ intangibles cyber-risks\end{tabular} & US, UK & DIIM Model & \begin{tabular}[c]{@{}l@{}}Cyber attack targeted\\ towards financial services\\ and IT sector \\ \\ Additionally estimates intangible\\ costs through econometric methods\end{tabular} & \begin{tabular}[c]{@{}l@{}}Direct US: $129 BN - $144 BN \\ \\ Direct UK: $28 BN - $58 BN\end{tabular} & \begin{tabular}[c]{@{}l@{}}OECD data, \\ Compustat data\end{tabular} \\
2 & \begin{tabular}[c]{@{}l@{}}RAND Cooperation \\ (2018) Estimating the \\ Global Cost of Cyber Risk: \\ Methodology and Examples\end{tabular} & 63 Countries & Leontief I-O Model & \begin{tabular}[c]{@{}l@{}}I-O model to estimate systemic costs\\ \\ Econometric techniques and expert \\ judgement to estimate exposure at risk\end{tabular} & \$799 BN & \begin{tabular}[c]{@{}l@{}}OECD data, \\ Financial data\end{tabular} \\
3 & \begin{tabular}[c]{@{}l@{}}Eling, et al. (2022) \\ The Economic Impact of\\ Extreme Cyber Risk Scenarios\end{tabular} & US & DIIM Model & \begin{tabular}[c]{@{}l@{}}Transparent taxonomy of six cyber \\ attack scenarios \\ \\ Targeted sectors dependend on type of\\ attack\end{tabular} & $0.7 BN - $35 BN & OECD data \\ \bottomrule
\end{tabular}}
\end{adjustbox}
这使得它看起来像这样:
尽管如此,从整个页面来看,表格的放置位置看起来有点奇怪。我尝试了 \scalebox{0.55},发现 0.55 是最佳折衷值,既不会太小,又能与标题下方保持一定的对称性。
我只是在想:有没有更好的方法来放置这个表格?可能是使用稍大一点的字体,因为与正文相比,它真的很小。最重要的是,它看起来不太美观。
谢谢你的帮助!
答案1
我建议您使用一个tabularx
环境并允许在表格的 7 列中的 6 列中自动换行。
\documentclass{article} % or some other suitable document class
\usepackage[letterpaper,margin=1in]{geometry}
\usepackage{booktabs,tabularx,ragged2e}
\newcolumntype{L}[1]{>{\RaggedRight\hsize=#1\hsize\hspace{0pt}}X}
\begin{document}
\noindent
% 1.15+0.65+0.55+1.7+1.05+0.9 = 6 = # of L columns
\begin{tabularx}{\textwidth}{@{} l L{1.15} L{0.65} L{0.55} L{1.7} L{1.05} L{0.9} @{}}
\toprule
No. & Source & Target countries & Model & Specificities & Estimated damage & Data \\
\midrule
1
& Bonfour et al.\ (2018). Macro estimates of intangible cyber-risks
& US, UK
& DIIM
& Cyber attack targeted towards financial services and IT sector. Additionally estimates intangible costs through econometric methods
& Direct US: \$129--\$144 bn. Direct~UK: \$28--\$58 bn
& OECD data, Compustat data \\
\addlinespace
2
& RAND Corporation (2018). Estimating the global cost of cyber risk: Methodology and examples
& 63 countries
& Leontief I-O
& I-O model to estimate systemic costs. Econometric techniques and expert judgement to estimate exposure at risk
& \$799 bn
& OECD data, Financial data \\
\addlinespace
3
& Eling et al.\ (2022). The economic impact of extreme cyber risk scenarios
& US
& DIIM
& Transparent taxonomy of six cyber attack scenarios. Targeted sectors dependend on type of attack
& \$0.7--\$35 bn
& OECD data \\
\bottomrule
\end{tabularx}
\end{document}
答案2
Mico 答案的另一种替代方法。使用tabularray
包。A[-3]
例如,此处表示此特定列与最后一列(类型为A
)的宽度比最多为 3。有关更多详细信息,请参阅tabularray
(以及tabu
)包的文档。
\documentclass{article}
\usepackage[letterpaper,margin=1in]{geometry}
\usepackage{tabularray}
\UseTblrLibrary{booktabs}
\begin{document}
\noindent
\NewColumnType{A}[1][]{Q[l,t,co=1,#1]}
\begin{tblr}{%
colspec={l A[-3] A[-1.5] A[-1.5] A[-3.5] A[-1.75] A},
row{1}={valign=m},
}
\toprule
No. & Source & Target countries & Model & Specificities & Estimated damage & Data \\
\midrule
1
& Bonfour et al.\ (2018). Macro estimates of intangible cyber-risks
& US, UK
& DIIM
& Cyber attack targeted towards financial services and IT sector. Additionally estimates intangible costs through econometric methods
& Direct US: \$129--\$144 bn. Direct~UK: \$28--\$58 bn
& OECD data, Compustat data \\
\addlinespace
2
& RAND Corporation (2018). Estimating the global cost of cyber risk: Methodology and examples
& 63 countries
& Leontief I-O
& I-O model to estimate systemic costs. Econometric techniques and expert judgement to estimate exposure at risk
& \$799 bn
& OECD data, Financial data \\
\addlinespace
3
& Eling et al.\ (2022). The economic impact of extreme cyber risk scenarios
& US
& DIIM
& Transparent taxonomy of six cyber attack scenarios. Targeted sectors dependend on type of attack
& \$0.7--\$35 bn
& OECD data \\
\bottomrule
\end{tblr}
\end{document}