나는 내 논문의 부록을 편집하기 시작했고 내가 포함시키고 싶은 첫 번째 부록은 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 Inflation"을 사용하는 것이 더 낫습니다. 그렇죠?)
\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
나는 자동으로 새 페이지를 생성하는 을(를) 사용하지 않고 adjustbox
및 를 기반으로 하는 두 가지 솔루션을 제안합니다 .makecell
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
하지만 참고:tabular
및 은 또는caption
에서 함께 캡슐화되어야 했습니다 .parbox
minipage
MWE:
\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}
결과:
편집하다:
원래 답변에서 실수로 첫 번째 열 머리글의 일부를 삭제했습니다. 이제 이 문제가 수정되었습니다. 또한 열 헤더를 다음과 같이 재구성할 수 있습니다.제안됨Bernard의 첫 번째 예와미코그의 대답에. 테이블 디자인의 이 부분에서 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}