{"id":14173152,"url":"https://github.com/huanyushi/SYSU-SPA-Labreport-Template","last_synced_at":"2025-08-06T23:32:12.481Z","repository":{"id":160412415,"uuid":"625645267","full_name":"huanyushi/SYSU-SPA-Labreport-Template","owner":"huanyushi","description":"中山大学-物理与天文学院-本科实验报告LaTeX模板","archived":false,"fork":false,"pushed_at":"2024-10-27T11:45:21.000Z","size":4372,"stargazers_count":17,"open_issues_count":1,"forks_count":3,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-11-26T06:42:49.537Z","etag":null,"topics":["labreport","latex","latex-template"],"latest_commit_sha":null,"homepage":"","language":"TeX","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/huanyushi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-04-09T18:46:19.000Z","updated_at":"2024-11-14T13:30:15.000Z","dependencies_parsed_at":null,"dependency_job_id":"e3e353df-3e1c-4414-9b2f-83d4bb81b8bd","html_url":"https://github.com/huanyushi/SYSU-SPA-Labreport-Template","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/huanyushi%2FSYSU-SPA-Labreport-Template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/huanyushi%2FSYSU-SPA-Labreport-Template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/huanyushi%2FSYSU-SPA-Labreport-Template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/huanyushi%2FSYSU-SPA-Labreport-Template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/huanyushi","download_url":"https://codeload.github.com/huanyushi/SYSU-SPA-Labreport-Template/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228967980,"owners_count":17999440,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["labreport","latex","latex-template"],"created_at":"2024-08-17T23:01:27.620Z","updated_at":"2025-08-06T23:32:12.464Z","avatar_url":"https://github.com/huanyushi.png","language":"TeX","funding_links":[],"categories":["Popular \u0026 New LaTeX Templates"],"sub_categories":["Others"],"readme":"\u003cdiv align='center'\u003e\n\n# SYSU-SPA-Labreport-Template\n\n\u003cb\u003e中山大学物理与天文学院本科实验报告LaTeX模板\u003c/b\u003e \n\n\u003cb\u003e\u003ca href='README_EN.md'\u003eEnglish version\u003c/a\u003e\u003c/b\u003e \n\n![GitHub license](https://img.shields.io/github/license/huanyushi/SYSU-SPA-labreport-Template.svg) ![Github Version](https://img.shields.io/github/release/huanyushi/SYSU-SPA-labreport-Template.svg)\n\u003cp align = \"center\"\u003e\n\u003cimg src=\"images/example.png\" width=\"20%\" /\u003e\n\u003c/p\u003e\n\u003c/div\u003e\n\n大家好，我是中山大学物理与天文学院 2019 级物理系本科生 Huanyu Shi。\n\n这份模板源于我大二一时兴起所做。学院当时提供的实验报告模板仅限于简单的 Word 文件，而 Word 在编辑效率和排版美观方面都存在一定的不足。基于学院模板的基本格式，我设计并完成了这个 LaTeX 模板，以提高报告的撰写效率和呈现效果。\n\n临近毕业，我偶然发现此模板在学院内部仍有流传，但毕竟当时制作中并不规范，功能上也有不足之处。考虑到种种原因，**我决定将此模板进行更新完善并打包公布在 GitHub 和知乎上**，方便有需要的同学参考使用。希望它不仅能为本学院的后辈学子提供帮助，也能为其他院校的同学提供一些参考借鉴。\n\t\n模板 Demo 请见 [PDF](https://cdn.jsdelivr.net/gh/huanyushi/blog-images@main/pdf/SYSU-SPA-LabReport-Template.pdf) ，源码可在 [release](https://github.com/huanyushi/SYSU-SPA-Labreport-Template/releases) 上下载。\n\n## 1. 模板功能说明\n\n### 1.1. 更新内容\n\n这份模板经过本次更新后，除几个必要的实验报告部分：\n* 扉页\n* 预习报告\n* 实验记录\n* 分析与讨论\n\n在此前的实验报告基础上我增加了以下几个内容：\n* **参考文献**，注明引用内容是是作者对他人知识成果的承认和尊重，是保证学术诚信必须养成的习惯；\n\n* **代码附录**，给出了使用 Lstlisting 环境展示代码的示例；\n\n* **常用命令展示**，鉴于部分学生初次接触 LaTeX，本模板也给出了相应的常用命令展示以方便查阅。\n\n### 1.2. 注意事项\n1. 参考文献应导入 `bib` 文件中，编译顺序请按 `xelatex` -\u003e `bibtex` -\u003e `xelatex` -\u003e `xelatex`， 若要调整参考文献的格式在 `main.tex` 中修改 `\\bibliographystyle{}` 即可；\n2. `lstlisting` 代码环境配置示例如下，其中导入的是 `Python` 语言，可手动更改或添加其他程序语言，其他相关配置可参考 `listings` 宏包的手册，\n```latex\n\\usepackage{listings}\n\\definecolor{c1}{HTML}{2752C9} % 定义的颜色\n\\lstloadlanguages{python}\n\\lstdefinestyle{pythonstyle}{\nbackgroundcolor=\\color{gray!5},\nlanguage=python,\nframeround=tftt,\nframe=shadowbox, \nkeepspaces=true,\nbreaklines,\ncolumns=spaceflexible,                   \nbasicstyle=\\ttfamily\\small, % 基本文本设置，字体为 teletype，大小为 small\nkeywordstyle=[1]\\color{c1}\\bfseries, \nkeywordstyle=[2]\\color{Red!70!black},   \nstringstyle=\\color{Purple},       \nshowstringspaces=false,\ncommentstyle=\\ttfamily\\scriptsize\\color{green!40!black}, % 注释文本设置，字体为 teletype，大小为 scriptsize\ntabsize=2,\nmorekeywords={as},\nmorekeywords=[2]{np, plt, sp},\nnumbers=left, % 代码行数，位置在左\nnumberstyle=\\it\\tiny\\color{gray}, % 代码行数的数字字体设置\nstepnumber=1,\nrulesepcolor=\\color{gray!30!white}\n}\n```\n![](images/readme1.jpg)\n3. 本模板定义了两种形式的 `box` ，可参考 `tcolorbox` 宏包的手册进行修改，\n```latex\n\\usepackage{tcolorbox}\n\\tcbuselibrary{skins,breakable}\n\\newtcolorbox{tbox}[2][]{\n    colframe=black!70!,\n    breakable,\n    enhanced,\n\tboxrule =0.5pt,\n    title = {#2},\n    fonttitle = \\large\\bfseries,\n\tdrop fuzzy shadow,\n    #1\n}\n\\newtcolorbox[auto counter,number within=section]{question}[1][]{\n  top=2pt,bottom=2pt,arc=1mm,\n  boxrule=0.5pt,\n  breakable,\n  enhanced, % 跨页后不会显示下边框\n  coltitle=c1!80!gray,\n  colframe=c1,\n  colback=c1!3!white,\n  drop fuzzy shadow,\n  title={思考题~\\thetcbcounter：\\quad},\n  fonttitle=\\bfseries,\n  attach title to upper,\n  #1\n}\n```\n![](images/readme2.jpg)\n4. TikZ 是一个知名的绘图宏包（不过它的文档说明高达 1000 多页，学习成本略高），在此补充了一些 TikZ 实例\n![](images/readme3.JPG)\n\n## 2. 声明\n* 本模板仅供学习交流所用，非学院官方模板。\n* 本模板不再进行更新维护，若有任何额外需求请自行设计更改。\n* **欢迎报考中山大学物理与天文学院**。\n\n## 3. 许可证\n该项目是在 [MIT](https://github.com/huanyushi/SYSU-SPA-Labreport-Template/blob/main/LICENSE) 许可下发布的。","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhuanyushi%2FSYSU-SPA-Labreport-Template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhuanyushi%2FSYSU-SPA-Labreport-Template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhuanyushi%2FSYSU-SPA-Labreport-Template/lists"}