Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 37 additions & 0 deletions .github/workflows/job.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Job latex CI/CD
on:
push:
branches:
- master
paths:
- 'job/undergraduate/**'
pull_request:
branches:
- master
paths:
- 'job/undergraduate/**'

jobs:
work:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 0
- name: Compile job LaTeX document
uses: xu-cheng/latex-action@v3
with:
working_directory: job/undergraduate
root_file: hutbthesis_main.tex
texlive_version: 2023
latexmk_use_xelatex: true
pre_compile: |
apk add msttcorefonts-installer fontconfig
update-ms-fonts
fc-cache -f
- uses: actions/upload-artifact@v4
with:
name: job
path: |
job/undergraduate/hutbthesis_main.pdf
27 changes: 27 additions & 0 deletions job/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# LaTeX 编译缓存
*.aux
*.log
*.out
*.toc
*.lof
*.lot
*.bbl
*.blg
*.synctex.gz
*.pdf

# Python
__pycache__/
*.pyc
venv/
.venv/

# VSCode
.vscode/

# 系统文件
Thumbs.db

# PyCharm(解决你 .idea 的问题)
**/.idea/
*.iml
246 changes: 246 additions & 0 deletions job/undergraduate/.gitignore
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
# *.pdf

## Generated if empty string is given at "Please type another file name for output:"
.pdf

## 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
81 changes: 81 additions & 0 deletions job/undergraduate/README.md
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}
```

2 changes: 2 additions & 0 deletions job/undergraduate/cmdel.bat
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

Loading
Loading