summaryrefslogtreecommitdiff
path: root/macros/unicodetex/latex/njuthesis/profile/page.sty
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2021-09-12 03:05:00 +0000
committerNorbert Preining <norbert@preining.info>2021-09-12 03:05:00 +0000
commitcac1f99f7d65e4d3c8bc7575c30f6b1bc605a683 (patch)
tree5f9e3be4c324b6dd447d114753337b4977615c64 /macros/unicodetex/latex/njuthesis/profile/page.sty
parentbbb409a0db8bab4e45fd1fa3e7f269a855296bbc (diff)
CTAN sync 202109120304
Diffstat (limited to 'macros/unicodetex/latex/njuthesis/profile/page.sty')
-rw-r--r--macros/unicodetex/latex/njuthesis/profile/page.sty54
1 files changed, 54 insertions, 0 deletions
diff --git a/macros/unicodetex/latex/njuthesis/profile/page.sty b/macros/unicodetex/latex/njuthesis/profile/page.sty
new file mode 100644
index 0000000000..e926fa73ea
--- /dev/null
+++ b/macros/unicodetex/latex/njuthesis/profile/page.sty
@@ -0,0 +1,54 @@
+\ProvidesExplPackage{profile/page}{2021-09-11}{0.6.0}{NJU Thesis page layout}
+
+% 论文页码 页脚居中、五号阿拉伯数字(新罗马体)连续编码
+\fancypagestyle{njuplain}{%
+ \fancyhead{}
+ \fancyfoot[C]{\zihao{5}\thepage}
+}
+% the header line
+\tl_set:Nn \headrulewidth {0pt}
+% the footer line
+\tl_set:Nn \footrulewidth {0pt}
+
+\AtBeginDocument{\pagestyle{njuplain}} % 无页眉页脚
+
+% ctex格式设置
+% 目录标题 三号宋体加粗
+% 各部分标题 四号黑体
+\ctexset{
+ contentsname = \songti\bfseries\zihao{3}目\hspace{2em} 录,
+ chapter/format = \zihao{4}\heiti\centering,
+ section/format = \zihao{4}\heiti\raggedright,
+ subsection/format = \zihao{4}\heiti\raggedright,
+ subsubsection/format = \zihao{4}\heiti\raggedright
+}
+
+% 重定义目录中章节标题样式
+% 目录内容中章的标题 四号黑体
+% 目录中其他内容 小四号宋体
+\titlecontents{chapter}% 标题级别
+ [5em]% 标题左间距
+ {\heiti\zihao{4}\vspace{10pt}}% 标题格式
+ {\contentslabel{4em}}% 标题标志
+ {\hspace*{-4em}}% 无序号标题
+ {~\titlerule*[0.6pc]{$.$}~\contentspage}% 指引线与页码
+
+\titlecontents{section}
+ [5em]
+ {\zihao{-4}\vspace{0pt}}
+ {\contentslabel{2.5em}}
+ {\hspace*{-4em}}
+ {~\titlerule*[0.6pc]{$.$}~\contentspage}
+
+\titlecontents{subsection}
+ [8em]
+ {\zihao{-4}\vspace{0pt}}
+ {\contentslabel{3em}}
+ {\hspace*{-4em}}
+ {~\titlerule*[0.6pc]{$.$}~\contentspage}
+
+% 将目录页插入pdf书签
+\let\savedtableofcontents\tableofcontents
+\renewcommand{\tableofcontents}{%
+ \pdfbookmark{目录}{目录}
+ \savedtableofcontents}