Skip to content
e71828 edited this page Nov 20, 2021 · 3 revisions

Welcome to the nputhesis wiki!

引理想法

“LaTeX 写作是一个用编程语言表达思想的具有创造性的过程,而非一个机械的填表行为。”
避免互相折磨,以及自我折磨。如果你想填表,那就去MS家吧。

ucasthesis 知识小站 : 有困难,找组织

页眉页脚

页码居中

\fancypagestyle{noheaderstyle}{% header and footer style for no header
    \fancyhf{}% clear fields
    %\fancyhead[C]{\footnotesize \ifnumodd{\value{page}}{\leftmark}{\@title}}% structure elements
    \if@twoside
        \fancyfoot[C]{\footnotesize \ifnumodd{\value{page}}{\hspace*{\fill}\thepage}{\thepage\hspace*{\fill}}}% page number
    \else
        \fancyfoot[C]{\footnotesize \thepage}% page number
    \fi
    \renewcommand{\headrulewidth}{0pt}% header rule
    \renewcommand{\footrulewidth}{0pt}% footer rule
}

Thesis中重定义

\pagestyle{fancy}
\fancyhf{}
\fancyhead[LE,RO]{Overleaf}
\fancyhead[RE,LO]{Guides and tutorials}
\fancyfoot[CE,CO]{\leftmark}
\fancyfoot[LE,RO]{\thepage}

参考 Headers_and_footers

页眉带图片

\RequirePackage[export]{adjustbox}
\fancypagestyle{withlogo}{% header and footer style for the logo
    \fancyhf{}% clear fields
    \fancyhead[C]{\includegraphics[totalheight=18pt,valign=m]{textlogoblack}\enspace {\fontsize{16}{19.2} \bfseries{本科毕业设计论文}}}% structure elements
    \fancyfoot[C]{\footnotesize \thepage}% page number
    \renewcommand{\headrulewidth}{0.8pt}% header rule
    \renewcommand{\footrulewidth}{0pt}% footer rule
}

文武线

\renewcommand{\headrule}{\hrule width\headwidth height2.7pt \vspace{0.9pt} \hrule width\headwidth height0.9pt}%
Clone this wiki locally