我的例子是:
\documentclass[12pt]{article}
\usepackage[margin=1in]{geometry}
\usepackage{tabulary}
\setlength{\tymin}{0.08\textwidth}
\setlength\extrarowheight{2pt}
\makeatletter
\def\z#14#2!!{\def\TY@classz{#17#2}}
\expandafter\z\TY@classz!!
\makeatother
\begin{document}
\begin{tabulary}{\textwidth}{p{9em}RRRRRRR}
\hline
& Ribeir\~{a}o Preto-Paul\'{i}nia & Uberaba-Ribeir\~{a}o Preto
& Itumbiara-Uberaba & Quirin\'{o}polis-Itumbiara
& Jata\'{i}- Quirin\'{o}polis & Anhembi-Paul\'{i}nia & Total \\
\hline
NPV (US\$ million)
& 230
& 281
& 49.9
& -133
& -69.1
& 134
& 492 \\%$
Construction Emissions (million Mg CO${}_2$eq)
& 0.069
& 0.035
& 0.053
& 0.023
& 0.016
& 0.011
& 0.21 \\%$
Annual Net Avoided Operating Emissions (million Mg CO${}_2$eq)\textsuperscript{a}
& 0.27
& 0.14
& 0.17
& 0.03
& 0.016
& 0.043
& 0.67 \\%$
Cumulative Avoided GHG Emissions (million Mg CO${}_2$eq)\textsuperscript{b}
& 7.94
& 4.07
& 5.12
& 0.866
& 0.474
& 1.29
& 19.8 \\
NPV of Cumulative Avoided Emissions (US\$ million)\textsuperscript{c}
& 248
& 127
& 160
& 27
& 14.7
& 40.1
& 617 \\%$
\hline
\end{tabulary}
\end{document}
结果如下:
第二列周围有空白,最后五列的内容重叠。有什么办法可以解决这个问题吗?非常感谢。
答案1
我只是tabular
在这里使用;
\documentclass[12pt]{article}
\usepackage[margin=1in]{geometry}
\usepackage{tabulary}
\setlength{\tymin}{0.08\textwidth}
\setlength\extrarowheight{2pt}
\setlength\tabcolsep{2pt}
\newcommand\hd[1]{\begin{tabular}[t]{@{}c@{}}#1\end{tabular}}
\begin{document}
\noindent
\begin{tabular}{@{}>{\raggedright}p{9em}rrrrrrr@{}}
\hline
& \hd{Ribeir\~{a}o\\Preto-\\Paul\'{i}nia}&
\hd{Uberaba-\\Ribeir\~{a}o\\ Preto}&
\hd{Itumbiara-\\Uberaba} &
\hd{Quirin\'{o}polis-\\Itumbiara}&
\hd{Jata\'{i}-\\Quirin\'{o}-\\polis}&
\hd{Anhembi-\\Paul\'{i}nia}&
\hd{Total}\\
\hline
NPV (US\$ million)
& 230
& 281
& 49.9
& -133
& -69.1
& 134
& 492 \\%$
Construction Emissions (million Mg CO${}_2$eq)
& 0.069
& 0.035
& 0.053
& 0.023
& 0.016
& 0.011
& 0.21 \\%$
Annual Net Avoided Operating Emissions (million Mg CO${}_2$eq)\textsuperscript{a}
& 0.27
& 0.14
& 0.17
& 0.03
& 0.016
& 0.043
& 0.67 \\%$
Cumulative Avoided GHG Emissions (million Mg CO${}_2$eq)\textsuperscript{b}
& 7.94
& 4.07
& 5.12
& 0.866
& 0.474
& 1.29
& 19.8 \\
NPV of Cumulative Avoided Emissions (US\$ million)\textsuperscript{c}
& 248
& 127
& 160
& 27
& 14.7
& 40.1
& 617 \\%$
\hline
\end{tabular}
\end{document}
如果这是我的表格,我也会尝试缩短第一列的标签,但由于不知道主题领域,所以我没有尝试在这里缩写它们。