大表格用页面横置,landscape后的页眉页脚没有自动转置如何解决? #875
-
大表格用页面横置,landscape后的页眉页脚没有自动转置如何解决? |
Beta Was this translation helpful? Give feedback.
Answered by
LogCreative
Dec 23, 2022
Replies: 1 comment
-
如果页眉页脚不转置,可以参见 #779 。页眉页脚转置只是方便电子版,印刷时可能会带来麻烦,慎重使用。 参考 TeX.SX 上的回答,并结合默认的 SJTUThesis/texmf/tex/latex/sjtuthesis/sjtuthesis-graduate.ltx Lines 26 to 34 in 700093d 可以给出一个临时的解决方法: 导言区添加 % \usepackage{etoolbox}
\makeatletter
\def\ifGm@preamble#1{\@firstofone}
\appto\restoregeometry{%
\pdfpagewidth=\paperwidth
\pdfpageheight=\paperheight
\headwidth=\textwidth}
\apptocmd\newgeometry{%
\pdfpagewidth=\paperwidth
\pdfpageheight=\paperheight
\headwidth=\textwidth}{}{}
\makeatother 正文需要横置的地方: \newgeometry{,
top = 3.5cm,
bottom = 4.0cm,
left = 3.3cm,
right = 2.8cm,
headheight = 1.0cm,
headsep = 0.5cm,
landscape
}
% 横置内容
\restoregeometry |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
linelee02
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
如果页眉页脚不转置,可以参见 #779 。页眉页脚转置只是方便电子版,印刷时可能会带来麻烦,慎重使用。
参考 TeX.SX 上的回答,并结合默认的
geometry
配置,SJTUThesis/texmf/tex/latex/sjtuthesis/sjtuthesis-graduate.ltx
Lines 26 to 34 in 700093d
可以给出一个临时的解决方法:
导言区添加
正文需要横置的地方:
\…