我想在我的硕士论文中将字体设置为 14pt,并制作一个包含以下内容的页眉:
章节# 章节名称
我使用一个样式文件和一个.cls文件。
我已在中提出另一个问题: 附录前的目录中的“章节”一词
那里的答案可能对这个问题有帮助。
MWE 如下
\documentclass[ms]{osudissert96}
\usepackage{amssymb,amsfonts,amsmath,amscd,mathrsfs}
\usepackage{url}
\usepackage[dvips]{color}%colortext
\usepackage{longtable}% Using longtable environment
\usepackage{ifthen}% Gives \ifthenelse
\usepackage{graphicx}
\usepackage[labelfont=bf]{caption}
\usepackage{algorithm}
\usepackage{algorithmicx}
\usepackage{multirow}
\usepackage{tablefootnote}
\graphicspath{{figures/}}% Define the path to the figures colorlinks,
\usepackage[]{mcode}
\usepackage{subcaption}
%\usepackage[toc,page]{appendix}
\usepackage[titletoc,toc,page]{appendix}
\newtheorem{mydef}{Definition}
\usepackage{acronym}
\usepackage{booktabs}
% Fix referencing of nested enumerations (put a dot between counters)
\makeatletter
\renewcommand{\theenumii}{\arabic{enumii}}
\renewcommand{\labelenumii}{\theenumi.\theenumii}
\renewcommand{\p@enumii}{\theenumi.}
\makeatother
\makeatletter \@addtoreset{footnote}{chapter} \makeatother % Clear the footnote counter at every new chapter
% The following adds the hyperlinks and makes the page navigator in the pdf viewer cool
\usepackage[breaklinks, hyperindex,pdfborder={0 0 0}]{hyperref}
% This will make chapter titles show up in uppercase (however, they will be normal case in the TOC)
\renewcommand\typesetChapterTitle[1]{\uppercase{#1}}
% Notation:
%\def\listofnotation{\input symbols.tex \clearpage}
%\def\addnotation #1 #2#3{#1\> \parbox{5in}{#2 \dotfill \pageref{#3}}\\}
%\def\newnot#1{\label{#1}}
%% To speed up compilation, you can comment all commands that include chapters you're interested in till you finish each chapter separately, or use the includeonly command
%\includeonly{ch1-intro}
\include{commands}
\begin{document}
\setcounter{tocdepth}{3}
\tableofcontents
\listoffigures
\listoftables
\newpage
\chapter{CH1}
\renewcommand\pagenumbering[1]{}
\begin{appendices}
\chapter{MATLAB Code}\label{App:Matlab_Code}
\end{appendices}
\end{document}