-
Notifications
You must be signed in to change notification settings - Fork 945
Closed
Labels
Description
页面尺寸部分,目前是手动设置的,其中的
ucasthesis/Style/ucasthesis.cls
Line 101 in abe6a92
\setlength{\voffset}{-17.4mm}% set vertical offset |
是不合理的,在特殊情况下会带来问题。
控制页面尺寸的诸多 dimension 内部包含一定的勾契关系,直接设定比较费事,建议换用 geometry
宏包。
如果有具体的页面尺寸要求(例如左侧页边距 xx mm),我可以用 geometry
改写后提交 push request。
特殊情况举例:使用 pdfpages
宏包的 \includepdf
插入一个整页时,插入的页面会整体上移 -\voffset
(17.4mm) 的距离。
% a4-insersion.tex
\documentclass[a4paper]{article}
\usepackage[margin=0pt]{geometry}
\usepackage{xcolor}
\pagecolor{blue!60!green!60}
\begin{document}
\noindent
\rule{\textwidth}{\dimexpr17.4mm + 5pt\relax}
\end{document}
% thesis-test.tex
\documentclass{Style/ucasthesis}
\usepackage{pdfpages}
\begin{document}
\includepdf{a4-insertion}
\end{document}
说明:
a4-insertion.tex
生成待插入页面a4-insertion.pdf
,页面淡蓝底色,上部有一高为 14.7mm + 5pt 的黑块thesis-test.tex
使用模板,插入a4-insertion.pdf