From 9adf332e6551a051a7327b8eeb488408d9765ce7 Mon Sep 17 00:00:00 2001 From: Xie Chong <205042081@qq.com> Date: Wed, 17 Jan 2024 18:50:15 +0800 Subject: [PATCH] first commit --- LICENSE | 4 + README.md | 44 +++++ SYSUReport.cls | 161 +++++++++++++++++ figures/cug.png | Bin 0 -> 1172446 bytes figures/fig1.png | Bin 0 -> 64621 bytes figures/fig2.png | Bin 0 -> 42148 bytes figures/fig3.png | Bin 0 -> 161403 bytes figures/fig4.png | Bin 0 -> 51395 bytes figures/sysu_report.png | Bin 0 -> 65129 bytes main.tex | 375 ++++++++++++++++++++++++++++++++++++++++ reference.bib | 22 +++ 11 files changed, 606 insertions(+) create mode 100644 LICENSE create mode 100644 README.md create mode 100644 SYSUReport.cls create mode 100644 figures/cug.png create mode 100644 figures/fig1.png create mode 100644 figures/fig2.png create mode 100644 figures/fig3.png create mode 100644 figures/fig4.png create mode 100644 figures/sysu_report.png create mode 100644 main.tex create mode 100644 reference.bib diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..f3808c2 --- /dev/null +++ b/LICENSE @@ -0,0 +1,4 @@ +Creative Commons Attribution 4.0 International License (CC BY 4.0) +This work is licensed under the Creative Commons Attribution 4.0 International License. + +To view a copy of this license, visit http://creativecommons.org/licenses/by/4.0/ or send a letter to Creative Commons, PO Box 1866, Mountain View, CA 94042, USA. \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..5799402 --- /dev/null +++ b/README.md @@ -0,0 +1,44 @@ +
+ 基于中山大学非官方的课程大作业模版修改 +
+ + +## 介绍 +- 用于CUG课程大作业/结课汇报的通用简易Latex模板 +- 在[中山大学模板](https://www.texpage.com/template/21db014e-5065-448c-a6f2-545b983aee2d)的基础上进行了修改 + +## 模板下载 + +* 页面右边点击:**Clone or download -> Download Zip** +* 已经上传至Overleaf 和 TexPage 模板,开箱即用 ☞ [Overleaf](https://www.overleaf.com/latex/templates/sysu-latex-template/dxwrhzbydxyq), [TexPage](https://www.texpage.com/template/21db014e-5065-448c-a6f2-545b983aee2d) + +## 使用方法 +默认模板文件由以下四部分组成: + +- `main.tex` 主文件,包含报告正文 +- `reference.bib` 参考文献列表 +- `SYSUReport.sty` 文档格式控制 +- `figures` 放置图片的文件夹,模板中现在包含院校LOGO和效果预览图。 + +使用时只需要修改 `main.tex` 和 `reference.bib` 即可,论文插图可以放在 `figures` 文件夹下,模板可以自动识别常见的插图文件夹,如 `figures`、`image`、`img` 等。 + +--------- +**推荐使用[TexPage](https://www.texpage.com/)** 在线进行文档的编写和编译,无需进行本地安装。在不进行其他网络设置的情况下,国内访问的速度和稳定性也要比 Overleaf 好一些。本模板已经上传至 TexPage,可以直接进行使用,[TexPage 在线模板链接](https://www.texpage.com/template/21db014e-5065-448c-a6f2-545b983aee2d)。当然模板也上传了 Overleaf,[Overleaf 在线模板链接](https://www.overleaf.com/latex/templates/sysu-latex-template/dxwrhzbydxyq)。 + +--------- + +| [封面效果图](https://github.com/NorthSecond/SYSU_Latex_Template/blob/main/figures/sysu_report.png) | [目录效果图](https://github.com/NorthSecond/Latex_Template/blob/main/figures/index.png)| +|:---:|:---:| +|  | | + +## 参考 + ++ [国科大通用课程大作业模板](https://github.com/jweihe/UCAS_Latex_Template) ++ [GBT7714-2015标准下的BibTex样式](https://github.com/zepinglee/gbt7714-bibtex-style) ++ [国科大学位论文LaTeX模板](https://github.com/mohuangrui/ucasthesis) ++ [北京大学课程论文模板](https://www.overleaf.com/latex/templates/bei-jing-da-xue-ke-cheng-lun-wen-mo-ban/yntmqcktrzfh) ++ [中山大学课程论文模板](https://www.texpage.com/template/21db014e-5065-448c-a6f2-545b983aee2d) \ No newline at end of file diff --git a/SYSUReport.cls b/SYSUReport.cls new file mode 100644 index 0000000..c6c8508 --- /dev/null +++ b/SYSUReport.cls @@ -0,0 +1,161 @@ +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% SYSU 课程论文模板 +% 作者:NorthSecond +% License: Creative Commons CC BY 4.0 +% GitHub: https://github.com/NorthSecond/SYSU_Latex_Template +% Overleaf: +% 在UCAS_Latex_Template基础上修改而来, 原作者:jweihe +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +%%UCAS课程论文模板 +%%作者:jweihe +%%License:Creative Commons CC BY 4.0 +%%GitHub:https://github.com/jweihe/UCAS_Latex_Template +%%Overleaf:https://www.overleaf.com/latex/templates/zhong-guo-ke-xue-yuan-da-xue-ke-cheng-lun-wen-mo-ban/nphpxhhqvnds + +%%最后更改于2023/06/05 +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + + +%%在"北京大学课程论文模板"基础上修改而来 +%%原作者:Shawn Wang +%%Overleaf地址:https://www.overleaf.com/latex/templates/bei-jing-da-xue-ke-cheng-lun-wen-mo-ban/yntmqcktrzfh + + +\ProvidesClass{SYSUReport} +\LoadClass[12pt,hyperref,a4paper,UTF8]{ctexart} +%%页边距 +\RequirePackage[left=2.50cm, right=2.50cm, top=2.50cm, bottom=2.50cm]{geometry} + + +%%一些必要的宏包 +\RequirePackage[unicode=true,colorlinks,urlcolor=blue,linkcolor=blue,bookmarksnumbered=blue]{hyperref} + +\RequirePackage{latexsym,amssymb,amsmath,amsbsy,amsopn,amstext,amsthm,amsxtra,color,bm,calc,ifpdf} +\RequirePackage{graphicx} +\RequirePackage{enumerate} +\RequirePackage{fancyhdr} +\RequirePackage{listings} +\RequirePackage{multirow} +\RequirePackage{makeidx} +\RequirePackage{xcolor} +\RequirePackage{fontspec} +\RequirePackage{subfigure} +\PassOptionsToPackage{hyphens}{url} +\RequirePackage{hyperref} +\RequirePackage{booktabs} +\RequirePackage{tcolorbox} + +\definecolor{myteal}{cmyk}{1,0,1,0.60} % 主题色改为中大绿 +%% 更改摘要二字的样式 +\renewcommand{\abstractname}{\textbf{\large {摘\quad 要}}} + +%可固定下划线长度 +\makeatletter +\newcommand\dlmu[2][4cm]{\hskip1pt\underline{\hb@xt@ #1{\hss#2\hss}}\hskip3pt} +\makeatother + +% %更改主题 +\hypersetup{ + colorlinks=true, + linkcolor=black, + filecolor=blue, + urlcolor=magenta, + citecolor=orange, + linktoc=all, +} + +%%对一些autoref的中文引用名作修改 +\def\equationautorefname{式} +\def\footnoteautorefname{脚注} +\def\itemautorefname{项} +\def\figureautorefname{图} +\def\tableautorefname{表} +\def\partautorefname{篇} +\def\appendixautorefname{附录} +\def\chapterautorefname{章} +\def\sectionautorefname{节} +\def\subsectionautorefname{小小节} +\def\subsubsectionautorefname{subsubsection} +\def\paragraphautorefname{段落} +\def\subparagraphautorefname{子段落} +\def\FancyVerbLineautorefname{行} +\def\theoremautorefname{定理} + +\newtheorem{Theorem}{定理}[section] +\newtheorem{Lemma}[Theorem]{引理} +\newtheorem{Corollary}[Theorem]{推论} +\newtheorem{Proposition}[Theorem]{命题} +\newtheorem{Definition}[Theorem]{定义} +\newtheorem{Example}[Theorem]{例} + +%%文本框设置 +\newcommand{\tbox}[1]{ + \begin{center} + \begin{tcolorbox}[colback=gray!10,%gray background + colframe=black,% black frame colour + width=8cm,% Use 8cm total width, + arc=1mm, auto outer arc, + boxrule=0.5pt, + ] + {#1} + \end{tcolorbox} + \end{center} +} + +\newcommand\headl[1]{\def\headl{#1}} +\newcommand\headc[1]{\def\headc{#1}} +\newcommand\headr[1]{\def\headr{#1}} +\newcommand\lessonTitle[1]{\def\lessonTitle{#1}} +\newcommand\reportTitle[1]{\def\reportTitle{#1}} +\newcommand\stuname[1]{\def\stuname{#1}} +\newcommand\stuid[1]{\def\stuid{#1}} +\newcommand\inst[1]{\def\inst{#1}} +\newcommand\major[1]{\def\major{#1}} +\renewcommand\date[1]{\def\date{#1}} + +%%页眉设置 +\pagestyle{fancy} +\fancyhead[L]{\fangsong {\headl}} +\fancyhead[C]{\fangsong {\headc}} +\fancyhead[R]{\fangsong {\headr}} +%% 去掉页眉横线 +\renewcommand{\headrulewidth}{0pt} + +%% 常用图片文件夹路径 +\graphicspath{{figures/}{figure/}{pictures/}{picture/}{pic/}{pics/}{image/}{images/}} + +%%在这里可更改封面logo +\newcommand{\cover}{ + %%封面校名logo,图片都在figures文件夹里 + \begin{center} + \begin{figure} + \centering + \vspace{2cm} + \includegraphics[width=0.6\textwidth]{cug.png} + \end{figure} + + \vspace*{\fill} + + \heiti \Huge \textbf{{\lessonTitle}} \par + \vspace{1cm} + \heiti \Large {\underline{\reportTitle}} \par + \vspace{3cm} + + \vspace{0.5cm} + \kaishu\Large 姓\ 名\ \dlmu[9cm]{\stuname} \qquad \\ %姓名 + \vspace{0.5cm} + \kaishu\Large 学\ 号\ \dlmu[9cm]{\stuid} \qquad \\ %学号 + \vspace{0.5cm} + \kaishu\Large 学\ 院\ \dlmu[9cm]{\inst} \qquad \\ %院所 + \vspace{0.5cm} + \kaishu\Large 专\ 业\ \dlmu[9cm]{\major} %专业 + + + \vspace*{\fill} + + \large \date + \end{center} +} + diff --git a/figures/cug.png b/figures/cug.png new file mode 100644 index 0000000000000000000000000000000000000000..626fa764bcce9f4bb8c39c7ec71e383493fb86d9 GIT binary patch literal 1172446 zcmZ_0WmFvNwly3G?ykWbx8T8D8h4lA+PG^7?$B6pYuw%4AwY1~;10npU(UUI@9&)R zj{D;oRb5@<=^CS!%r)0s9igl!jfzBs^zPj|RG^H6>brM{{O{gDDY@bb1V
z!Me?ZQn`Sy1t0lR%7-D|;|8(ypOu3TlT$KHws`?(7~(<3lfRohcQ(#5X1a0ube11HaYjVB|`VT)(5_V<36E4Q3$Cz7?Z@vuuXzS`unihouh}@lU
z2YU)K;1^@=?f%P+|1|J^)B2+OC(&x}aUJ<=J6)cRmwmAq-t}x2P%h^q!_~K&m%ZYH
zvlQe&qQdW;?^+H&-j;um`deynfdr$9HNR4r73ir45(|_RJSLQV>&steeNpPREia9n
zpHVi;>Vc$)fPAbTIF8kRoXhxS$>WbI)dd~`w3y*QFeD*NL6L@_kftX4pGPT$=_hwT
zq=l@0|D0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