`

我常用的版式

 
阅读更多
\usepackage{fancyhdr}

\begin{document}

%封面用大写罗马数字标示页码
\pagenumbering{Roman}
\setcounter{page}{1}

\input{coversheet/coversheet}

\newpage
%各种目录用小写罗马数字标示页码
\pagenumbering{roman}
%插入目录
\tableofcontents
\newpage
%正文部分使用fancy主题
\pagestyle{fancy}
%清空页眉
\fancyhead{}
%页眉中间为空
\fancyhead[CO]{}
%页眉右边为页码
\fancyhead[RO]{\thepage}
%清空页脚
\fancyfoot{}
\fancyfoot[LO]{}
\fancyfoot[RO]{}
\fancyfoot[CO]{}

%奇数页偶数页处理
\renewcommand{\subsectionmark}[1]{\markright{\thesubsection\ #1}}

\newcommand{\mymarks}{
  \ifthenelse{\equal{\leftmark}{\rightmark}}
    {\leftmark} % if equal
    {\rightmark}} % if not equal
%左上角为文章当前二级标题
\fancyhead[LO]{\slshape \mymarks}

%正文部分用普通阿拉伯数字标记
\pagenumbering{arabic}
\setcounter{page}{1}

.....正文部分

\end{document}
 
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics