Skip to content

Commit

Permalink
Merge pull request #183 from BITNP/regular-update
Browse files Browse the repository at this point in the history
Hotfix for v3.0.5: distribute the cls file.
  • Loading branch information
fky2015 authored Oct 17, 2022
2 parents 3c35211 + 4d15bd3 commit 747b546
Show file tree
Hide file tree
Showing 11 changed files with 347 additions and 250 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,8 @@ jobs:
steps:
- uses: actions/checkout@v3
- uses: xu-cheng/texlive-action/full@v1
name: Check there is nothing to diff.
with:
run: |
apk add make
make copy
- uses: actions/checkout@v3
- name: Check there is nothing to diff.
run: |
[[ ! `git status --porcelain` ]]
make check-cls
474 changes: 237 additions & 237 deletions CHANGELOG.md

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -91,3 +91,7 @@ pkg: doc
examples: cls
cp bithesis.cls $(EXAMPLEDIR)/cover/
cd $(EXAMPLEDIR)/cover && latexmk && cd -

check-cls: copy
git status --porcelain | (! grep -q .) || (echo "Please execute \`make copy\` to update the *.cls in each templates."; exit 1)

2 changes: 1 addition & 1 deletion cliff.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ body = """
{% for group, commits in commits | group_by(attribute="group") %}
### {{ group | upper_first }}
{% for commit in commits %}
- {% if commit.breaking %}[**breaking**] {% endif %}{{ commit.message | upper_first }} ([{{ commit.id | truncate(length=7, end="") }}]({{ commit.id }}))\
- {% if commit.breaking %}[**breaking**] {% endif %}{{ commit.message | upper_first }} ([{{ commit.id | truncate(length=7, end="") }}](https://github.com/BITNP/BIThesis/commit/{{ commit.id }}))\
{% endfor %}
{% endfor %}\n
"""
Expand Down
26 changes: 25 additions & 1 deletion templates/graduate-thesis/bithesis.cls
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
%%
\RequirePackage{expl3,l3keys2e}
\ProvidesExplClass{bithesis}
{2022-09-30}{3.0.4}{BIT Thesis Templates}
{2022-10-17}{3.0.5}{BIT Thesis Templates}
\int_new:N \g__bithesis_thesis_type_int
\int_new:N \g__bithesis_head_zihao_int
\bool_new:N \g__bithesis_twoside_bool
Expand Down Expand Up @@ -281,36 +281,60 @@
\keys_define:nn { bithesis / info }
{
title .tl_set:N = \l__bithesis_value_title_tl,
title .initial:n = {形状记忆聚氨酯的合成及其在织物中的应用(示例)},
titleEn .tl_set:N = \l__bithesis_value_title_en_tl,
titleEn .initial:n = {Synthesis~and~Application~on~Texttiles~of~the~Shape~Memory~Polyurethane~(example)},
% 因为是覆盖选项,所以不需要设置初始值。
verticalTitle .tl_set:N = \l__bithesis_value_vertical_title_tl,
school .tl_set:N = \l__bithesis_value_school_tl,
school .initial:n = {网络空间安全学院(示例)},
major .tl_set:N = \l__bithesis_value_major_tl,
major .initial:n = {网络空间安全(示例)},
author .tl_set:N = \l__bithesis_value_author_tl,
author .initial:n = {张三(示例)},
studentId .tl_set:N = \l__bithesis_value_student_id_tl,
studentId .initial:n = {3120211xxx(示例)},
supervisor .tl_set:N = \l__bithesis_value_supervisor_tl,
supervisor .initial:n = {李四教授(示例)},
% 因为默认不显示,所以不需要设置初始值。
externalSupervisor .tl_set:N = \l__bithesis_value_external_supervisor_tl,
keywords .tl_set:N = \l__bithesis_value_keywords_tl,
keywords .initial:n = {聚氨酯,形状记忆,织物(示例)},
keywordsEn .tl_set:N = \l__bithesis_value_keywords_en_tl,
keywordsEn .initial:n = {Polyurethane,Shape Memory,Textiles (example)},
translationTitle .tl_set:N = \l__bithesis_value_trans_title_tl,
translationOriginTitle .tl_set:N = \l__bithesis_value_trans_origin_title_tl,
% 中国分类号,研究生学位论文使用
classification .tl_set:N = \l__bithesis_value_classification_tl,
classification .initial:n = {TQ~028.1(示例)},
% UDC 分类号,研究生学位论文使用
UDC .tl_set:N = \l__bithesis_value_udc_tl,
UDC .initial:n = {540(示例)},
chairman .tl_set:N = \l__bithesis_value_chairman_tl,
chairman .initial:n = {王五教授(示例)},
degree .tl_set:N = \l__bithesis_value_degree_tl,
degree .initial:n = {工学博士(示例)},
degreeEn .tl_set:N = \l__bithesis_value_degree_en_tl,
degreeEn .initial:n = {Doctor~of~Engineering~(example)},
institute .tl_set:N = \l__bithesis_value_institute_tl,
institute .initial:n = {\c__bithesis_label_university_tl},
defenseDate .tl_set:N = \l__bithesis_value_defense_date_tl,
defenseDate .initial:n = {2019年6月(示例)},
authorEn .tl_set:N = \l__bithesis_value_author_en_tl,
authorEn .initial:n = {San~Zhang~(example)},
schoolEn .tl_set:N = \l__bithesis_value_school_en_tl,
schoolEn .initial:n = {School~of~Network~Space~Security\\(example)},
supervisorEn .tl_set:N = \l__bithesis_value_supervisor_en_tl,
supervisorEn .initial:n = {Prof.~Si~Li~(example)},
chairmanEn .tl_set:N = \l__bithesis_value_chairman_en_tl,
chairmanEn .initial:n = {Prof.~Wu~Wang~(example)},
majorEn .tl_set:N = \l__bithesis_value_major_en_tl,
majorEn .initial:n = {Cyberspace~Security~and~Technology\\(example)},
instituteEn .tl_set:N = \l__bithesis_value_institute_en_tl,
instituteEn .initial:n = {\c__bithesis_label_university_en_tl},
defenseDateEn .tl_set:N = \l__bithesis_value_defense_date_en_tl,
defenseDateEn .initial:n = {June,~2019~(example)},
% 因为默认不显示,所以不需要设置初始值。
classifiedLevel .tl_set:N = \l__bithesis_value_classified_level_tl,
}
\keys_define:nn { bithesis / misc }
Expand Down
2 changes: 1 addition & 1 deletion templates/lab-report/bitreport.cls
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
%%
\RequirePackage{expl3,l3keys2e}
\ProvidesExplClass{bitreport}
{2022-09-30}{3.0.4}{BIT Thesis Templates}
{2022-10-17}{3.0.5}{BIT Thesis Templates}
\int_new:N \g__bithesis_report_type_int
\clist_const:Nn \c__bithesis_report_type_clist
{ common, undergraduate_proposal}
Expand Down
26 changes: 25 additions & 1 deletion templates/paper-translation/bithesis.cls
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
%%
\RequirePackage{expl3,l3keys2e}
\ProvidesExplClass{bithesis}
{2022-09-30}{3.0.4}{BIT Thesis Templates}
{2022-10-17}{3.0.5}{BIT Thesis Templates}
\int_new:N \g__bithesis_thesis_type_int
\int_new:N \g__bithesis_head_zihao_int
\bool_new:N \g__bithesis_twoside_bool
Expand Down Expand Up @@ -281,36 +281,60 @@
\keys_define:nn { bithesis / info }
{
title .tl_set:N = \l__bithesis_value_title_tl,
title .initial:n = {形状记忆聚氨酯的合成及其在织物中的应用(示例)},
titleEn .tl_set:N = \l__bithesis_value_title_en_tl,
titleEn .initial:n = {Synthesis~and~Application~on~Texttiles~of~the~Shape~Memory~Polyurethane~(example)},
% 因为是覆盖选项,所以不需要设置初始值。
verticalTitle .tl_set:N = \l__bithesis_value_vertical_title_tl,
school .tl_set:N = \l__bithesis_value_school_tl,
school .initial:n = {网络空间安全学院(示例)},
major .tl_set:N = \l__bithesis_value_major_tl,
major .initial:n = {网络空间安全(示例)},
author .tl_set:N = \l__bithesis_value_author_tl,
author .initial:n = {张三(示例)},
studentId .tl_set:N = \l__bithesis_value_student_id_tl,
studentId .initial:n = {3120211xxx(示例)},
supervisor .tl_set:N = \l__bithesis_value_supervisor_tl,
supervisor .initial:n = {李四教授(示例)},
% 因为默认不显示,所以不需要设置初始值。
externalSupervisor .tl_set:N = \l__bithesis_value_external_supervisor_tl,
keywords .tl_set:N = \l__bithesis_value_keywords_tl,
keywords .initial:n = {聚氨酯,形状记忆,织物(示例)},
keywordsEn .tl_set:N = \l__bithesis_value_keywords_en_tl,
keywordsEn .initial:n = {Polyurethane,Shape Memory,Textiles (example)},
translationTitle .tl_set:N = \l__bithesis_value_trans_title_tl,
translationOriginTitle .tl_set:N = \l__bithesis_value_trans_origin_title_tl,
% 中国分类号,研究生学位论文使用
classification .tl_set:N = \l__bithesis_value_classification_tl,
classification .initial:n = {TQ~028.1(示例)},
% UDC 分类号,研究生学位论文使用
UDC .tl_set:N = \l__bithesis_value_udc_tl,
UDC .initial:n = {540(示例)},
chairman .tl_set:N = \l__bithesis_value_chairman_tl,
chairman .initial:n = {王五教授(示例)},
degree .tl_set:N = \l__bithesis_value_degree_tl,
degree .initial:n = {工学博士(示例)},
degreeEn .tl_set:N = \l__bithesis_value_degree_en_tl,
degreeEn .initial:n = {Doctor~of~Engineering~(example)},
institute .tl_set:N = \l__bithesis_value_institute_tl,
institute .initial:n = {\c__bithesis_label_university_tl},
defenseDate .tl_set:N = \l__bithesis_value_defense_date_tl,
defenseDate .initial:n = {2019年6月(示例)},
authorEn .tl_set:N = \l__bithesis_value_author_en_tl,
authorEn .initial:n = {San~Zhang~(example)},
schoolEn .tl_set:N = \l__bithesis_value_school_en_tl,
schoolEn .initial:n = {School~of~Network~Space~Security\\(example)},
supervisorEn .tl_set:N = \l__bithesis_value_supervisor_en_tl,
supervisorEn .initial:n = {Prof.~Si~Li~(example)},
chairmanEn .tl_set:N = \l__bithesis_value_chairman_en_tl,
chairmanEn .initial:n = {Prof.~Wu~Wang~(example)},
majorEn .tl_set:N = \l__bithesis_value_major_en_tl,
majorEn .initial:n = {Cyberspace~Security~and~Technology\\(example)},
instituteEn .tl_set:N = \l__bithesis_value_institute_en_tl,
instituteEn .initial:n = {\c__bithesis_label_university_en_tl},
defenseDateEn .tl_set:N = \l__bithesis_value_defense_date_en_tl,
defenseDateEn .initial:n = {June,~2019~(example)},
% 因为默认不显示,所以不需要设置初始值。
classifiedLevel .tl_set:N = \l__bithesis_value_classified_level_tl,
}
\keys_define:nn { bithesis / misc }
Expand Down
2 changes: 1 addition & 1 deletion templates/presentation-slide/bitbeamer.cls
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
%%
\RequirePackage{expl3,l3keys2e}
\ProvidesExplClass{bitbeamer}
{2022-09-30}{3.0.4}{BIT Thesis Templates}
{2022-10-17}{3.0.5}{BIT Thesis Templates}
\keys_define:nn { bitbeamer }
{
titlegraphic .tl_set:N = \l_bit_titlegraphic_tl,
Expand Down
2 changes: 1 addition & 1 deletion templates/undergraduate-proposal-report/bitreport.cls
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
%%
\RequirePackage{expl3,l3keys2e}
\ProvidesExplClass{bitreport}
{2022-09-30}{3.0.4}{BIT Thesis Templates}
{2022-10-17}{3.0.5}{BIT Thesis Templates}
\int_new:N \g__bithesis_report_type_int
\clist_const:Nn \c__bithesis_report_type_clist
{ common, undergraduate_proposal}
Expand Down
26 changes: 25 additions & 1 deletion templates/undergraduate-thesis-en/bithesis.cls
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
%%
\RequirePackage{expl3,l3keys2e}
\ProvidesExplClass{bithesis}
{2022-09-30}{3.0.4}{BIT Thesis Templates}
{2022-10-17}{3.0.5}{BIT Thesis Templates}
\int_new:N \g__bithesis_thesis_type_int
\int_new:N \g__bithesis_head_zihao_int
\bool_new:N \g__bithesis_twoside_bool
Expand Down Expand Up @@ -281,36 +281,60 @@
\keys_define:nn { bithesis / info }
{
title .tl_set:N = \l__bithesis_value_title_tl,
title .initial:n = {形状记忆聚氨酯的合成及其在织物中的应用(示例)},
titleEn .tl_set:N = \l__bithesis_value_title_en_tl,
titleEn .initial:n = {Synthesis~and~Application~on~Texttiles~of~the~Shape~Memory~Polyurethane~(example)},
% 因为是覆盖选项,所以不需要设置初始值。
verticalTitle .tl_set:N = \l__bithesis_value_vertical_title_tl,
school .tl_set:N = \l__bithesis_value_school_tl,
school .initial:n = {网络空间安全学院(示例)},
major .tl_set:N = \l__bithesis_value_major_tl,
major .initial:n = {网络空间安全(示例)},
author .tl_set:N = \l__bithesis_value_author_tl,
author .initial:n = {张三(示例)},
studentId .tl_set:N = \l__bithesis_value_student_id_tl,
studentId .initial:n = {3120211xxx(示例)},
supervisor .tl_set:N = \l__bithesis_value_supervisor_tl,
supervisor .initial:n = {李四教授(示例)},
% 因为默认不显示,所以不需要设置初始值。
externalSupervisor .tl_set:N = \l__bithesis_value_external_supervisor_tl,
keywords .tl_set:N = \l__bithesis_value_keywords_tl,
keywords .initial:n = {聚氨酯,形状记忆,织物(示例)},
keywordsEn .tl_set:N = \l__bithesis_value_keywords_en_tl,
keywordsEn .initial:n = {Polyurethane,Shape Memory,Textiles (example)},
translationTitle .tl_set:N = \l__bithesis_value_trans_title_tl,
translationOriginTitle .tl_set:N = \l__bithesis_value_trans_origin_title_tl,
% 中国分类号,研究生学位论文使用
classification .tl_set:N = \l__bithesis_value_classification_tl,
classification .initial:n = {TQ~028.1(示例)},
% UDC 分类号,研究生学位论文使用
UDC .tl_set:N = \l__bithesis_value_udc_tl,
UDC .initial:n = {540(示例)},
chairman .tl_set:N = \l__bithesis_value_chairman_tl,
chairman .initial:n = {王五教授(示例)},
degree .tl_set:N = \l__bithesis_value_degree_tl,
degree .initial:n = {工学博士(示例)},
degreeEn .tl_set:N = \l__bithesis_value_degree_en_tl,
degreeEn .initial:n = {Doctor~of~Engineering~(example)},
institute .tl_set:N = \l__bithesis_value_institute_tl,
institute .initial:n = {\c__bithesis_label_university_tl},
defenseDate .tl_set:N = \l__bithesis_value_defense_date_tl,
defenseDate .initial:n = {2019年6月(示例)},
authorEn .tl_set:N = \l__bithesis_value_author_en_tl,
authorEn .initial:n = {San~Zhang~(example)},
schoolEn .tl_set:N = \l__bithesis_value_school_en_tl,
schoolEn .initial:n = {School~of~Network~Space~Security\\(example)},
supervisorEn .tl_set:N = \l__bithesis_value_supervisor_en_tl,
supervisorEn .initial:n = {Prof.~Si~Li~(example)},
chairmanEn .tl_set:N = \l__bithesis_value_chairman_en_tl,
chairmanEn .initial:n = {Prof.~Wu~Wang~(example)},
majorEn .tl_set:N = \l__bithesis_value_major_en_tl,
majorEn .initial:n = {Cyberspace~Security~and~Technology\\(example)},
instituteEn .tl_set:N = \l__bithesis_value_institute_en_tl,
instituteEn .initial:n = {\c__bithesis_label_university_en_tl},
defenseDateEn .tl_set:N = \l__bithesis_value_defense_date_en_tl,
defenseDateEn .initial:n = {June,~2019~(example)},
% 因为默认不显示,所以不需要设置初始值。
classifiedLevel .tl_set:N = \l__bithesis_value_classified_level_tl,
}
\keys_define:nn { bithesis / misc }
Expand Down
26 changes: 25 additions & 1 deletion templates/undergraduate-thesis/bithesis.cls
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
%%
\RequirePackage{expl3,l3keys2e}
\ProvidesExplClass{bithesis}
{2022-09-30}{3.0.4}{BIT Thesis Templates}
{2022-10-17}{3.0.5}{BIT Thesis Templates}
\int_new:N \g__bithesis_thesis_type_int
\int_new:N \g__bithesis_head_zihao_int
\bool_new:N \g__bithesis_twoside_bool
Expand Down Expand Up @@ -281,36 +281,60 @@
\keys_define:nn { bithesis / info }
{
title .tl_set:N = \l__bithesis_value_title_tl,
title .initial:n = {形状记忆聚氨酯的合成及其在织物中的应用(示例)},
titleEn .tl_set:N = \l__bithesis_value_title_en_tl,
titleEn .initial:n = {Synthesis~and~Application~on~Texttiles~of~the~Shape~Memory~Polyurethane~(example)},
% 因为是覆盖选项,所以不需要设置初始值。
verticalTitle .tl_set:N = \l__bithesis_value_vertical_title_tl,
school .tl_set:N = \l__bithesis_value_school_tl,
school .initial:n = {网络空间安全学院(示例)},
major .tl_set:N = \l__bithesis_value_major_tl,
major .initial:n = {网络空间安全(示例)},
author .tl_set:N = \l__bithesis_value_author_tl,
author .initial:n = {张三(示例)},
studentId .tl_set:N = \l__bithesis_value_student_id_tl,
studentId .initial:n = {3120211xxx(示例)},
supervisor .tl_set:N = \l__bithesis_value_supervisor_tl,
supervisor .initial:n = {李四教授(示例)},
% 因为默认不显示,所以不需要设置初始值。
externalSupervisor .tl_set:N = \l__bithesis_value_external_supervisor_tl,
keywords .tl_set:N = \l__bithesis_value_keywords_tl,
keywords .initial:n = {聚氨酯,形状记忆,织物(示例)},
keywordsEn .tl_set:N = \l__bithesis_value_keywords_en_tl,
keywordsEn .initial:n = {Polyurethane,Shape Memory,Textiles (example)},
translationTitle .tl_set:N = \l__bithesis_value_trans_title_tl,
translationOriginTitle .tl_set:N = \l__bithesis_value_trans_origin_title_tl,
% 中国分类号,研究生学位论文使用
classification .tl_set:N = \l__bithesis_value_classification_tl,
classification .initial:n = {TQ~028.1(示例)},
% UDC 分类号,研究生学位论文使用
UDC .tl_set:N = \l__bithesis_value_udc_tl,
UDC .initial:n = {540(示例)},
chairman .tl_set:N = \l__bithesis_value_chairman_tl,
chairman .initial:n = {王五教授(示例)},
degree .tl_set:N = \l__bithesis_value_degree_tl,
degree .initial:n = {工学博士(示例)},
degreeEn .tl_set:N = \l__bithesis_value_degree_en_tl,
degreeEn .initial:n = {Doctor~of~Engineering~(example)},
institute .tl_set:N = \l__bithesis_value_institute_tl,
institute .initial:n = {\c__bithesis_label_university_tl},
defenseDate .tl_set:N = \l__bithesis_value_defense_date_tl,
defenseDate .initial:n = {2019年6月(示例)},
authorEn .tl_set:N = \l__bithesis_value_author_en_tl,
authorEn .initial:n = {San~Zhang~(example)},
schoolEn .tl_set:N = \l__bithesis_value_school_en_tl,
schoolEn .initial:n = {School~of~Network~Space~Security\\(example)},
supervisorEn .tl_set:N = \l__bithesis_value_supervisor_en_tl,
supervisorEn .initial:n = {Prof.~Si~Li~(example)},
chairmanEn .tl_set:N = \l__bithesis_value_chairman_en_tl,
chairmanEn .initial:n = {Prof.~Wu~Wang~(example)},
majorEn .tl_set:N = \l__bithesis_value_major_en_tl,
majorEn .initial:n = {Cyberspace~Security~and~Technology\\(example)},
instituteEn .tl_set:N = \l__bithesis_value_institute_en_tl,
instituteEn .initial:n = {\c__bithesis_label_university_en_tl},
defenseDateEn .tl_set:N = \l__bithesis_value_defense_date_en_tl,
defenseDateEn .initial:n = {June,~2019~(example)},
% 因为默认不显示,所以不需要设置初始值。
classifiedLevel .tl_set:N = \l__bithesis_value_classified_level_tl,
}
\keys_define:nn { bithesis / misc }
Expand Down

0 comments on commit 747b546

Please sign in to comment.