
我正在使用以下程式碼,無法弄清楚如何將左頁的標題向左對齊,右頁的右對齊,並將頁碼放在頁邊距中,而不是放在定義的幾何圖形內。
\makeatletter
\def\chapapp2{Chapter}
\def\appendix{\par
\setcounter{chapter}{0}
\setcounter{section}{0}
\def\chapapp2{Appendix}
\def\@chapapp{Appendix}
\def\thechapter{\Alph{chapter}}}
\def\ps@uheadings{\let\@mkboth\markboth
% modifications
\def\@oddhead{\protect\makebox[\textwidth][l]
{\small\scshape\MakeUppercase{\rightmark}\hfill\thepage}}
\def\@oddfoot{}
\def\@evenfoot{}
\def\@evenhead{\protect\makebox[\textwidth][l]
{\thepage\hfill\small\scshape\MakeUppercase{\leftmark}}}
% end of modifications
\def\chaptermark##1{\markboth {\ifnum \c@secnumdepth >\m@ne
\chapapp2\ \thechapter. \ \fi ##1}{}}%
\def\sectionmark##1{\markright {\ifnum \c@secnumdepth >\z@
\thesection. \ \fi ##1}}}
\makeatother