就像在这篇文章中一样(这里) 我想将附录的名称放在横向模式的页面顶部。与发起该主题的人不同,我想将页面标题放在纸张的最短边(因此,如果是横向模式,则位于右侧)。我尝试了与回答该主题的人类似的方法,但不起作用。
\documentclass[11pt]{article}
\usepackage[textwidth=155mm,top=23.5mm,bottom=23.5mm,
footskip=40pt,heightrounded, showframe]{geometry}
\usepackage[skip=0.33\baselineskip]{caption}
\usepackage[table,xcdraw]{xcolor}
\usepackage[flushleft]{threeparttable}
\usepackage{booktabs, makecell}
\usepackage{pdflscape}
\usepackage{appendix}
\begin{document}
\newgeometry{left=3cm,bottom=0.1cm, top=1cm}
\begin{landscape} \section{Appendix}
\setcounter{table}{0}
\renewcommand*\thetable{\Alph{section}.\arabic{table}} \subsection{Unit root tests}
\leavevmode\vfill
\begin{table}[ht]
\centering\setlength{\tabcolsep}{3pt}
\begin{threeparttable}
\caption{P-values of Augmented Dickey-Fuller Test}
\label{my-label}
\begin{tabular}{@{}llllllllllllll@{}}
\toprule
Variable & Austria & Belgium & Finland & France & Germany & Netherl. & Greece & Italy & Ireland & Portugal & Spain & All eurozone & US \\ \midrule
\textit{Yield-OIS (10y)} & 0.1807 & 0.1912 & 0.1255 & 0.3142 & 0.1641 & 0.1995 & 0.4182 & 0.4180 & 0.5964 & 0.6333 & 0.4743 & & \textbf{0.0437} \\
\textit{CDS } & 0.0779 & 0.2706 & 0.3143 & 0.2230 & 0.0938 & 0.2775 & 0.7790 & 0.1399 & 0.2852 & 0.3403 & 0.2272 & & \\
\textit{Redom} & \textbf{0.0005} & 0.1273 & \textbf{0.0001} & \textbf{0.0287} & & 0.0718 & 0.6975 & 0.2210 & 0.6008 & 0.5033 & 0.4064 & & \\
\textit{BAS }& \textbf{0.0000} & \textbf{0.0111} & \textbf{0.0012} & \textbf{0.0000} & \textbf{0.0000} & 0.0021 & \textbf{0.0026} & 0.0000 & 0.3094 & 0.4802 & 0.0000 & & \\
\textit{OIS rate (10y)} & \multicolumn{1}{c}{} & & & & & & & & & & & 0.8880 & 0.0907 \\
\textit{VSTOXX} & \multicolumn{1}{c}{\textbf{}} & & & & & & & & & & & \textbf{0.0009} & \\
\textit{CESI} & \multicolumn{1}{c}{\textbf{}} & & & & & & & & & & & \textbf{0.0246} & \textbf{0.0146} \\ \bottomrule
\end{tabular}
\begin{tablenotes}[para,flushleft] \footnotesize{
\item \textbf{Notes}: This table shows the p-values of the Augmented Dickey-Fuller (ADF) test. The null hypothesis is that the variable has a unit root. This hypothesis is rejected when the p-value < 0.05 (highlighted in bold). The ADF with trend and intercept has been performed if variables have a clear trend. The column ''All eurozone'' shows the p-values for the time series observations. All variables in this test are measured in level values.}
\end{tablenotes}
\end{threeparttable}
\end{table}
\vfill
\end{landscape}
\restoregeometry
\end{document}
答案1
你想要这个吗?
请注意,您不应使用'
作为开引号。请改用 `。
\documentclass[11pt]{article}
\usepackage[textwidth=155mm,top=23.5mm,bottom=23.5mm,footskip=40pt,heightrounded, showframe]{geometry}
\usepackage[skip=0.33\baselineskip]{caption}
\usepackage[flushleft]{threeparttable}
\usepackage{booktabs,rotating}
\begin{document}
\newgeometry{left=3cm,bottom=0.1cm, top=1cm}
\section{Appendix}
\setcounter{table}{0}
\renewcommand*\thetable{\Alph{section}.\arabic{table}}
\subsection{Unit root tests}
\begingroup
\vfill
%\centering % uncomment to centre the table horizontally as well as vertically
\begin{sideways}
\setlength{\tabcolsep}{3pt}
\begin{threeparttable}
\caption{P-values of Augmented Dickey-Fuller Test}
\label{my-label}
\begin{tabular}{@{}llllllllllllll@{}}
\toprule
Variable & Austria & Belgium & Finland & France & Germany & Netherl. & Greece & Italy & Ireland & Portugal & Spain & All eurozone & US \\ \midrule
\textit{Yield-OIS (10y)} & 0.1807 & 0.1912 & 0.1255 & 0.3142 & 0.1641 & 0.1995 & 0.4182 & 0.4180 & 0.5964 & 0.6333 & 0.4743 & & \textbf{0.0437} \\
\textit{CDS } & 0.0779 & 0.2706 & 0.3143 & 0.2230 & 0.0938 & 0.2775 & 0.7790 & 0.1399 & 0.2852 & 0.3403 & 0.2272 & & \\
\textit{Redom} & \textbf{0.0005} & 0.1273 & \textbf{0.0001} & \textbf{0.0287} & & 0.0718 & 0.6975 & 0.2210 & 0.6008 & 0.5033 & 0.4064 & & \\
\textit{BAS }& \textbf{0.0000} & \textbf{0.0111} & \textbf{0.0012} & \textbf{0.0000} & \textbf{0.0000} & 0.0021 & \textbf{0.0026} & 0.0000 & 0.3094 & 0.4802 & 0.0000 & & \\
\textit{OIS rate (10y)} & \multicolumn{1}{c}{} & & & & & & & & & & & 0.8880 & 0.0907 \\
\textit{VSTOXX} & \multicolumn{1}{c}{\textbf{}} & & & & & & & & & & & \textbf{0.0009} & \\
\textit{CESI} & \multicolumn{1}{c}{\textbf{}} & & & & & & & & & & & \textbf{0.0246} & \textbf{0.0146} \\ \bottomrule
\end{tabular}
\begin{tablenotes}[para,flushleft]
\footnotesize
\item \textbf{Notes}: This table shows the p-values of the Augmented Dickey-Fuller (ADF) test. The null hypothesis is that the variable has a unit root. This hypothesis is rejected when the p-value < 0.05 (highlighted in bold). The ADF with trend and intercept has been performed if variables have a clear trend. The column ``All eurozone'' shows the p-values for the time series observations. All variables in this test are measured in level values.
\end{tablenotes}
\end{threeparttable}
\end{sideways}
\vfill
\restoregeometry
\endgroup
\end{document}
如果您希望表格水平居中,正如 Zarko 建议的那样,只需取消注释以下行:
根据 Zarko 的建议/更正进行编辑。