From 7468597ec5f90276b156afe3cdc9b5fc2e7bc892 Mon Sep 17 00:00:00 2001
From: atxy <181850195@smail.nju.edu.cn>
Date: Sun, 5 Sep 2021 21:11:08 +0800
Subject: [PATCH] =?UTF-8?q?feature:=20=E5=AF=B9=E7=9B=AE=E5=BD=95=E9=A1=B5?=
 =?UTF-8?q?=E7=9A=84=E6=A0=87=E9=A2=98=E6=A0=BC=E5=BC=8F=E8=BF=9B=E8=A1=8C?=
 =?UTF-8?q?=E8=A7=84=E8=8C=83=E5=8C=96?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 njuthesis.tex          |  4 ++--
 profile/components.sty |  2 +-
 profile/page.sty       | 23 ++++++++++++++++++++++-
 profile/profile.cls    |  8 ++++----
 4 files changed, 29 insertions(+), 8 deletions(-)

diff --git a/njuthesis.tex b/njuthesis.tex
index bfd0451..3738c80 100644
--- a/njuthesis.tex
+++ b/njuthesis.tex
@@ -46,10 +46,10 @@
     \end{table}
     \section{鍥剧墖}
     浣犲彲浠ヤ娇鐢╢igure鍛戒护鎻掑叆鍥剧墖锛屼唬鐮佸涓�:
-    \begin{lstlisting}[language=Tex]
+    \begin{lstlisting}[language=TeX]
 \begin{figure}
     \centering
-    \includegraphics[width=0.4\textwidth]{njulogo}
+    \includegraphics[width=0.25\textwidth]{njulogo}
     \caption{鍗椾含澶у鏍″窘}
 \end{figure}
     \end{lstlisting}
diff --git a/profile/components.sty b/profile/components.sty
index 6c91dfd..6ca7f2c 100644
--- a/profile/components.sty
+++ b/profile/components.sty
@@ -28,7 +28,7 @@
     showspaces=false,% hide markers for spaces
     showstringspaces=false,
     captionpos=t,% place the caption at the top
-	frame=lrtb,% show all four sides of the frame
+	% frame=lrtb,% show all four sides of the frame
 	%linewidth=.8\textwidth,
 	breakatwhitespace=true,
 	breaklines=true,
diff --git a/profile/page.sty b/profile/page.sty
index 0b75212..58c659e 100644
--- a/profile/page.sty
+++ b/profile/page.sty
@@ -13,4 +13,25 @@
 % laTex榛樿1.2琛岃窛锛寃ord榛樿琛岃窛鏄�1.3锛�
 % 鎵€浠�1.5/1.2*1.3 = 1.625
 % 璇ュ唴瀹瑰凡浣滀负鍙傛暟浼犲叆ctexbook绫�
-% \linespread{1.625}
\ No newline at end of file
+% \linespread{1.625}
+
+% ctex鏍煎紡璁剧疆
+\ctexset{
+    contentsname = \songti\bfseries\zihao{3}鐩綍,
+    chapter/format = \zihao{4}\bfseries\heiti\centering,
+    section/format = \zihao{4}\bfseries\heiti\raggedright,
+    subsection/format = \zihao{4}\bfseries\heiti\raggedright,
+    subsubsection/format = \zihao{4}\bfseries\heiti\raggedright
+}
+
+% 閲嶅畾涔夌洰褰曚腑绔犺妭鏍囬鏍峰紡
+\titlecontents{chapter}[5em]{\bfseries\heiti\zihao{4} \vspace{10pt}}{\contentslabel{4em}}{}{~\titlerule*[0.6pc]{$.$}~\contentspage}
+\titlecontents{section}[5em]{\vspace{0pt}}{\contentslabel{2em}}{}{~\titlerule*[0.6pc]{$.$}~\contentspage}
+\titlecontents{subsection}[6em]{\vspace{0pt}}{\contentslabel{2em}}{}{~\titlerule*[0.6pc]{$.$}~\contentspage}
+\titlecontents{subsubsection}[6em]{\vspace{0pt}}{\contentslabel{2em}}{}{~\titlerule*[0.6pc]{$.$}~\contentspage}
+% 1.{section}:鏍囬绾у埆
+% 2.[5em]:鏍囬浣嶇疆 (宸﹂棿璺�)
+% 3.{\bfseries \zihao{5} \vspace{10pt}}:鏍囬鏍煎紡 (璁剧疆鏍囬鐨勬暣浣撴牸寮忥紝濡傚瓧浣撳昂瀵搞€佺矖缁嗐€佷笌涓婁竴涓爣棰樼殑鍨傜洿璺濈绛夛紝鍙┖缃�)
+% 4.{\contentslabel{4em}}:鏍囬鏍囧織 (璁剧疆鏍囬鏍囧織鐨勬牸寮忥紝濡傚簭鍙锋牸寮忋€佸簭鍙峰搴︺€佸簭鍙蜂笌鏍囬鍐呭涔嬮棿鐨勯棿璺濈瓑锛屼笉鍙┖缃�)
+% 5.{\hspace*{0em}}:鏃犲簭鍙锋爣棰� (璁剧疆鏃犲簭鍙锋爣棰樼殑鏍煎紡锛屽瀛椾綋銆佸瓧浣撳昂瀵搞€佷綅缃瓑銆傝鍙傛暟鍙互绌虹疆)
+% 6.{~\titlerule*[0.6pc]{$.$}~\contentspage}:鎸囧紩绾夸笌椤电爜 (璁剧疆鏍囬涓庨〉鐮佷箣闂寸殑鎸囧紩绾挎牱寮忎互鍙婇〉鐮佺殑鏍煎紡锛岃鍙傛暟濡傛灉绌虹疆锛屾爣棰樺皢鏃犳寚寮曠嚎鍜岄〉鐮�)
\ No newline at end of file
diff --git a/profile/profile.cls b/profile/profile.cls
index 64e84c1..5ba994d 100644
--- a/profile/profile.cls
+++ b/profile/profile.cls
@@ -11,10 +11,10 @@
 % ctex鏍煎紡璁剧疆
 \ctexset{
     contentsname = \songti\bfseries\zihao{3}鐩綍,
-    chapter/format = \zihao{4}\bfseries\centering,
-    section/format = \zihao{4}\bfseries\raggedright,
-    subsection/format = \zihao{4}\bfseries\raggedright,
-    subsubsection/format = \zihao{4}\bfseries\raggedright
+    chapter/format = \zihao{4}\bfseries\heiti\centering,
+    section/format = \zihao{4}\bfseries\heiti\raggedright,
+    subsection/format = \zihao{4}\bfseries\heiti\raggedright,
+    subsubsection/format = \zihao{4}\bfseries\heiti\raggedright
 }
 
 \ExplSyntaxOff
\ No newline at end of file
-- 
GitLab