Skip to content

Commit

Permalink
修改主体
Browse files Browse the repository at this point in the history
  • Loading branch information
francisol committed Apr 11, 2022
1 parent 8b39ecf commit 15fc539
Show file tree
Hide file tree
Showing 6 changed files with 117 additions and 164 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@
*.blg
*.bcf
*.bbl
*.run.xml
*.run.xml
*.toc
72 changes: 69 additions & 3 deletions GZUthesis.cls
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,14 @@

\NeedsTeXFormat{LaTeX2e}[1995/12/01]
\ProvidesClass{GZUthesis}[2022/04/30 v0.1 GZUthesis]
\LoadClass[cs4size,a4paper,fancyhdr,fntef]{book}
\LoadClass[cs4size,a4paper,fancyhdr,fntef]{article}
\RequirePackage{ctex}
\RequirePackage{ifthen}
\RequirePackage{geometry}
\RequirePackage{hyperref}
\RequirePackage{etoolbox}
\RequirePackage{appendix}
\RequirePackage{setspace,titletoc,fancyhdr,pdfpages,caption}
\RequirePackage[backend = biber, style=biblatex/gb7714_2015]{biblatex}
% \RequirePackage{setspace}
% \setstretch{1.2}
Expand Down Expand Up @@ -45,9 +48,31 @@
\newcommand{\infodeatailfont}{\heiti\fontsize{16pt}{\baselineskip}}


\newenvironment{abstract}[1][摘要]{%
% 修改“目录”样式
\renewcommand*\contentsname{\centerline{目录} }

\setcounter{secnumdepth}{3}
\setcounter{tocdepth}{3}
\titlecontents{section}[0pt]{\addvspace{2pt}\filright}
{\contentspush{\thecontentslabel }\ }
{}{\titlerule*[8pt]{.}\contentspage}
\titlecontents{subsection}[2em]{\addvspace{2pt}\filright}
{\contentspush{\thecontentslabel }\ }
{20pt}{\titlerule*[8pt]{.}\contentspage}
\titlecontents{subsubsection}[4em]{\addvspace{2pt}\filright}
{\contentspush{\thecontentslabel }\ }
{20pt}{\titlerule*[8pt]{.}\contentspage}

\ctexset{bibname=\centering{参考文献}}
% 重定义摘要
\renewenvironment{abstract}[1][摘要]{%
\section*{\ }
\centerline{\abstractHeadFont \uppercase{#1}}
\par
\addcontentsline{toc}{section}{\uppercase{#1}}
\songti\fontsize{12pt}{\baselineskip}
\font\rm="Times New Roman" at 12pt \rm
\selectfont
\par
\abstractContentFont
}{\newline}

Expand Down Expand Up @@ -78,3 +103,44 @@
\thispagestyle{empty}
\newpage
}
\renewcommand{\bibfont}{\setstretch{1} \zihao{5} \heiti \font\rm="SimSun" at 10.5pt \rm}
% 致谢
\newenvironment{thank}{
% \begin{center}
% \heiti \fontsize{15pt}{\baselineskip} \section*{致谢}
\section*{\centerline{致谢}}
\addcontentsline{toc}{section}{致谢}
% \end{center}
}{}

\renewcommand{\captionfont}{\zihao{5} \heiti \font\rm="SimHei" at 10.5pt \rm }
\newcommand\page{
\pagenumbering{Roman}
% \pagestyle{fancy}
}
\newcommand\content{
\pagenumbering{arabic}
% \chead{
% \begin{spacing}{0.5}
% \fontsize{12pt}{\baselineskip}\heiti 贵州大学本科毕业论文(设计)
% \end{spacing}
% }
% \lhead{\ \ \ \ \ \ \ \ \ \ \ \includegraphics[width=1.91cm]{figures/login.jpg}}
% \rhead{
% \begin{spacing}{0.5}
% \fontsize{12pt}{\baselineskip} 第\ \ \thepage \ \ 页
% \end{spacing}
% }
% \cfoot{}
% \pagestyle{fancy}
}


\defbibheading{bibliography}[\bibname]{%
\section*{\centering 参考文献}%
\addcontentsline{toc}{section}{参考文献}
}

\newcommand{\promise}{\includepdf{figures/page.pdf}}

\renewcommand{\appendixname}{Appendix~\Alph{section}}
8 changes: 7 additions & 1 deletion README.MD
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,10 @@
制作方: 贵州大学计算机科学与技术学院


![format](img/format.png)
![format](img/format.png)
## Task
- [ ] 首页格式调整
- [ ] 答辩委员会名单
- [ ] 附录
- [x] 摘要关键字
- [x] 目录
15 changes: 15 additions & 0 deletions reference.bib
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
@article{gates1995road,
title={The road ahead},
author={Gates, Bill and Myhrvold, Nathan and Rinearson, Peter and Domonkos, Donald},
year={1995},
publisher={Viking New York}
}
@article{孙其博2010物联网,
title={物联网: 概念, 架构与关键技术研究综述},
author={孙其博 and 刘杰 and 黎羴 and 范春晓 and 孙娟娟 and others},
journal={北京邮电大学学报},
volume={33},
number={3},
pages={1--9},
year={2010}
}
Loading

0 comments on commit 15fc539

Please sign in to comment.