Repository navigation
添加mono模块更新了undergraduate的格式说明 #690
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,33 @@ | ||
|
|
||
| name: Auto test | ||
|
|
||
| on: | ||
| push: | ||
| pull_request: | ||
| branches: | ||
| - master | ||
|
|
||
| jobs: | ||
| work: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| with: | ||
| # github action 默认签出只包含最后一次提交 | ||
| # 解决方案参考:https://stackoverflow.com/questions/62334460/git-history-in-a-github-action | ||
| ref: ${{ github.event.pull_request.head.sha }} | ||
| fetch-depth: 0 | ||
|
|
||
| # 触发论文的 action | ||
| - name: Compile LaTeX document | ||
| uses: xu-cheng/latex-action@v3 | ||
| with: | ||
| working_directory: . | ||
| root_file: hutbthesis_main.tex | ||
| texlive_version: 2023 | ||
| latexmk_use_xelatex: true | ||
| # 下载安装Times New Roman字体 | ||
| pre_compile: | | ||
| apk add msttcorefonts-installer fontconfig | ||
| update-ms-fonts | ||
| fc-cache -f |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,246 @@ | ||
| ## Core latex/pdflatex auxiliary files: | ||
| *.aux | ||
| *.lof | ||
| *.log | ||
| *.lot | ||
| *.fls | ||
| *.out | ||
| *.toc | ||
| *.fmt | ||
| *.fot | ||
| *.cb | ||
| *.cb2 | ||
| .*.lb | ||
| clean.bat | ||
| elegant*-cn.pdf | ||
| elegant*-en.pdf | ||
| *.dates | ||
|
|
||
| ## Intermediate documents: | ||
| *.dvi | ||
| *.xdv | ||
| *-converted-to.* | ||
| # these rules might exclude image files for figures etc. | ||
| # *.ps | ||
| # *.eps | ||
|
|
||
| ## Generated if empty string is given at "Please type another file name for output:" | ||
|
|
||
| ## Bibliography auxiliary files (bibtex/biblatex/biber): | ||
| *.bbl | ||
| *.bcf | ||
| *.blg | ||
| *-blx.aux | ||
| *-blx.bib | ||
| *.run.xml | ||
|
|
||
| ## Build tool auxiliary files: | ||
| *.fdb_latexmk | ||
| *.synctex | ||
| *.synctex(busy) | ||
| *.synctex.gz | ||
| *.synctex.gz(busy) | ||
| *.pdfsync | ||
|
|
||
| ## Auxiliary and intermediate files from other packages: | ||
| # algorithms | ||
| *.alg | ||
| *.loa | ||
|
|
||
| # achemso | ||
| acs-*.bib | ||
|
|
||
| # amsthm | ||
| *.thm | ||
|
|
||
| # beamer | ||
| *.nav | ||
| *.pre | ||
| *.snm | ||
| *.vrb | ||
|
|
||
| # changes | ||
| *.soc | ||
|
|
||
| # cprotect | ||
| *.cpt | ||
|
|
||
| # elsarticle (documentclass of Elsevier journals) | ||
| *.spl | ||
|
|
||
| # endnotes | ||
| *.ent | ||
|
|
||
| # fixme | ||
| *.lox | ||
|
|
||
| # feynmf/feynmp | ||
| *.mf | ||
| *.mp | ||
| *.t[1-9] | ||
| *.t[1-9][0-9] | ||
| *.tfm | ||
|
|
||
| #(r)(e)ledmac/(r)(e)ledpar | ||
| *.end | ||
| *.?end | ||
| *.[1-9] | ||
| *.[1-9][0-9] | ||
| *.[1-9][0-9][0-9] | ||
| *.[1-9]R | ||
| *.[1-9][0-9]R | ||
| *.[1-9][0-9][0-9]R | ||
| *.eledsec[1-9] | ||
| *.eledsec[1-9]R | ||
| *.eledsec[1-9][0-9] | ||
| *.eledsec[1-9][0-9]R | ||
| *.eledsec[1-9][0-9][0-9] | ||
| *.eledsec[1-9][0-9][0-9]R | ||
|
|
||
| # glossaries | ||
| *.acn | ||
| *.acr | ||
| *.glg | ||
| *.glo | ||
| *.gls | ||
| *.glsdefs | ||
|
|
||
| # gnuplottex | ||
| *-gnuplottex-* | ||
|
|
||
| # gregoriotex | ||
| *.gaux | ||
| *.gtex | ||
|
|
||
| # htlatex | ||
| *.4ct | ||
| *.4tc | ||
| *.idv | ||
| *.lg | ||
| *.trc | ||
| *.xref | ||
|
|
||
| # hyperref | ||
| *.brf | ||
|
|
||
| # knitr | ||
| *-concordance.tex | ||
| # TODO Comment the next line if you want to keep your tikz graphics files | ||
| *.tikz | ||
| *-tikzDictionary | ||
|
|
||
| # listings | ||
| *.lol | ||
|
|
||
| # makeidx | ||
| *.idx | ||
| *.ilg | ||
| *.ind | ||
| *.ist | ||
|
|
||
| # minitoc | ||
| *.maf | ||
| *.mlf | ||
| *.mlt | ||
| *.mtc[0-9]* | ||
| *.slf[0-9]* | ||
| *.slt[0-9]* | ||
| *.stc[0-9]* | ||
|
|
||
| # minted | ||
| _minted* | ||
| *.pyg | ||
|
|
||
| # morewrites | ||
| *.mw | ||
|
|
||
| # nomencl | ||
| *.nlg | ||
| *.nlo | ||
| *.nls | ||
|
|
||
| # pax | ||
| *.pax | ||
|
|
||
| # pdfpcnotes | ||
| *.pdfpc | ||
|
|
||
| # sagetex | ||
| *.sagetex.sage | ||
| *.sagetex.py | ||
| *.sagetex.scmd | ||
|
|
||
| # scrwfile | ||
| *.wrt | ||
|
|
||
| # sympy | ||
| *.sout | ||
| *.sympy | ||
| sympy-plots-for-*.tex/ | ||
|
|
||
| # pdfcomment | ||
| *.upa | ||
| *.upb | ||
|
|
||
| # pythontex | ||
| *.pytxcode | ||
| pythontex-files-*/ | ||
|
|
||
| # thmtools | ||
| *.loe | ||
|
|
||
| # TikZ & PGF | ||
| *.dpth | ||
| *.md5 | ||
| *.auxlock | ||
|
|
||
| # todonotes | ||
| *.tdo | ||
|
|
||
| # easy-todo | ||
| *.lod | ||
|
|
||
| # xmpincl | ||
| *.xmpi | ||
|
|
||
| # xindy | ||
| *.xdy | ||
|
|
||
| # xypic precompiled matrices | ||
| *.xyc | ||
|
|
||
| # endfloat | ||
| *.ttt | ||
| *.fff | ||
|
|
||
| # Latexian | ||
| TSWLatexianTemp* | ||
|
|
||
| ## Editors: | ||
| # WinEdt | ||
| *.bak | ||
| *.sav | ||
|
|
||
| # Texpad | ||
| .texpadtmp | ||
|
|
||
| # Kile | ||
| *.backup | ||
|
|
||
| # KBibTeX | ||
| *~[0-9]* | ||
|
|
||
| # auto folder when using emacs and auctex | ||
| ./auto/* | ||
| *.el | ||
|
|
||
| # expex forward references with \gathertags | ||
| *-tags.tex | ||
|
|
||
| # standalone packages | ||
| *.sta | ||
|
|
||
| # generated if using elsarticle.cls | ||
| *.spl |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,81 @@ | ||
| # 本科毕业设计模板 | ||
|
|
||
| 湖南工商大学本科毕业设计模板。 | ||
|
|
||
| # 使用 | ||
| 推荐使用 [texstudio](https://pan.baidu.com/s/1Is2-VR1z-tMYvmdinsVY_g?pwd=hutb) 或 [overleaf](https://cn.overleaf.com/) 进行论文撰写。 | ||
|
|
||
| 注:在 latex 2023 中编译成功,latex 2016 编译失败(需要更高的版本,其他版本的 latex 没试过)。 | ||
|
|
||
| # 贡献 | ||
| 有任何对模板格式进行调整的可以提交 [Issues](https://github.com/OpenHUTB/undergraduate/issues) 或 [Pull Request](https://github.com/OpenHUTB/undergraduate/pulls) 。 | ||
|
|
||
| # 选题 | ||
| [选题列表](https://github.com/OpenHUTB/undergraduate/wiki/%E6%AF%95%E8%AE%BE%E9%80%89%E9%A2%98) | ||
|
|
||
|
|
||
| ## 要求 | ||
| 1. 格式化、注释、文档翻译 | ||
| 2. 运行 | ||
| 3. 测试(例子通过) | ||
|
|
||
|
|
||
| ## 初始化 | ||
|
|
||
| 1. 新建github工程 | ||
|
|
||
| 2. 运行`init_proj('PROJECT_NAME');` | ||
|
|
||
| 3. 分配开发者 | ||
|
|
||
|
|
||
| ## 使用 | ||
| 克隆仓库 | ||
| ```shell | ||
| git clone --recursive https://github.com/OpenHUTB/undergraduate.git | ||
| ``` | ||
|
|
||
| ## 修改方法 | ||
|
|
||
| ### 添加新的一页 | ||
|
|
||
| 以添加“授权使用说明书”为例: | ||
|
|
||
| 1.添加内容文件`content/authorizationzh.tex` | ||
|
|
||
| 2.在模板文件中`hutbthesis.cls`添加: | ||
| ```latex | ||
| % 预定义名称 | ||
| \newcommand*{\hutb@name@authorization@zh}{声明} | ||
| ``` | ||
| ```latex | ||
| %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | ||
| % 诚信声明 | ||
| % | ||
| % | ||
| %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | ||
|
|
||
| \newenvironment{authorizationzh} { | ||
| %\begin{titlepage}% | ||
| \hutb@pdfbookmark{0}{\hutb@name@authorization@zh} | ||
| %\renewcommand*{\headsep}{20pt} | ||
| \vspace*{0pt} | ||
| % \begin{center} \zihao{-2} \heiti \@titlecn \end{center} | ||
| \vspace{0pt} | ||
| \begin{center} \zihao{2} \heiti 湖南工商大学本科毕业设计版权使用授权书 \end{center} % 摘要为三号黑体 | ||
| \vspace{12pt} | ||
| \linespread{1.5} | ||
| \zihao{4}\songti % 内容为四号宋体 | ||
|
|
||
| %\end{titlepage}% | ||
|
|
||
| } | ||
|
|
||
| %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | ||
| ``` | ||
|
|
||
| 3.在主文件`hutbthesis_main.tex`中引入 | ||
| ```latex | ||
| \include{content/authorizationzh} | ||
| ``` | ||
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| del /a /f *.xml *.bcf *.out *.log *.sav *.gz *.aux *.bbl *.bak *.dvi *.blg | ||
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| %!TEX root = ../csuthesis_main.tex | ||
| \keywordsen{HUTB\ \ LaTeX\ \ Template} | ||
| \begin{abstracten} | ||
|
|
||
| LaTeX can be compiled into a pdf of uniform format using the set template.At present, most domestic publishers and universities still use word. Because of its powerful function and flexibility, when faced with fixed-form papers by novices, simple matters such as typesetting, numbering, and reference documents will bring many difficulties and troubles. For some problems that need to be modified throughout, to achieve the efficiency of LaTeX, it requires a high level of skill for word users. | ||
|
|
||
| In order to focus on the writing of papers, many international journals and universities support the writing and submission of LaTeX. Novices don't need to care about formatting issues. They only need to use a few symbolic labels step by step to get the documents that meet the requirements. And when you need to modify the entire format, you can directly recompile the template file by replacing or modifying the template file. This is incredible for the word novice to use the word. | ||
|
|
||
|
|
||
| \end{abstracten} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| %!TEX root = ../csuthesis_main.tex | ||
| % 设置中文摘要 | ||
| \keywordscn{湖南工商大学\quad 学位论文\quad LaTeX模板} | ||
| %\categorycn{TP391} | ||
| \begin{abstractzh} | ||
|
|
||
| LaTeX利用设置好的模板,可以编译为格式统一的pdf。目前国内大多出版社与高校仍在使用word,word由于其强大的功能与灵活性,在新手面对形式固定的论文时,排版、编号、参考文献等简单事务反而会带来很多困难与麻烦,对于一些需要通篇修改的问题,要想达到LaTeX的效率,对word使用者来说需要具有较高的技能水平。 | ||
|
|
||
| 为了能把主要精力放在论文撰写上,许多国际期刊和高校都支持LaTeX的撰写与提交,新手不需要关心格式问题,只需要按部就班的使用少数符号标签,即可得到符合要求的文档。且在需要全篇格式修改时,更换或修改模板文件,即可直接重新编译为新的样式文档,这对于word新手使用word的感受来说是不可思议的。 | ||
|
|
||
| 本项目的目的是为了创建一个符合湖南工商大学本科生撰写规范的TeX模板,解决学位论文撰写时格式调整的痛点。 | ||
|
|
||
|
|
||
| \end{abstractzh} |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
该文件放在这里不会生效,需要参考 phys.yml 在相同文件夹下新建一个自己模块的文件才会生效