使表格适合特定页面

使表格适合特定页面

我已经开始为我的论文编写附录,我想包含的第一个附录使用了该begin{sidewaystable}命令。但是,由于表格的大小,它不适合与附录标题放在同一页上,如下所示:

\documentclass[11pt]{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{amsmath,amsfonts,amssymb}
\usepackage{booktabs}
\usepackage{dcolumn}
\usepackage{mathtools}
\usepackage{graphicx}
\usepackage[utf8]{inputenc}
\usepackage{rotating}
\usepackage{adjustbox}
\usepackage{tabularx}
\usepackage{titlesec}
\usepackage[margin=1in, left=1.5in, includefoot]{geometry}
\usepackage{setspace}
\onehalfspacing
\usepackage{float}
\usepackage{here}
\usepackage{siunitx}                        % added
\usepackage{threeparttable}   
 \newcommand\mc[1]{\multicolumn{1}{c}{#1}}    
 \titleformat*{\subsection}{\normalfont\large\itshape}
\makeatletter
\renewcommand\footnoterule{
 \kern-3\p@
 \hrule\@width \textwidth
\kern2.6\p@}
\makeatother
\usepackage{fancyhdr}
\pagestyle{fancy}
\fancyhead{}
\fancyfoot{}
\fancyfoot[R]{ \thepage\ }
\renewcommand{\headrulewidth}{0pt}
\renewcommand{\footrulewidth}{0pt}
\usepackage{rotating}
\begin{document}
\appendix
\section{Appendix}\label{Appendix}
\newgeometry{ top=0.6cm, bottom=0.6cm, right=0.5cm, left=0.5cm}
\begin{centering}
\begin{sidewaystable}
\makebox[\textwidth]{%
\begin{tabular}{rrccccccccr}
\multicolumn{1}{l}{Country} &       & \multicolumn{2}{c}{Income Group} & Income Group 2005 & Income Group 2009 & CPI 2002 & CPI 2005 & CPI 2009 & EU Member & \multicolumn{1}{c}{Frequency} \\
\midrule
      &       & \multicolumn{2}{c}{} &       &       &       &       &       &       &  \\
\multicolumn{1}{l}{Albania} &       & \multicolumn{2}{c}{Low-Middle} & Low-Middle & Upper-Middle & 2.5   & 2.4   & 3.2   &       & 732 \\
\multicolumn{1}{l}{Belarus} &       & \multicolumn{2}{c}{Low-Middle} & Low-Middle & Upper-Middle & 4.8   & 2.6   & 2.4   &       & 848 \\
\multicolumn{1}{l}{Georgia} &       & \multicolumn{2}{c}{Low } & Low-Middle & Low-Middle & 2.4   & 2.3   & 4.1   &       & 747 \\
\multicolumn{1}{l}{Tajikistan} &       & \multicolumn{2}{c}{Low } & Low   & Low   &       & 2.1   & 2.0   &       & 733 \\
\multicolumn{1}{l}{Ukraine} &       & \multicolumn{2}{c}{Low-Middle} & Low-Middle & Low-Middle & 2.4   & 2.6   & 2.2   &       & 1908 \\
\multicolumn{1}{l}{Uzbekhistan} &       & \multicolumn{2}{c}{Low } & Low   & Low-Middle & 2.9   & 2.2   & 1.7   &       & 926 \\
\multicolumn{1}{l}{Russia} &       & \multicolumn{2}{c}{Low-Middle} & Upper-Middle & Upper-Middle & 2.7   & 2.4   & 2.2   &       & 2111 \\
\multicolumn{1}{l}{Poland} &       & \multicolumn{2}{c}{Upper-Middle} & Upper-Middle & High  & 4.0   & 3.4   & 5.0   & Yes   & 1928 \\
\multicolumn{1}{l}{Romania} &       & \multicolumn{2}{c}{Low-Middle} & Upper-Middle & Upper-Middle & 2.6   & 3.0   & 3.8   & Yes   & 1396 \\
\multicolumn{1}{l}{Serbia} &       & \multicolumn{2}{c}{-} & -     & Upper-Middle &       & 2.8   & 3.5   &       & 901 \\
\multicolumn{1}{l}{Kazakstan } &       & \multicolumn{2}{c}{Low-Middle} & Low-Middle & Upper-Middle & 2.3   & 2.6   & 2.7   &       & 1379 \\
\multicolumn{1}{l}{Moldova} &       & \multicolumn{2}{c}{Low} & Low-Middle & Low-Middle & 2.1   & 2.9   & 3.3   &       & 887 \\
\multicolumn{1}{l}{Bosnia \& Herzegovina} &       & \multicolumn{2}{c}{Low-Middle} & Low-Middle & Upper-Middle &       & 2.9   & 3.0   &       & 743 \\
\multicolumn{1}{l}{Azerbaijan} &       & \multicolumn{2}{c}{Low} & Low-Middle & Upper-Middle & 2     & 2.2   & 2.3   &       & 900 \\
\multicolumn{1}{l}{Macedonia (FYROM)} &       & \multicolumn{2}{c}{Low-Middle} & Low-Middle & Upper-Middle &       & 2.7   & 3.8   &       & 736 \\
\multicolumn{1}{l}{Armenia} &       & \multicolumn{2}{c}{Low-Middle} & Low-Middle & Low-Middle &       & 2.9   & 2.7   &       & 896 \\
\multicolumn{1}{l}{Kyrgyzstan } &       & \multicolumn{2}{c}{Low} & Low   & Low   &       & 2.3   & 1.9   &       & 610 \\
\multicolumn{1}{l}{Estonia} &       & \multicolumn{2}{c}{Upper-Middle} & Upper-Middle & High  & 5.6   & 6.4   & 6.6   & Yes   & 662 \\
\multicolumn{1}{l}{Czech Republic} &       & \multicolumn{2}{c}{Upper-Middle} & Upper-Middle & High  & 3.7   & 4.3   & 4.9   & Yes   & 859 \\
\multicolumn{1}{l}{Hungary} &       & \multicolumn{2}{c}{Upper-Middle} & Upper-Middle & High  & 4.9   & 5.0   & 5.1   & Yes   & 1151 \\
\multicolumn{1}{l}{Lativa} &       & \multicolumn{2}{c}{Upper-Middle} & Upper-Middle & High  & 3.7   & 4.2   & 4.5   & Yes   & 651 \\
\multicolumn{1}{l}{Lithuania} &       & \multicolumn{2}{c}{Upper-Middle} & Upper-Middle & Upper-Middle & 4.8   & 4.8   & 4.9   & Yes   & 681 \\
\multicolumn{1}{l}{Slovakia} &       & \multicolumn{2}{c}{Upper-Middle} & Upper-Middle & High  & 3.7   & 4.3   & 4.5   & Yes   & 665 \\
\multicolumn{1}{l}{Slovenia} &       & \multicolumn{2}{c}{High} & High  & High  & 6.0   & 6.1   & 6.6   & Yes   & 687 \\
\multicolumn{1}{l}{Bulgaria} &       & \multicolumn{2}{c}{Low-Middle} & Low-Middle & Upper-Middle & 4.0   & 4     & 3.8   & Yes   & 1853 \\
\multicolumn{1}{l}{Croatia} &       & \multicolumn{2}{c}{Upper-Middle} & Upper-Middle & High  & 3.8   & 3.4   & 4.1   & Yes   & 1160 \\
\multicolumn{1}{l}{Montenegro} &       & \multicolumn{2}{c}{-} & -     & Upper-Middle &       & 2.8   & 3.9   &       & 153 \\
\midrule
      &       & \multicolumn{2}{c}{} &       &       &       &       &       & Total & 26903 \\
 \bottomrule
\end{tabular}}%
\caption{Countries in Sample}
\end{sidewaystable}
\label{tab:addlabel}%
\end{centering}
\end{document}

我尝试使用重新定义边距newgeometry,但这没有帮助,并且丢失了文档其余部分使用的格式。任何帮助都将不胜感激 - 提前致谢。

在此处输入图片描述

在此处输入图片描述

答案1

这是另一个解决方案。它专注于真正组织和分组标题行中的材料,以便读者更容易弄清楚数字的含义。(顺便说一句,我认为标题“CPI”太简洁,实际上容易引起误解;最好使用“CPI 通货膨胀”,对吗?)

在此处输入图片描述

\documentclass[11pt]{article}
% I've reduced the preamble to the bare minimum
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{booktabs,caption,siunitx,rotating}
\usepackage[margin={1in},{left=1.1in},includefoot,letterpaper]{geometry}
\begin{document}

\appendix
\section{Appendix}

\begin{table}[!ht]
\centering
\begin{sideways}
\small
\begin{minipage}{0.85\textheight}
\begin{tabular}{@{} l *{3}{c}
                *{3}{S[table-format=1.1]} 
                c S[table-format=5.0]
                @{}}
\toprule
Country & \multicolumn{3}{c}{Income Group}  
& \multicolumn{3}{c}{CPI Inflation}
& \smash{\begin{tabular}[t]{@{}c@{}}EU\\Member\end{tabular}}  & {Freq.}\\
\cmidrule(lr){2-4} \cmidrule(lr){5-7}
& 2002 & 2005 & 2009 & {2002} & {2005} & {2009} & \\
\midrule
Albania     & Low-Middle    & Low-Middle    & Upper-Middle  & 2.5   & 2.4   & 3.2   &       & 732  \\
Belarus     & Low-Middle    & Low-Middle    & Upper-Middle  & 4.8   & 2.6   & 2.4   &       & 848  \\
Georgia     & Low           & Low-Middle    & Low-Middle    & 2.4   & 2.3   & 4.1   &       & 747  \\
Tajikistan  & Low           & Low           & Low           &       & 2.1   & 2.0   &       & 733  \\
Ukraine     & Low-Middle    & Low-Middle    & Low-Middle    & 2.4   & 2.6   & 2.2   &       & 1908 \\
Uzbekhistan & Low           & Low           & Low-Middle    & 2.9   & 2.2   & 1.7   &       & 926  \\
Russia      & Low-Middle    & Upper-Middle  & Upper-Middle  & 2.7   & 2.4   & 2.2   &       & 2111 \\
Poland      & Upper-Middle  & Upper-Middle  & High          & 4.0   & 3.4   & 5.0   & Yes   & 1928 \\
Romania     & Low-Middle    & Upper-Middle  & Upper-Middle  & 2.6   & 3.0   & 3.8   & Yes   & 1396 \\
Serbia      &               & -             & Upper-Middle  &       & 2.8   & 3.5   &       & 901  \\
Kazakstan   & Low-Middle    & Low-Middle    & Upper-Middle  & 2.3   & 2.6   & 2.7   &       & 1379 \\
Moldova     & Low           & Low-Middle    & Low-Middle    & 2.1   & 2.9   & 3.3   &       & 887  \\
Bosnia \& Herzegovina
            & Low-Middle    & Low-Middle    & Upper-Middle  &       & 2.9   & 3.0   &       & 743  \\
Azerbaijan  & Low           & Low-Middle    & Upper-Middle  & 2     & 2.2   & 2.3   &       & 900  \\
Macedonia (FYROM)
            & Low-Middle    & Low-Middle    & Upper-Middle  &       & 2.7   & 3.8   &       & 736  \\
Armenia     & Low-Middle    & Low-Middle    & Low-Middle    &       & 2.9   & 2.7   &       & 896  \\
Kyrgyzstan  & Low           & Low           & Low           &       & 2.3   & 1.9   &       & 610  \\
Estonia     & Upper-Middle  & Upper-Middle  & High          & 5.6   & 6.4   & 6.6   & Yes   & 662  \\
Czech Republic
            & Upper-Middle  & Upper-Middle  & High          & 3.7   & 4.3   & 4.9   & Yes   & 859  \\
Hungary     & Upper-Middle  & Upper-Middle  & High          & 4.9   & 5.0   & 5.1   & Yes   & 1151 \\
Lativa      & Upper-Middle  & Upper-Middle  & High          & 3.7   & 4.2   & 4.5   & Yes   & 651  \\
Lithuania   & Upper-Middle  & Upper-Middle  & Upper-Middle  & 4.8   & 4.8   & 4.9   & Yes   & 681  \\
Slovakia    & Upper-Middle  & Upper-Middle  & High          & 3.7   & 4.3   & 4.5   & Yes   & 665  \\
Slovenia    & High          & High          & High          & 6.0   & 6.1   & 6.6   & Yes   & 687  \\
Bulgaria    & Low-Middle    & Low-Middle    & Upper-Middle  & 4.0   & 4     & 3.8   & Yes   & 1853 \\
Croatia     & Upper-Middle  & Upper-Middle  & High          & 3.8   & 3.4   & 4.1   & Yes   & 1160 \\
Montenegro  & --            & --            & Upper-Middle  &       & 2.8   & 3.9   &       & 153  \\
\cmidrule(l){9-9}
\multicolumn{8}{r@{}}{Total:} & 26903 \\
\bottomrule
\end{tabular}
\caption{Countries in Sample}
\end{minipage}
\end{sideways}
\end{table}
    \label{tab:addlabel}%
\end{document}

答案2

我提出了两种解决方案,基于adjustboxmakecell,而不必使用newgeometry,它会自动创建一个新页面:

\documentclass[11pt]{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{amsmath,amsfonts,amssymb}
\usepackage{booktabs}
\usepackage{dcolumn}
\usepackage{mathtools}
\usepackage{graphicx}
\usepackage{rotating}
\usepackage{adjustbox}
\usepackage{tabularx}
\usepackage{caption}
\usepackage{titlesec}
\usepackage[margin=1in, left=1.5in, includefoot]{geometry}
\usepackage{setspace}
\onehalfspacing
\usepackage{float, makecell}
\usepackage{caption}
\usepackage{siunitx} % added
\usepackage{threeparttable}
 \newcommand\mc[1]{\multicolumn{1}{c}{#1}}
 \titleformat*{\subsection}{\normalfont\large\itshape}
\makeatletter
\renewcommand\footnoterule{
 \kern-3\p@
 \hrule\@width \textwidth
\kern2.6\p@}
\makeatother
\usepackage{fancyhdr}
\pagestyle{fancy}
\fancyhead{}
\fancyfoot{}
\fancyfoot[R]{ \thepage\ }
\renewcommand{\headrulewidth}{0pt}
\renewcommand{\footrulewidth}{0pt}
\begin{document}

\appendix

\section{Appendix}\label{Appendix}

\adjustbox{rotate=-90, scale={-1}{-1}, center}
{%
\setlength{\tabcolsep}{5pt}%
\renewcommand\theadfont{\normalsize}
\renewcommand\theadalign{bc}
\parbox{\textheight}{\centering
\begin{tabular}{l@{\qquad}*{7}{c}@{\qquad}S[table-format=5.0]}
Country & Income Group &\thead{ Income Group\\ 2005} & \thead{Income Group\\ 2009} & \thead{CPI\\ 2002} & \thead{CPI\\ 2005} &\thead{ CPI\\ 2009} & \thead{EU\\ Member} & {Frequency} \\
\midrule
\addlinespace
Albania & Low-Middle & Low-Middle & Upper-Middle & 2.5 & 2.4 & 3.2 & & 732 \\
Belarus & Low-Middle & Low-Middle & Upper-Middle & 4.8 & 2.6 & 2.4 & & 848 \\
Georgia & Low & Low-Middle & Low-Middle & 2.4 & 2.3 & 4.1 & & 747 \\
Tajikistan & Low & Low & Low & 2.1 & 2.0 & & & 733 \\
Ukraine & Low-Middle & Low-Middle & Low-Middle & 2.4 & 2.6 & 2.2 & & 1908 \\
Uzbekhistan & Low & Low & Low-Middle & 2.9 & 2.2 & 1.7 & & 926 \\
Russia & Low-Middle & Upper-Middle & Upper-Middle & 2.7 & 2.4 & 2.2 & & 2111 \\
Poland & Upper-Middle & Upper-Middle & High & 4.0 & 3.4 & 5.0 & Yes & 1928 \\
Romania & Low-Middle & Upper-Middle & Upper-Middle & 2.6 & 3.0 & 3.8 & Yes & 1396 \\
Serbia & — & — & Upper-Middle & & 2.8 & 3.5 & & 901 \\
Kazakstan & Low-Middle & Low-Middle & Upper-Middle & 2.3 & 2.6 & 2.7 & & 1379 \\
Moldova & Low & Low-Middle & Low-Middle & 2.1 & 2.9 & 3.3 & & 887 \\
Bosnia \& Herzegovina & Low-Middle & Low-Middle & Upper-Middle & & 2.9 & 3.0 & & 743 \\
Azerbaijan & Low & Low-Middle & Upper-Middle & 2 & 2.2 & 2.3 & & 900 \\
Macedonia (FYROM) & Low-Middle & Low-Middle & Upper-Middle & & 2.7 & 3.8 & & 736 \\
Armenia & Low-Middle & Low-Middle & Low-Middle & & 2.9 & 2.7 & & 896 \\
Kyrgyzstan & Low & Low & Low & & 2.3 & 1.9 & & 610 \\
Estonia & Upper-Middle & Upper-Middle & High & 5.6 & 6.4 & 6.6 & Yes & 662 \\
Czech Republic & Upper-Middle & Upper-Middle & High & 3.7 & 4.3 & 4.9 & Yes & 859 \\
Hungary & Upper-Middle & Upper-Middle & High & 4.9 & 5.0 & 5.1 & Yes & 1151 \\
Lativa & Upper-Middle & Upper-Middle & High & 3.7 & 4.2 & 4.5 & Yes & 651 \\
Lithuania & Upper-Middle & Upper-Middle & Upper-Middle & 4.8 & 4.8 & 4.9 & Yes & 681 \\
Slovakia & Upper-Middle & Upper-Middle & High & 3.7 & 4.3 & 4.5 & Yes & 665 \\
Slovenia & High & High & High & 6.0 & 6.1 & 6.6 & Yes & 687 \\
Bulgaria & Low-Middle & Low-Middle & Upper-Middle & 4.0 & 4 & 3.8 & Yes & 1853 \\
Croatia & Upper-Middle & Upper-Middle & High & 3.8 & 3.4 & 4.1 & Yes & 1160 \\
Montenegro & — & — & Upper-Middle & & 2.8 & 3.9 & & 153 \\
\midrule
      & & & & & & & Total & 26903 \\
 \bottomrule
\end{tabular}%
\captionof{table}{Countries in Sample}\label{tab:addlabel}}
}%

%%
\section{Appendix}\label{AppendixB}
\centering
\begin{minipage}{\linewidth}%
\adjustbox{rotate = -90, scale={-1}{-1}, center}{%
\setlength{\tabcolsep}{5pt}\small%
\renewcommand\theadfont{\small}
\renewcommand\theadalign{bc}
\begin{tabular}{l@{\qquad}*{7}{c}@{\qquad}S[table-format=5.0]}
Country & Income Group & \thead{Income Group\\ 2005} & \thead{Income Group\\ 2009} & \thead{CPI \\ 2002} & \thead{CPI\\ 2005} &\thead{CPI\\ 2009} & \thead{EU\\ Member} & {Frequency} \\
\midrule
\addlinespace
Albania & Low-Middle & Low-Middle & Upper-Middle & 2.5 & 2.4 & 3.2 & & 732 \\
Belarus & Low-Middle & Low-Middle & Upper-Middle & 4.8 & 2.6 & 2.4 & & 848 \\
Georgia & Low & Low-Middle & Low-Middle & 2.4 & 2.3 & 4.1 & & 747 \\
Tajikistan & Low & Low & Low & & 2.1 & 2.0 & & 733 \\
Ukraine & Low-Middle & Low-Middle & Low-Middle & 2.4 & 2.6 & 2.2 & & 1908 \\
Uzbekhistan & Low & Low & Low-Middle & 2.9 & 2.2 & 1.7 & & 926 \\
Russia & Low-Middle & Upper-Middle & Upper-Middle & 2.7 & 2.4 & 2.2 & & 2111 \\
Poland & Upper-Middle & Upper-Middle & High & 4.0 & 3.4 & 5.0 & Yes & 1928 \\
Romania & Low-Middle & Upper-Middle & Upper-Middle & 2.6 & 3.0 & 3.8 & Yes & 1396 \\
Serbia & — & — & Upper-Middle & & 2.8 & 3.5 & & 901 \\
Kazakstan & Low-Middle & Low-Middle & Upper-Middle & 2.3 & 2.6 & 2.7 & & 1379 \\
Moldova & Low & Low-Middle & Low-Middle & 2.1 & 2.9 & 3.3 & & 887 \\
Bosnia \& Herzegovina & Low-Middle & Low-Middle & Upper-Middle & & 2.9 & 3.0 & & 743 \\
Azerbaijan & Low & Low-Middle & Upper-Middle & 2 & 2.2 & 2.3 & & 900 \\
Macedonia (FYROM) & Low-Middle & Low-Middle & Upper-Middle & & 2.7 & 3.8 & & 736 \\
Armenia & Low-Middle & Low-Middle & Low-Middle & & 2.9 & 2.7 & & 896 \\
Kyrgyzstan & Low & Low & Low & & 2.3 & 1.9 & & 610 \\
Estonia & Upper-Middle & Upper-Middle & High & 5.6 & 6.4 & 6.6 & Yes & 662 \\
Czech Republic & Upper-Middle & Upper-Middle & High & 3.7 & 4.3 & 4.9 & Yes & 859 \\
Hungary & Upper-Middle & Upper-Middle & High & 4.9 & 5.0 & 5.1 & Yes & 1151 \\
Lativa & Upper-Middle & Upper-Middle & High & 3.7 & 4.2 & 4.5 & Yes & 651 \\
Lithuania & Upper-Middle & Upper-Middle & Upper-Middle & 4.8 & 4.8 & 4.9 & Yes & 681 \\
Slovakia & Upper-Middle & Upper-Middle & High & 3.7 & 4.3 & 4.5 & Yes & 665 \\
Slovenia & High & High & High & 6.0 & 6.1 & 6.6 & Yes & 687 \\
Bulgaria & Low-Middle & Low-Middle & Upper-Middle & 4.0 & 4 & 3.8 & Yes & 1853 \\
Croatia & Upper-Middle & Upper-Middle & High & 3.8 & 3.4 & 4.1 & Yes & 1160 \\
Montenegro & — & — & Upper-Middle & & 2.8 & 3.9 & & 153 \\
\midrule
      & & & & & & & Total & 26903 \\
 \bottomrule
\end{tabular}}%
\captionof{table}{Countries in Sample}\label{tab:addlabelB}%
\end{minipage}

%%
\end{document} 

在此处输入图片描述 在此处输入图片描述

答案3

我将重新设计你的 MWE,如下所示:

  • 清理前言(删除所有两次加载的包)
  • 根据用途对包进行分组(所有与表格和数学相关的包一起加载)
  • 使用包makecell将列标题写成两行(通过此缩小表格宽度)
  • 使用 旋转表格sideways,但请注意:tabularcaption必须一起封装在parboxminipage

梅威瑟:

\documentclass[11pt]{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}

\usepackage{mathtools,amsfonts,amssymb}
\usepackage{booktabs, makecell, tabularx, threeparttable}
    \newcommand\mc[1]{\multicolumn{1}{c}{#1}}
    \renewcommand\theadfont{\normalsize}
\usepackage{titlesec}
\usepackage[showframe, % only for this case, in real document should be deleted
            hmargin={1.5in, 1in}, vmargin={1in, 1in}, includefoot]{geometry}
\usepackage{setspace}
\onehalfspacing

\usepackage{here}

\usepackage{caption}
\usepackage{graphicx}
\usepackage{siunitx}                        
\usepackage{rotating}

\begin{document}

\appendix
\section{Appendix}\label{Appendix}
    \begin{table}[!ht]
    \centering
\begin{sideways}
    \small
\begin{minipage}{0.9\textheight}
    \begin{tabular}{*{4}{l}
                    *{3}{S[table-format=1.1]} 
                         c 
                         S[table-format=4.0]
                    }
\thead[l]{Country}     
            & \thead{Income Group\\ 2002}  
                            & \thead{Income Group\\ 2005} 
                                            & \thead{Income Group\\ 2009} 
                                                            & {\thead{CPI\\ 2002}} 
                                                                    & {\thead{CPI\\ 2005}}
                                                                            & {\thead{CPI\\ 2009}}
                                                                                    & {\thead{EU\\ Member}} 
                                                                                            & {\thead{Frequency}} \\
    \midrule
Albania     & Low-Middle    & Low-Middle    & Upper-Middle  & 2.5   & 2.4   & 3.2   &       & 732  \\
Belarus     & Low-Middle    & Low-Middle    & Upper-Middle  & 4.8   & 2.6   & 2.4   &       & 848  \\
Georgia     & Low           & Low-Middle    & Low-Middle    & 2.4   & 2.3   & 4.1   &       & 747  \\
Tajikistan  & Low           & Low           & Low           &       & 2.1   & 2.0   &       & 733  \\
Ukraine     & Low-Middle    & Low-Middle    & Low-Middle    & 2.4   & 2.6   & 2.2   &       & 1908 \\
Uzbekhistan & Low           & Low           & Low-Middle    & 2.9   & 2.2   & 1.7   &       & 926  \\
Russia      & Low-Middle    & Upper-Middle  & Upper-Middle  & 2.7   & 2.4   & 2.2   &       & 2111 \\
Poland      & Upper-Middle  & Upper-Middle  & High          & 4.0   & 3.4   & 5.0   & Yes   & 1928 \\
Romania     & Low-Middle    & Upper-Middle  & Upper-Middle  & 2.6   & 3.0   & 3.8   & Yes   & 1396 \\
Serbia      &               & -             & Upper-Middle  &       & 2.8   & 3.5   &       & 901  \\
Kazakstan   & Low-Middle    & Low-Middle    & Upper-Middle  & 2.3   & 2.6   & 2.7   &       & 1379 \\
Moldova     & Low           & Low-Middle    & Low-Middle    & 2.1   & 2.9   & 3.3   &       & 887  \\
Bosnia \& Herzegovina
            & Low-Middle    & Low-Middle    & Upper-Middle  &       & 2.9   & 3.0   &       & 743 \\
Azerbaijan  & Low           & Low-Middle    & Upper-Middle  & 2     & 2.2   & 2.3   &       & 900 \\
Macedonia (FYROM)
            & Low-Middle    & Low-Middle    & Upper-Middle  &       & 2.7   & 3.8   &       & 736 \\
Armenia     & Low-Middle    & Low-Middle    & Low-Middle    &       & 2.9   & 2.7   &       & 896 \\
Kyrgyzstan  & Low           & Low           & Low           &       & 2.3   & 1.9   &       & 610 \\
Estonia     & Upper-Middle  & Upper-Middle  & High          & 5.6   & 6.4   & 6.6   & Yes   & 662 \\
Czech Republic
            & Upper-Middle  & Upper-Middle  & High          & 3.7   & 4.3   & 4.9   & Yes   & 859 \\
Hungary     & Upper-Middle  & Upper-Middle  & High          & 4.9   & 5.0   & 5.1   & Yes   & 1151 \\
Lativa      & Upper-Middle  & Upper-Middle  & High          & 3.7   & 4.2   & 4.5   & Yes   & 651 \\
Lithuania   & Upper-Middle  & Upper-Middle  & Upper-Middle  & 4.8   & 4.8   & 4.9   & Yes   & 681 \\
Slovakia    & Upper-Middle  & Upper-Middle  & High          & 3.7   & 4.3   & 4.5   & Yes   & 665 \\
Slovenia    & High          & High          & High          & 6.0   & 6.1   & 6.6   & Yes   & 687 \\
Bulgaria    & Low-Middle    & Low-Middle    & Upper-Middle  & 4.0   & 4     & 3.8   & Yes   & 1853 \\
Croatia     & Upper-Middle  & Upper-Middle  & High          & 3.8   & 3.4   & 4.1   & Yes   & 1160 \\
Montenegro  & -             & -             & Upper-Middle  &       & 2.8   & 3.9   &       & 153 \\
    \midrule
            &               &               &               &       &       &       & Total & 26903\\
    \bottomrule
\end{tabular}
    \caption{Countries in Sample}
    \label{tab:addlabel}%
\end{minipage}
\end{sideways}
\end{table}
\end{document}

结果:

https://i.stack.imgur.com/25Kl

编辑: 在原始答案中,我顺便删除了第一列标题的一部分。现在这个问题已经得到纠正。列标题也可以重新组织为建议伯纳德在他的第一个例子中,米科在他的回答中。关于表格设计的这一部分,我在“清理”你的 MWE 时忘记了 :(。现在我也移动了\label˙on the place where it should be: immediately after标题。

附录: 与上例相比,新示例重新设计了列标题,分组行以便于阅读,形式与我们在语法学校学习的类似,无需使用包makecell。为了练习、娱乐和查看更多替代方案...

\documentclass[11pt]{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}

\usepackage{mathtools,amsfonts,amssymb}
\usepackage{booktabs, tabularx, threeparttable}
    \newcommand\mc[1]{\multicolumn{1}{c}{#1}}
\usepackage{titlesec}
\usepackage[showframe, % only for this case, in real document should be deleted
            hmargin={1.5in, 1in}, vmargin={1in, 1in}, includefoot]{geometry}
\usepackage{setspace}
\onehalfspacing

\usepackage{here}

\usepackage{caption}
\usepackage{graphicx}
\usepackage{siunitx}                        
\usepackage{rotating}

\begin{document}

\appendix
\section{Appendix}\label{Appendix}
    \begin{table}[!ht]
    \centering
    \captionsetup{skip=1ex}
\begin{sideways}
    \small
\begin{minipage}{0.85\textheight}
    \begin{tabular}{*{4}{l}
                    *{3}{S[table-format=1.1]} 
                         c 
                         S[table-format=4.0]
                    }
            & \multicolumn{3}{c}{Income Group}              & \multicolumn{3}{c}{CPI}
                                                                                    & {EU}  &       \\
    \cmidrule(lr){2-4}\cmidrule(lr){5-7}
Country     & 2002          & 2005          & 2009          & {2002}& {2005}& {2009}& {Member}
                                                                                            & {Frequency}   \\
    \midrule
Albania     & Low-Middle    & Low-Middle    & Upper-Middle  & 2.5   & 2.4   & 3.2   &       & 732  \\
Belarus     & Low-Middle    & Low-Middle    & Upper-Middle  & 4.8   & 2.6   & 2.4   &       & 848  \\
Georgia     & Low           & Low-Middle    & Low-Middle    & 2.4   & 2.3   & 4.1   &       & 747  \\
Tajikistan  & Low           & Low           & Low           &       & 2.1   & 2.0   &       & 733  \\
    \addlinespace
Ukraine     & Low-Middle    & Low-Middle    & Low-Middle    & 2.4   & 2.6   & 2.2   &       & 1908 \\
Uzbekhistan & Low           & Low           & Low-Middle    & 2.9   & 2.2   & 1.7   &       & 926  \\
Russia      & Low-Middle    & Upper-Middle  & Upper-Middle  & 2.7   & 2.4   & 2.2   &       & 2111 \\
Poland      & Upper-Middle  & Upper-Middle  & High          & 4.0   & 3.4   & 5.0   & Yes   & 1928 \\
    \addlinespace
Romania     & Low-Middle    & Upper-Middle  & Upper-Middle  & 2.6   & 3.0   & 3.8   & Yes   & 1396 \\
Serbia      &               & -             & Upper-Middle  &       & 2.8   & 3.5   &       & 901  \\
Kazakstan   & Low-Middle    & Low-Middle    & Upper-Middle  & 2.3   & 2.6   & 2.7   &       & 1379 \\
Moldova     & Low           & Low-Middle    & Low-Middle    & 2.1   & 2.9   & 3.3   &       & 887  \\
    \addlinespace
Bosnia \& Herzegovina
            & Low-Middle    & Low-Middle    & Upper-Middle  &       & 2.9   & 3.0   &       & 743 \\
Azerbaijan  & Low           & Low-Middle    & Upper-Middle  & 2     & 2.2   & 2.3   &       & 900 \\
Macedonia (FYROM)
            & Low-Middle    & Low-Middle    & Upper-Middle  &       & 2.7   & 3.8   &       & 736 \\
Armenia     & Low-Middle    & Low-Middle    & Low-Middle    &       & 2.9   & 2.7   &       & 896 \\
    \addlinespace
Kyrgyzstan  & Low           & Low           & Low           &       & 2.3   & 1.9   &       & 610 \\
Estonia     & Upper-Middle  & Upper-Middle  & High          & 5.6   & 6.4   & 6.6   & Yes   & 662 \\
Czech Republic
            & Upper-Middle  & Upper-Middle  & High          & 3.7   & 4.3   & 4.9   & Yes   & 859 \\
Hungary     & Upper-Middle  & Upper-Middle  & High          & 4.9   & 5.0   & 5.1   & Yes   & 1151 \\
    \addlinespace
Lativa      & Upper-Middle  & Upper-Middle  & High          & 3.7   & 4.2   & 4.5   & Yes   & 651 \\
Lithuania   & Upper-Middle  & Upper-Middle  & Upper-Middle  & 4.8   & 4.8   & 4.9   & Yes   & 681 \\
Slovakia    & Upper-Middle  & Upper-Middle  & High          & 3.7   & 4.3   & 4.5   & Yes   & 665 \\
Slovenia    & High          & High          & High          & 6.0   & 6.1   & 6.6   & Yes   & 687 \\
    \addlinespace
Bulgaria    & Low-Middle    & Low-Middle    & Upper-Middle  & 4.0   & 4     & 3.8   & Yes   & 1853 \\
Croatia     & Upper-Middle  & Upper-Middle  & High          & 3.8   & 3.4   & 4.1   & Yes   & 1160 \\
Montenegro  & -             & -             & Upper-Middle  &       & 2.8   & 3.9   &       & 153 \\
    \midrule
            &               &               &               &       &       &       & Total & 26903\\
    \cmidrule[1pt]{9-9}
\end{tabular}
    \caption{Countries in Sample}
    \label{tab:addlabel}%
\end{minipage}
\end{sideways}
\end{table}
\end{document}

在此处输入图片描述

相关内容