我有一个宽表,我想将脚注和章节标题都放在同一页中。理想情况下,最好将页码放在底部而不是侧面(我添加了 \thispagestyle{empty} 来解决这个问题。以下是我所拥有的:
\documentclass[12pt]{article}
\usepackage{amssymb,amsmath,
amsfonts,eurosym,geometry,ulem,
graphicx,caption,color,setspace,
sectsty,comment,footmisc,caption,
pdflscape,subfigure,array,hyperref,
longtable, tabularx, url, lipsum,
array, scrlayer, lscape}
\begin{document}
\pagebreak \newpage
\section{Time table}
\begin{flushleft}
\begin{landscape}
\thispagestyle{empty}
\begin{table}[htbp]
\small
\begin{tabular}{|c|c|c|c|c|c|}
\hline
& Mar/20 - Aug/20 & Sept/20 - Feb/21 & Mar/21 - Aug/21 & Sept/21 - Feb/22 \footnote{Conditional on XX, I expect YYYYY} &Mar/22 - Aug/22\\
& Aug/20 & Feb/21 & Aug/21 & Feb/22 &Aug/22\\\hline
Course Work and & $\sqrt{}$&$\sqrt{}$&&&\\
Summer Schools & & & & & \\
\hline
Paper 1: & $\sqrt{}$ & & & & \\
Data collection & & & & & \\\hline
Paper 1: Data & $\sqrt{}$ & $\sqrt{}$& & & \\
analysis and writing & & & & & \\
\hline
Paper 1: Presenting & &$\sqrt{}$&$\sqrt{}$&&\\
and submission & & & & & \\
\hline
Paper 3: & $\sqrt{}$ & $\sqrt{}$ & & & \\
Data collection && & & & \\\hline
Paper 3: Data & & $\sqrt{}$ & $\sqrt{}$ & & \\
analysis and writing & & & & & \\
\hline
Paper 3: Presenting & &&$\sqrt{}$&$\sqrt{}$&\\
and submission & & & & & \\
\hline
Paper 2: & & $\sqrt{}$ &$\sqrt{}$&& \\
Data collection & & & & & \\\hline
Paper 2: Data & & &$\sqrt{}$&$\sqrt{}$& \\
analysis and writing & & & & & \\
\hline
Paper 2: Presenting & & &&$\sqrt{}$& $\sqrt{}$ \\
and submission & & & & & \\
\hline
Teaching seminar &&&$\sqrt{}$&& \\
\hline
Preparation of &&&&$\sqrt{}$& $\sqrt{}$\\
final manuscript &&&&& \\
\hline
Dissertation manuscript &&&&& $\sqrt{}$\\
submission &&&&& \\
\hline
\end{tabular}
\caption{Project timetable.}
\label{tab:Project timetable}
\end{table}
\end{landscape}
\end{flushleft}
\pagebreak \newpage
\end{document}
关于如何将脚注和章节保留在横向页面中,您有什么想法吗?
非常感谢!
答案1
这些解决方案使用了两个小页面。第一个小页面横跨整个页面,而第二个小页面仅与表格一样宽(比表格宽\linewidth
)。添加小页面\section
也使其太高。
为了将脚注文本放入较小的迷你页面中,我不得不使用单独的\footnotemark
和\footnotetext
。请注意,这些不会自动超链接,也不会在迷你页面中使用相同的格式/计数器。
此解决方案以横向方式打印该部分。
\documentclass[12pt]{article}
\usepackage{geometry}
\usepackage{amssymb,amsmath,
amsfonts,eurosym,ulem,
graphicx,caption,color,setspace,
sectsty,comment,footmisc,caption,
pdflscape,subfigure,array,hyperref,
longtable, tabularx, url, lipsum,
array, scrlayer}
\begin{document}
Normal page.
\begin{landscape}
\thispagestyle{empty}
\ifodd\value{page}\relax
\dimen0=\oddsidemargin
\else
\dimen0=\evensidemargin
\fi
\noindent\hspace{\dimexpr 1in+\topmargin+\headheight+\headsep+\linewidth-\paperheight}% left edge
\raisebox{0pt}[\dimexpr \height-1in-\dimen0][0pt]{\rlap{%
\begin{minipage}[c][\paperwidth][c]{\paperheight}% spans entire page
\def\thefootnote{{\itshape\alph{footnote}}}%
\sbox0{% measure width of tabular
\let\thempfn=\thempfootnote
\small
\begin{tabular}[t]{|c|c|c|c|c|c|}
\hline
& Mar/20 - Aug/20 & Sept/20 - Feb/21 & Mar/21 - Aug/21 & Sept/21 - Feb/22 \hyperlink{mpfoot.1}{\footnotemark[1]} &Mar/22 - Aug/22\\
& Aug/20 & Feb/21 & Aug/21 & Feb/22 &Aug/22\\\hline
Course Work and & $\sqrt{}$&$\sqrt{}$&&&\\
Summer Schools & & & & & \\
\hline
Paper 1: & $\sqrt{}$ & & & & \\
Data collection & & & & & \\\hline
Paper 1: Data & $\sqrt{}$ & $\sqrt{}$& & & \\
analysis and writing & & & & & \\
\hline
Paper 1: Presenting & &$\sqrt{}$&$\sqrt{}$&&\\
and submission & & & & & \\
\hline
Paper 3: & $\sqrt{}$ & $\sqrt{}$ & & & \\
Data collection && & & & \\\hline
Paper 3: Data & & $\sqrt{}$ & $\sqrt{}$ & & \\
analysis and writing & & & & & \\
\hline
Paper 3: Presenting & &&$\sqrt{}$&$\sqrt{}$&\\
and submission & & & & & \\
\hline
Paper 2: & & $\sqrt{}$ &$\sqrt{}$&& \\
Data collection & & & & & \\\hline
Paper 2: Data & & &$\sqrt{}$&$\sqrt{}$& \\
analysis and writing & & & & & \\
\hline
Paper 2: Presenting & & &&$\sqrt{}$& $\sqrt{}$ \\
and submission & & & & & \\
\hline
Teaching seminar &&&$\sqrt{}$&& \\
\hline
Preparation of &&&&$\sqrt{}$& $\sqrt{}$\\
final manuscript &&&&& \\
\hline
Dissertation manuscript &&&&& $\sqrt{}$\\
submission &&&&& \\
\hline
\end{tabular}}%
\centering
\begin{minipage}{\dimexpr \wd0+\ht1+\dp1}
\section{Time table}
\usebox0\raisebox{\ht0}{\rotatebox{-90}{\rlap{\usebox1}}}
\hypertarget{mpfoot.1}{\footnotetext[1]{Conditional on XX, I expect YYYYY}}
\captionof{table}{Project timetable.}
\label{tab:Project timetable}
\end{minipage}
\end{minipage}}}%\paperheight
\end{landscape}
\end{document}
此版本将该部分旋转回其正常位置。
\documentclass[12pt]{article}
\usepackage{geometry}
\usepackage{amssymb,amsmath,
amsfonts,eurosym,ulem,
graphicx,caption,color,setspace,
sectsty,comment,footmisc,caption,
pdflscape,subfigure,array,hyperref,
longtable, tabularx, url, lipsum,
array, scrlayer}
\begin{document}
Normal page.
\begin{landscape}
\thispagestyle{empty}
\ifodd\value{page}\relax
\dimen0=\oddsidemargin
\else
\dimen0=\evensidemargin
\fi
\dimen1=\textwidth
\noindent\hspace{\dimexpr 1in+\topmargin+\headheight+\headsep+\linewidth-\paperheight}% left edge
\raisebox{0pt}[\dimexpr \height-1in-\dimen0][0pt]{\rlap{%
\begin{minipage}[c][\paperwidth][c]{\paperheight}
\def\thefootnote{{\itshape\alph{footnote}}}%
\sbox0{% measure width of tabular
\let\thempfn=\thempfootnote
\small
\begin{tabular}[t]{|c|c|c|c|c|c|}
\hline
& Mar/20 - Aug/20 & Sept/20 - Feb/21 & Mar/21 - Aug/21 & Sept/21 - Feb/22 \hyperlink{mpfoot.1}{\footnotemark[1]} &Mar/22 - Aug/22\\
& Aug/20 & Feb/21 & Aug/21 & Feb/22 &Aug/22\\\hline
Course Work and & $\sqrt{}$&$\sqrt{}$&&&\\
Summer Schools & & & & & \\
\hline
Paper 1: & $\sqrt{}$ & & & & \\
Data collection & & & & & \\\hline
Paper 1: Data & $\sqrt{}$ & $\sqrt{}$& & & \\
analysis and writing & & & & & \\
\hline
Paper 1: Presenting & &$\sqrt{}$&$\sqrt{}$&&\\
and submission & & & & & \\
\hline
Paper 3: & $\sqrt{}$ & $\sqrt{}$ & & & \\
Data collection && & & & \\\hline
Paper 3: Data & & $\sqrt{}$ & $\sqrt{}$ & & \\
analysis and writing & & & & & \\
\hline
Paper 3: Presenting & &&$\sqrt{}$&$\sqrt{}$&\\
and submission & & & & & \\
\hline
Paper 2: & & $\sqrt{}$ &$\sqrt{}$&& \\
Data collection & & & & & \\\hline
Paper 2: Data & & &$\sqrt{}$&$\sqrt{}$& \\
analysis and writing & & & & & \\
\hline
Paper 2: Presenting & & &&$\sqrt{}$& $\sqrt{}$ \\
and submission & & & & & \\
\hline
Teaching seminar &&&$\sqrt{}$&& \\
\hline
Preparation of &&&&$\sqrt{}$& $\sqrt{}$\\
final manuscript &&&&& \\
\hline
Dissertation manuscript &&&&& $\sqrt{}$\\
submission &&&&& \\
\hline
\end{tabular}}%
\sbox1{\parbox{\dimen1}{\section{Time table}}}%
\centering
\begin{minipage}{\dimexpr \wd0+\ht1+\dp1}
\usebox0\raisebox{\ht0}{\rotatebox{-90}{\rlap{\usebox1}}}
\hypertarget{mpfoot.1}{\footnotetext[1]{Conditional on XX, I expect YYYYY}}
\captionof{table}{Project timetable.}
\label{tab:Project timetable}
\end{minipage}
\end{minipage}}}%\paperheight
\end{landscape}
\end{document}