Skip to content

Commit

Permalink
feat: 将固定文本分离为单独文件 (#46)
Browse files Browse the repository at this point in the history
  • Loading branch information
atxy-blip committed Feb 24, 2022
1 parent fef7410 commit b0d35a2
Show file tree
Hide file tree
Showing 9 changed files with 351 additions and 279 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ on:

env:
CTAN_URL: https://mirrors.rit.edu/CTAN
TL_PACKAGES: alphalph auxhook background biber biblatex biblatex-gb7714-2015 blindtext booktabs caption cleveref cm-unicode csquotes ctex dashundergaps emptypage enumitem fancyhdr fancyvrb fandol footmisc hologo hycolor hypdoc hyperref l3build latexmk libertinus-fonts listings lua-ul lualatex-math luatex85 makecell makeindex mathtools newcomputermodern ninecolors njuvisual ntheorem pict2e preview psnfss setspace siunitx standalone symbol tex-gyre tex-gyre-math threeparttable translator underscore unicode-math xits xstring zhlipsum zref
TL_PACKAGES: alphalph auxhook biber biblatex biblatex-gb7714-2015 bigfoot blindtext booktabs caption cleveref cm-unicode csquotes ctex dashundergaps emptypage enumitem fancyhdr fancyvrb fandol footmisc hologo hycolor hypdoc hyperref l3build latexmk libertinus-fonts listings lua-ul lualatex-math luatex85 makecell makeindex mathtools newcomputermodern ninecolors njuvisual ntheorem pict2e preview psnfss setspace siunitx standalone symbol tex-gyre tex-gyre-math threeparttable translator underscore unicode-math xits xstring zhlipsum zref

jobs:
build-on-ubuntu:
Expand Down
8 changes: 2 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,9 @@ on:
tags:
- v*

pull_request:
branches:
- master

env:
CTAN_URL: https://mirrors.rit.edu/CTAN
TL_PACKAGES: alphalph auxhook background biber biblatex biblatex-gb7714-2015 bibtex booktabs caption cm-unicode colortbl csquotes ctex dashundergaps diagbox enumitem everypage fancyhdr fancyvrb fandol footmisc gbt7714 hologo hycolor hypdoc hyperref l3build latexmk libertinus-fonts listings lm-math makecell makeindex microtype multirow natbib ninecolors njuvisual pict2e preview psnfss setspace siunitx symbol tabularray tex-gyre tex-gyre-math threeparttable translator underscore unicode-math url xits xstring zref
TL_PACKAGES: alphalph auxhook background bibtex bigfoot booktabs caption cm-unicode colortbl csquotes ctex dashundergaps diagbox enumitem everypage fancyhdr fancyvrb fandol footmisc hologo hycolor hypdoc hyperref l3build latexmk libertinus-fonts listings lm-math makecell makeindex natbib ninecolors njuvisual pict2e preview psnfss setspace siunitx symbol tabularray tex-gyre tex-gyre-math threeparttable translator underscore unicode-math url xits xstring zref

jobs:
release:
Expand Down Expand Up @@ -57,7 +53,7 @@ jobs:
xetex njuvisual.dtx
mv docs/* .
mv build/unpacked/njuthesis.cls .
zip -r njuthesis-user-$VERSION.zip njuthesis-sample.tex njuthesis-sample.bib njuthesis.cls njuvisual.sty nju-emblem.pdf nju-name.pdf LICENSE CHANGELOG.md README.md
zip -r njuthesis-user-$VERSION.zip njuthesis-* njuthesis.cls njuvisual.sty nju-*.pdf LICENSE CHANGELOG.md README.md
- uses: "marvinpinto/action-automatic-releases@latest"
with:
Expand Down
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,9 @@

## DocStrip generated file
*.cls
*.sty
*.def
*.ins
*.sty

## Zip file
*.zip
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@

## [未发布]

### 新增

- 将固定文本分离为单独的 `.def` 文件 - [#46]

### 变动

- 取消对 `njuvisual` 宏包的强制依赖
Expand Down
2 changes: 1 addition & 1 deletion README-CTAN.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Usage

A minimal example of this document class should look like

```
```LaTeX
\documentclass{njuthesis}
\njusetup{}
\begin{document}
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@

### 典型结构

```
```LaTeX
\documentclass{njuthesis}
\njusetup{}
\begin{document}
Expand Down
2 changes: 1 addition & 1 deletion build.lua
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ ctanreadme = "README-CTAN.md"

sourcefiledir = "source"
sourcefiles = {"*.dtx"}
installfiles = {"*.cls"}
installfiles = {"*.cls", "*.def"}

typesetexe = "xelatex"
typesetfiles = {"njuthesis.dtx"}
Expand Down
2 changes: 1 addition & 1 deletion docs/njuthesis-sample.tex
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% njuthesis - 南京大学学位论文模板
% Version 0.15.0 2022-02-20
% Version 0.16.0 2022-02-20
%
% 关注项目地址以获取最新变化
% https://github.com/nju-lug/NJUThesis
Expand Down
Loading

0 comments on commit b0d35a2

Please sign in to comment.