Skip to content
Snippets Groups Projects
Commit fd2086c0 authored by Yu Xiong's avatar Yu Xiong :confounded:
Browse files

feature: 加入了一些新的内容控制

parent f25d53b8
No related branches found
No related tags found
No related merge requests found
\tl_const:Nn \TitleOne {曲率引擎的研究}% 第一行标题 \tl_const:Nn \TitleOne {曲率引擎的研究}% 第一行标题
\tl_const:Nn \TitleTwo {}% 第二行标题 \tl_const:Nn \TitleTwo {}% 第二行标题
\tl_const:Nn \TitleThree {}% 第三行标题 \tl_const:Nn \TitleThree {}% 第三行标题
\tl_const:Nn \Title {\TitleOne\TitleTwo\TitleThree}
\tl_const:Nn \Title_EN {Curvature~engine~research} \tl_const:Nn \Title_EN {Curvature~engine~research}
\tl_const:Nn \Grade {2017} \tl_const:Nn \Grade {2017}
\tl_const:Nn \StudentID {17184xxx} \tl_const:Nn \StudentID {17184xxx}
......
...@@ -10,7 +10,13 @@ ...@@ -10,7 +10,13 @@
} }
% %
% \PassOptionsToPackage{AutoFakeBold=2.17}{xeCJK} % \PassOptionsToPackage{AutoFakeBold=2.17}{xeCJK}
\LoadClass[a4paper,UTF8,scheme=chinese,linespread=1.625, zihao=-4]{ctexbook}[2018/04/01] \LoadClass[
a4paper,
UTF8,
scheme=chinese,
linespread=1.625,
zihao=-4
]{ctexbook}[2018/04/01]
% 输入配置文件 % 输入配置文件
\input{profile/profile.cls} \input{profile/profile.cls}
...@@ -25,4 +31,4 @@ ...@@ -25,4 +31,4 @@
} }
{ {
\NewDocumentCommand \typename {} {\Degree 毕业设计} \NewDocumentCommand \typename {} {\Degree 毕业设计}
} }
\ No newline at end of file
...@@ -15,6 +15,22 @@ ...@@ -15,6 +15,22 @@
floatwidth=\textwidth% floatwidth=\textwidth%
} }
% 代码样式
\lstset{
basicstyle=\ttfamily,% basic font
keywordstyle=\bfseries,% use bold style for keywords
commentstyle=\rmfamily\itshape,% use italic style for comments
stringstyle=\ttfamily,% 字符串风格
flexiblecolumns,% ?
numbers=left,% left-aligned numbering
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
%linewidth=.8\textwidth,
xleftmargin=2em,xrightmargin=2em,% set the width of the code environment
}
% 图表标题样式 % 图表标题样式
\DeclareCaptionFont{songtibf}{\bf\songti} \DeclareCaptionFont{songtibf}{\bf\songti}
\captionsetup{ \captionsetup{
...@@ -37,3 +53,11 @@ ...@@ -37,3 +53,11 @@
textfont=songtibf, textfont=songtibf,
labelfont=songtibf labelfont=songtibf
} }
% list configuration
\renewcommand{\labelitemi}{\small$\blacktriangleright$}
\renewcommand{\labelitemii}{\textbullet}
\setlist[itemize]{noitemsep}
\setlist[enumerate]{noitemsep}
\setlist[description]{noitemsep}
...@@ -8,9 +8,6 @@ ...@@ -8,9 +8,6 @@
\makebox[4.2em][s]{#1} \makebox[4.2em][s]{#1}
} }
% 将三行标题拼接为一行
\tl_const:Nn \Title {\TitleOne\TitleTwo\TitleThree}
% 封面标题 % 封面标题
\tl_new:N \cover_oneline_title \tl_new:N \cover_oneline_title
\tl_set:Nn \cover_oneline_title { \tl_set:Nn \cover_oneline_title {
......
...@@ -10,4 +10,5 @@ ...@@ -10,4 +10,5 @@
% 行距为1.5倍 word行距 % 行距为1.5倍 word行距
% laTex默认1.2行距,word默认行距是1.3, % laTex默认1.2行距,word默认行距是1.3,
% 所以1.5/1.2*1.3 = 1.625 % 所以1.5/1.2*1.3 = 1.625
\linespread{1.625} % 该内容已作为参数传入ctexbook类
\ No newline at end of file % \linespread{1.625}
\ No newline at end of file
...@@ -11,16 +11,24 @@ ...@@ -11,16 +11,24 @@
\RequirePackage{expl3} \RequirePackage{expl3}
\RequirePackage{xparse} \RequirePackage{xparse}
\RequirePackage{titlesec} \RequirePackage{titlesec}
\RequirePackage[hyphens]{url} % generate better linebreaks in the url
\RequirePackage{graphicx} \RequirePackage{graphicx}
\RequirePackage{wrapfig} % Wrap text around figures
\RequirePackage{ulem} \RequirePackage{ulem}
\RequirePackage{setspace} \RequirePackage{setspace}
\RequirePackage{fontspec} \RequirePackage{fontspec}
\RequirePackage{listings} \RequirePackage{listings}
\RequirePackage{enumitem} % 用于修改列表环境
\RequirePackage{caption} \RequirePackage{caption}
\RequirePackage{floatrow}% 用于图表等页面元素的定位 \RequirePackage{floatrow} % 用于图表等页面元素的定位
\RequirePackage{booktabs}% 用于绘制三线表 \RequirePackage{booktabs} % 用于绘制三线表
\RequirePackage{siunitx}% 用于书写单位符号 \RequirePackage{siunitx} % 用于书写单位符号
\RequirePackage[version=4]{mhchem}% 用于绘制分子式 \RequirePackage[version=4]{mhchem} % 用于绘制分子式
\RequirePackage{wrapfig} % Wrap text around figures
\RequirePackage{amssymb} % Must be loaded before unicode-math
\RequirePackage{unicode-math} % Math fonts in xetexorluatex
\DeclareGraphicsExtensions{.pdf,.eps,.jpg,.png} \DeclareGraphicsExtensions{.pdf,.eps,.jpg,.png}
\graphicspath{{./}{./img/}{./fig/}{./image/}{./figure/}{./picture/}{./imgs/}{./figs/}{./images/}{./figures/}{./pictures/}} \graphicspath{{./}{./img/}{./fig/}{./image/}{./figure/}{./picture/}{./imgs/}{./figs/}{./images/}{./figures/}{./pictures/}}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment