大家好,我有一张如下的表格,我想将其设置为页面宽度这里提前谢谢了。
\documentclass[11pt,authoryear,sort&compress]{report}
\usepackage{booktabs}
\usepackage{tabularx}
\usepackage{geometry}
\begin{document}
\begin{table}[!ht]
\centering
\footnotesize
\begin{tabularx}{1\textwidth}
{l
>{\raggedright\arraybackslash}p{3cm}
c
>{\raggedright\arraybackslash}p{7cm}
c
c
c
c}
\toprule
& Author(s) Name & Year & Title & TLC & TLC/t & TGC & TGC/t \\
\midrule
1 & Allen F; Demirguc-Kunt A; Klapper L; Peria Msm & 2016 & The Foundations Of Financial Inclusion: Understanding Ownership And Use Of Formal Accounts & 11 & 2.20 & 59 & 11.80 \\
2 & Aterido R; Beck T; Iacovone L & 2013 & Access To Finance In Sub-Saharan Africa: Is There A Gender Gap? & 16 & 2.00 & 54 & 6.75 \\
3 & Claessens S; Feijen E; Laeven L & 2008 & Political Connections And Preferential Access To Finance: The Role Of Campaign Contributions & 25 & 1.92 & 442 & 34.00 \\
\midrule
& Author(s) Name & Year & Title & TLC & TLC/t & TGC & TGC/t \\
\midrule
1 & Claessens S; Feijen E; Laeven L & 2008 & Political Connections And Preferential Access To Finance: The Role Of Campaign Contributions & 25 & 1.92 & 442 & 34.00 \\
2 & Firth M; Lin C; Liu P; Wong Sml & 2009 & Inside The Black Box: Bank Credit Allocation In China's Private Sector & 10 & 0.83 & 166 & 13.83 \\
3 & Cull R; Li W; Sun B; Xu Lc & 2015 & Government Connections And Financial Constraints: Evidence From A Large Representative Sample Of Chinese Firms & 4 & 0.67 & 83 & 13.83 \\
\bottomrule%
\end{tabularx}%
\caption{The most influential articles, sorted based on TLC/t and TGC/t, respectively.}
\label{tab:Most-Cited-Papers}
\end{table}
\end{document}
答案1
除了将其中一列类型从 更改为 之外p{7cm}
,X
您可能还想删除表格垂直边缘的空白边缘。我还建议您将数据列中的数字排版为使其(显式或隐式)小数点对齐。哦,请修复一些作者的名字和姓氏。
\documentclass[11pt,authoryear,sort&compress]{report}
\usepackage{booktabs}
\usepackage{tabularx} % for 'tabularx' env. and 'X' column type
\usepackage{ragged2e} % for '\RaggedRight' macro
\usepackage{siunitx} % for 'S' column type
\usepackage{geometry}
\newlength\mylen
\settowidth\mylen{Demirguc-Kunt A;}
\begin{document}
\begin{table}[!ht]
%\centering % <-- redundant
\small %\footnotesize
\begin{tabularx}{1\textwidth}{ @{}
l
>{\RaggedRight}p{\mylen}
c
>{\RaggedRight}X
S[table-format=2.0]
S[table-format=1.2]
S[table-format=3.0]
S[table-format=2.2] @{} }
\toprule
& Author Names & Year & Title & {TLC} & {TLC/t} & {TGC} & {TGC/t} \\
\midrule
1 & Allen F; Demirguc-Kunt A; Klapper L; Martinez-Peria M S & 2016
& The Foundations of Financial Inclusion: Understanding
Ownership and Use of Formal Accounts
& 11 & 2.20 & 59 & 11.80 \\
2 & Aterido R; Beck T; Iacovone L & 2013
& Access to Finance in Sub-Saharan Africa: Is there
a Gender Gap?
& 16 & 2.00 & 54 & 6.75 \\
3 & Claessens S; Feijen E; Laeven L & 2008
& Political Connections and Preferential Access to Finance:
The Role of Campaign Contributions
& 25 & 1.92 & 442 & 34.00 \\
\midrule
& Author Names & Year & Title & {TLC} & {TLC/t} & {TGC} & {TGC/t} \\
\midrule
1 & Claessens S; Feijen E; Laeven L & 2008
& Political Connections and Preferential Access to Finance:
The Role of Campaign Contributions
& 25 & 1.92 & 442 & 34.00 \\
2 & Firth M; Lin C; Liu P; Wong S M L & 2009
& Inside the Black Box: Bank Credit Allocation in China's
Private Sector
& 10 & 0.83 & 166 & 13.83 \\
3 & Cull R; Li W; Sun B; Xu L C & 2015 & Government Connections and
Financial Constraints: Evidence from a Large Representative
Sample of Chinese Firms
& 4 & 0.67 & 83 & 13.83 \\
\bottomrule
\end{tabularx}
\caption{The most influential articles, sorted based on
TLC/t and TGC/t, respectively.}
\label{tab:Most-Cited-Papers}
\end{table}
\end{document}