Skip to content

Commit

Permalink
feat:修改优化排版
Browse files Browse the repository at this point in the history
  • Loading branch information
wrm244 committed Dec 22, 2023
1 parent 977848f commit 9d76ad0
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 15 deletions.
Binary file modified main.pdf
Binary file not shown.
30 changes: 17 additions & 13 deletions main.tex
Original file line number Diff line number Diff line change
@@ -1,20 +1,24 @@
%!TeX encoding = UTF-8
%!TeX program = xelatex
% --------------------------------------------------------
% 欢迎使用桂林电子科技大学本科毕业论文LaTex模板(v2.0)
% 项目:https://github.com/wrm244/GUEThesis
% 请参考项目目录下的docs文件夹额外说明
% 欢迎使用桂林电子科技大学本科毕业论文LaTex模板(v3.0)
% 项目:https://github.com/wrm244/GUEThesis
% 请参考项目目录下的docs文件夹额外说明
% --------------------------------------------------------
\special{dvipdfmx:config z 1}
% 修改数值是否压缩,1:压缩,0:不压缩,不压缩会加快编译速度,但会增加PDF体积

\documentclass[eversion]{./style/thesis-guet}
\documentclass[eversion]{thesis-guet}
% documentclass[]参数:eversion:电子版 pversion:打印版
% \usepackage{showframe} % 显示排版框架
% \TPshowboxestrue % 显示textblock 框架,方便调整位置

\definecolor{shadecolor}{RGB}{255,204,75} % 定义高亮颜色
\graphicspath{{./image/},{./image/chapter1/},{./image/chapter2/}}% 图片所在位置

% ------------------------------------------------------------
% ----------------------------------------------
% 文章信息
% ------------------------------------------------------------
% ----------------------------------------------
\title{桂林电子科技大学毕业论文标题}{} % 题目{中文}{英文}
\author{你的名字}
\advisor{教师名字} % 导师姓名
Expand All @@ -25,9 +29,9 @@
\degreecategories{工学学士} % 申请学位门类或类别
\datereply{\today} % 可更换为具体日期如:\datereply{2023年5月28日}

% -------------------------------------------------------------
% -----------------------------------------------
% 封面
% -------------------------------------------------------------
% -----------------------------------------------
\begin{document}
\makecover % 封面
%也可使用另外添加PDF文件作为封面,如盲审封面 \bindpdfcover{盲审学位论文封面(示例).pdf}
Expand All @@ -36,18 +40,18 @@
\input{chapters/abstract} % 摘要
\thesistableofcontents % 目录

% -------------------------------------------------------------
% 论文各章节(详见目录下chapter文件夹)
% -------------------------------------------------------------
% -------------------------------------------------
% 论文各章节(详见目录下chapter文件夹)
% -------------------------------------------------
\input{chapters/chapter1}
\input{chapters/chapter2}
\input{chapters/chapter3}
\input{chapters/chapter4}
\input{chapters/chapter5} % 可根据需求自行添加章节数
\input{chapters/conclusion} % 总结与展望
% -------------------------------------------------------------
% --------------------------------------------------
% 参考文献
% -------------------------------------------------------------
% --------------------------------------------------
\thesisbibliography{./references/reference.bib} % 参考文献
%当参考文献数目超过100时,可以使用large选项调整编号\thesisbibliography{large}{./references/reference.bib}

Expand Down
5 changes: 3 additions & 2 deletions style/thesis-guet.cls → thesis-guet.cls
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
%此文件为全局设置
\ProvidesClass{./style/thesis-guet}
\ProvidesClass{thesis-guet}

\LoadClass[12pt,a4paper, openany, twoside]{book} % openright,openany
\RequirePackage{ifxetex} %需要ifxetex,在LaTeX类和包文件中使用另一个包文件:ifxetex
\RequireXeTeX %需要使用XeLatex编译tex文件,不然会报错。
\RequirePackage[usenames,dvipsnames,svgnames,table]{xcolor}
\RequirePackage[dvipsnames,svgnames,table]{xcolor}
\RequirePackage{graphicx} % 图片
\RequirePackage[font={onehalfspacing, small}, labelsep=space, skip=6pt, figurewithin=none, tablewithin=none]{caption} % figurewithin=none, tablewithin=none 将book 类中向figure of list 添加 10pt间距的命令取消,但也会使得图表章与章之间连续编号,因此需要设置对应计数器每章重置
\RequirePackage{array}
Expand All @@ -22,6 +22,7 @@
\RequirePackage{xeCJK} % 对全局字体进行设置
\RequirePackage{datetime}
\RequirePackage{ifplatform}

% ===============符号说明相关宏===============
\RequirePackage{framed} % Framing content
\RequirePackage{multicol} % Multiple columns environment
Expand Down

0 comments on commit 9d76ad0

Please sign in to comment.