Modify page layout according to regulation update.

This commit is contained in:
Casper Ti. Vector 2015-04-26 23:59:38 +08:00
parent 936a97a564
commit a0da14c30f
8 changed files with 53 additions and 48 deletions

View File

@ -1,7 +1,7 @@
% vim:ts=4:sw=4
%
% Copyright (c) 2008-2009 solvethis
% Copyright (c) 2010-2014 Casper Ti. Vector
% Copyright (c) 2010-2015 Casper Ti. Vector
% All rights reserved.
%
% Redistribution and use in source and binary forms, with or without
@ -30,6 +30,7 @@
% SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
\chapter*{版权声明}
\thispagestyle{empty}
{
\zihao{3}\linespread{1.5}\selectfont

View File

@ -1,7 +1,7 @@
% vim:ts=4:sw=4
%
% Copyright (c) 2008-2009 solvethis
% Copyright (c) 2010-2014 Casper Ti. Vector
% Copyright (c) 2010-2015 Casper Ti. Vector
% All rights reserved.
%
% Redistribution and use in source and binary forms, with or without
@ -31,7 +31,6 @@
% 原创性声明和使用授权说明页不需要装订到论文中,故不显示页码。
\cleardoublepage\thispagestyle{empty}
\newgeometry{height = 240mm, width = 150mm, ignoreheadfoot, vcentering}
{
\vspace*{\fill}\linespread{1.5}\selectfont
\centerline{\bfseries\Large 北京大学学位论文原创性声明和使用授权说明}
@ -84,5 +83,4 @@
\vspace*{\fill}\par
}
\restoregeometry

View File

@ -70,7 +70,7 @@
未格式化的、带方括号的和上标且带方括号的引用标记:%
\cite{test-en}\parencite{test-zh}\supercite{test-en, test-zh}
若要避免章末空白页,请在调用 pkuthss 文档类时加入 \texttt{oneside} 选项。
若要避免章末空白页,请在调用 pkuthss 文档类时加入 \texttt{openany} 选项。
如果编译时不出参考文献,
请参考 \texttt{texdoc pkuthss} “问题及其解决”一章
@ -78,21 +78,30 @@
}
\begin{document}
% 以下为正文之前的部分。
% 以下为正文之前的部分,默认不进行章节编号
\frontmatter
% 此后到下一 \pagestyle 命令之前不排版页眉或页脚。
\pagestyle{empty}
% 自动生成标题页。
\maketitle
% 版权声明。
\include{chap/copyright}
% 此后到下一 \pagestyle 命令之前正常排版页眉和页脚。
\cleardoublepage
\pagestyle{plain}
% 重置页码计数器,用大写罗马数字排版此部分页码。
\setcounter{page}{0}
\pagenumbering{Roman}
% 中英文摘要。
\include{chap/abstract}
% 自动生成目录。
\tableofcontents
% 以下为正文。
% 以下为正文部分,默认要进行章节编号
\mainmatter
% 序言。
\include{chap/introduction}
% 各章节。
@ -117,11 +126,15 @@
% 各附录。
\include{chap/encl1}
% 以下为正文之后的部分。
% 以下为正文之后的部分,默认不进行章节编号
\backmatter
% 致谢。
\include{chap/acknowledge}
% 此后不排版页眉或页脚。
\cleardoublepage
\pagestyle{empty}
% 原创性声明和使用授权说明。
\include{chap/originauth}
\end{document}

View File

@ -77,12 +77,6 @@
如果希望改成一章可以从任意页开始,可以这样设置:
\begin{Verbatim}[frame = single]
\documentclass[openany, ...]{pkuthss} % 每章从任意页开始。
\end{Verbatim}
但这样设置时左右(奇偶)页的页眉页脚设置仍然是不同的。
如果需要使左右页的页眉页脚设置一致,可以直接采用单面模式:
\begin{Verbatim}[frame = single]
% 使用 oneside 选项时不需要再指定 openany 选项。
\documentclass[oneside, ...]{pkuthss}
\end{Verbatim}
\subsection{pkuthss-extra 宏包提供的选项}\label{ssec:extra}
@ -130,7 +124,6 @@
\item 自动忽略 CJK 文字之间的空白而%
保留CJK 文字与英文之间等的)其它空白。
\item 调用 setspace 宏包以使某些细节处的空间安排更美观。
\item 设置页芯居中。
\item 设定行距为 1.41\footnote{%
为什么是 1.41?因为 $\sqrt{2}\approx1.41$%
}
@ -364,10 +357,6 @@
pkuthss 文档类中有一些一旦改动就有可能破坏预设排版规划的设置,
因此不建议更改这些设置,它们是:
\begin{itemize}
\item 纸张类型A4
\item 页芯尺寸:%
$240\,\mathrm{mm}\times150\,\mathrm{mm}$
包含页眉、页脚;
\item 默认字号:小四号。
\end{itemize}%
}

View File

@ -29,6 +29,7 @@
% chap/acknowledge.tex
\chapter*{版权声明}
\thispagestyle{empty}
{
\zihao{3}\linespread{1.5}\selectfont

View File

@ -63,14 +63,20 @@
\begin{document}
\frontmatter
\pagestyle{empty}
\maketitle
\include{chap/copyright}
\cleardoublepage
\pagestyle{plain}
\setcounter{page}{0}
\pagenumbering{Roman}
\include{chap/abstract}
\tableofcontents
\mainmatter
\include{chap/introduction}
\include{chap/chap1}
\include{chap/chap2}
@ -78,13 +84,15 @@
\include{chap/conclusion}
\appendix
\printbibliography[heading = bibintoc, sorting = ecnty]
\include{chap/encl1}
\backmatter
\include{chap/acknowledge}
\cleardoublepage
\pagestyle{empty}
\include{chap/originauth}
\end{document}

View File

@ -112,8 +112,6 @@
\unless\ifxetex\RequirePackage{CJKspace}\fi
% Make spacing nicer in some situations (eg. footnotes and verbatims).
\RequirePackage{setspace}
% Make the text area centered in the page.
\geometry{centering}
% Set line skip.
\linespread{1.41}\selectfont
% Lists often appear to be too sparse when items are just one or two lines long.

View File

@ -99,37 +99,34 @@
\fi
}
% Set page layout.
% Set up page layout.
\geometry{
a4paper, height = 240mm, width = 150mm, includeheadfoot, headheight = 1.2em
a4paper, includefoot, hmargin = 2.6cm, top = 3cm, bottom = 2.5cm,
headheight = 1.5cm, headsep = 0.5cm, footskip = 0.75cm
}
% Internal command to set headers and footers.
% Set up spacing for displayed formulae.
\setlength{\abovedisplayskip}{6bp plus 1.5bp minus 3.5bp}
\setlength{\abovedisplayshortskip}{3bp plus 0.75bp minus 1.75bp}
\setlength{\belowdisplayshortskip}{3bp plus 0.75bp minus 1.75bp}
\setlength{\belowdisplayskip}{6bp plus 1.5bp minus 3.5bp}
% Internal command to set up headers and footers.
\def\pkuthss@int@setpagestyle{
% Set the headers and footers on the first page in every chapter.
% The actual setup commands.
\fancypagestyle{plain}{
\fancyhf{}\renewcommand*{\headrulewidth}{0pt}
\fancyhf{}\renewcommand*{\headrulewidth}{0.75bp}
\fancyfoot[C]{\zihao{5}\normalfont{\thepage}}
\if@twoside
\fancyfoot[RO,LE]{\small\normalfont --~\thepage~--}
\fancyhead[CE]{\zihao{5}\normalfont{\cuniversity\cthesisname}}
\fancyhead[CO]{\zihao{5}\normalfont\pkuthss@int@setcase{\leftmark}}
\else
\fancyfoot[C]{\small\normalfont --~\thepage~--}
\fancyhead[C]{\zihao{5}\normalfont\pkuthss@int@setcase{\leftmark}}
\fi
}
% Set the headers and footers on other pages.
\fancypagestyle{pkuthss}{
\fancyhf{}
\if@twoside
\fancyhead[LE]{\small\normalfont\pkuthss@int@setcase{\leftmark}}
\fancyhead[RO]{\small\normalfont\pkuthss@int@setcase{\rightmark}}
\fancyhead[LO,RE]{\small\normalfont\cuniversity\cthesisname}
\fancyfoot[RO,LE]{\small\normalfont --~\thepage~--}
\else
\fancyhead[L]{\small\normalfont\pkuthss@int@setcase{\leftmark}}
\fancyhead[R]{\small\normalfont\pkuthss@int@setcase{\rightmark}}
\fancyfoot[C]{\small\normalfont --~\thepage~--}
\fi
}
\pagestyle{pkuthss}
\pagestyle{plain}
}
% `\MakeUppercase' works problematically.
% eg. it converts `\cite{ctex}' into `\cite{CTEX}'.
% This option can disable `\MakeUppercase' in left/right heading marks.