以视觉吸引力的方式适应大桌子?(文学评论风格)

以视觉吸引力的方式适应大桌子?(文学评论风格)

我正在尝试适应“大”(即从宽度我在我的页面上添加了一个“调整框”表格。我发现“调整框”命令对于将大型表格居中非常有用:

\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}

在此处输入图片描述

相关内容