我收到了一个据称满足标准在我所在的大学提交硕士论文时,由于某种原因,所有页码都明显偏左。“.cls”文件相当长,但我已将看起来相关的部分复制到下面。下面还包含一个示例页面。
我正在寻找帮助来调试数字错位,或者只是将它们移回中心的技巧。我认为这可能与选项有关oneside
,但即使我使用twoside
页码,它们也会偏离中心向左移动。
以下是 .cls 文件中可能相关的摘录
% ****************************************
% * OPTIONS *
% ****************************************
%
% Option values are now declared first thing. Defaults are set to
% 11 point, onesided, final (ie not draft) mode (BBF 10/31/94)
\newcommand\@ptsize{}
\newcommand\@draftmark{}
\DeclareOption{10pt}{\renewcommand\@ptsize{0}}
\DeclareOption{11pt}{\renewcommand\@ptsize{1}}
\DeclareOption{12pt}{\renewcommand\@ptsize{2}}
\DeclareOption{oneside}{\@twosidefalse \@mparswitchfalse}
\DeclareOption{twoside}{\@twosidetrue \@mparswitchtrue}
\DeclareOption{draft}{\renewcommand\@draftmark{1}}
\DeclareOption{final}{\renewcommand\@draftmark{0}}
\ExecuteOptions{11pt,oneside,final}
...
% Two-side or one-side printing.
%
% \@twosidefalse % Default is one-sided printing.
\def\ds@twoside{\@twosidetrue % Defines twoside option.
\@mparswitchtrue} % Marginpars go on outside of page.
...
\if@twoside % If two-sided printing.
\def\ps@headings{\let\@mkboth\markboth
\def\@oddfoot{}\def\@evenfoot{}% No feet.
\def\@evenhead{\rmfamily \hfil\thepage\hfil \slshape \leftmark}% Left heading.
\def\@oddhead{{\slshape \rightmark}\hfil \rmfamily\thepage \hfil}% Right heading.
\def\chaptermark##1{\markboth {\uppercase{\ifnum \c@secnumdepth >\m@ne
\@chapapp\ \thechapter. \ \fi ##1}}{}}%
\def\sectionmark##1{\markright {\uppercase{\ifnum \c@secnumdepth >\z@
\thesection. \ \fi ##1}}}}
\else % If one-sided printing.
\def\ps@headings{\let\@mkboth\markboth
\def\@oddfoot{{\slshape \rightmark}\hfil \rmfamily\thepage \hfil}%\def\@evenfoot{}% No feet.
\def\@oddhead{} \def\@evenhead{}% Heading.
\def\chaptermark##1{\markright {\uppercase{\ifnum \c@secnumdepth >\m@ne
\@chapapp\ \thechapter. \ \fi ##1}}}}
\fi
...
\def\@oddfoot{\hfil\thepage\hspace{0.75in}\hfil} % foot (right)
\def\@evenfoot{\hfil\thepage\hspace{0.75in}\hfil}} % foot (left)
...
\if@twoside\else\raggedbottom\fi % Ragged bottom unless twoside
% option.
\if@twocolumn
\@@input twocolum.sty\relax
\else
\onecolumn % Single-column.
\fi
以下是示例页面:
答案1
嗯,是的,
\def\@oddfoot{\hfil\thepage\hspace{0.75in}\hfil} % foot (right)
\def\@evenfoot{\hfil\thepage\hspace{0.75in}\hfil}} % foot (left)
它被明确地声明为位于中心左侧 0.75 英寸(0.375 英寸)的一半。
我还预计问题在于使用 [twoside] 选项时 \oddsidemargin 和 \evensidemargin 之间的差异。