Skip to content

Commit

Permalink
fix: ableofcontents/toc-entry 不再会影响插图清单和表格清单 (#245)
Browse files Browse the repository at this point in the history
  • Loading branch information
atxy-blip committed Nov 8, 2024
1 parent 51f3edd commit 0d4d912
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 21 deletions.
10 changes: 9 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@

## [未发布]

## [1.4.2] - 2024-11-08

### 新增

- 图表标题区分单行多行设置
Expand All @@ -15,6 +17,10 @@

- 修复 `macoffice` 配置的变量命名问题

### 变动

- `tableofcontents/toc-entry` 不再会影响插图清单和表格清单 -[#245]

## [1.4.1] - 2024-04-22

### 新增
Expand Down Expand Up @@ -578,8 +584,9 @@
- 模板上传至 CTAN


[未发布]: https://github.com/nju-lug/NJUThesis/compare/v1.4.1...HEAD
[未发布]: https://github.com/nju-lug/NJUThesis/compare/v1.4.2...HEAD

[1.4.2]: https://github.com/nju-lug/NJUThesis/compare/v1.4.1...v1.4.2
[1.4.1]: https://github.com/nju-lug/NJUThesis/compare/v1.4.0...v1.4.1
[1.4.0]: https://github.com/nju-lug/NJUThesis/compare/v1.3.2...v1.4.0
[1.3.2]: https://github.com/nju-lug/NJUThesis/compare/v1.3.1...v1.3.2
Expand Down Expand Up @@ -672,6 +679,7 @@
[#232]: https://github.com/nju-lug/NJUThesis/issues/232
[#234]: https://github.com/nju-lug/NJUThesis/issues/234
[#243]: https://github.com/nju-lug/NJUThesis/issues/243
[#245]: https://github.com/nju-lug/NJUThesis/discussions/245
[#248]: https://github.com/nju-lug/NJUThesis/issues/248
[#251]: https://github.com/nju-lug/NJUThesis/discussions/251
[#253]: https://github.com/nju-lug/NJUThesis/pull/253
Expand Down
2 changes: 1 addition & 1 deletion docs/njuthesis-sample.tex
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% njuthesis 示例模板 v1.4.1 2024-04-19
% njuthesis 示例模板 v1.4.2 2024-11-08
% https://github.com/nju-lug/NJUThesis
%
% 贡献者
Expand Down
6 changes: 2 additions & 4 deletions docs/njuthesis-setup.def
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
% njuthesis 参数设置文件 v1.4.1 2024-04-19
% njuthesis 参数设置文件 v1.4.2 2024-11-08

% 一些提醒:
% 1. \njusetup 内部千万不要有空行
Expand Down Expand Up @@ -186,9 +186,7 @@

% 目录自身是否显示在目录条目中
\njusetup{
tableofcontents/toc-entry = false,
% 关闭本项相当于同时关闭三个选项
%
% tableofcontents/toc-entry = false,
% listoffigures/toc-entry = false,
% listoftables/toc-entry = false
}
Expand Down
20 changes: 5 additions & 15 deletions source/njuthesis.dtx
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ To produce the documentation run the original source files ending with
%
%<class>\NeedsTeXFormat{LaTeX2e}
%<*!(driver|install)>
%<+!driver>\GetIdInfo $Id: njuthesis.dtx 1.4.1 2024-04-22 00:30:00
%<+!driver>\GetIdInfo $Id: njuthesis.dtx 1.4.2 2024-11-08 15:30:00
%<+!driver> +0800 NJU LUG <[email protected]>$
%<class> {Thesis template for Nanjing University}
%<class>\ProvidesExplClass{njuthesis}
Expand Down Expand Up @@ -148,7 +148,7 @@ To produce the documentation run the original source files ending with
% \thanks{E-mail: \href{mailto:[email protected]}
% {[email protected]}}}
%
% \date{v1.4.1 \quad 2024-04-22}
% \date{v1.4.2 \quad 2024-11-08}
%
% \changes{v0.1}{2021/09/04}{开始开发。}
% \changes{v0.2}{2021/09/07}{初步搭建了可用的模板。}
Expand Down Expand Up @@ -1804,7 +1804,7 @@ To produce the documentation run the original source files ending with
% 宋体,定义了 \env{exercise} 和 \env{solution} 两种定理环境,后者没有编号。
%
% \begin{latexexample}[moretexcs={\njusetup,\normalfont},
% emph={[2]theorem},emph={[3]define,body-font,type}]
% emph={[2]theorem},emph={[3]share-counter,define,body-font,type}]
% \njusetup[theorem]{
% share-counter = true ,
% define ,
Expand Down Expand Up @@ -5675,6 +5675,8 @@ To produce the documentation run the original source files ending with
% \end{macrocode}
% \end{macro}
%
% \changes{v1.4}{2024/11/08}{目录选项不再会影响插图清单和表格清单。}
%
% \begin{macro}{
% \tableofcontents,\listoffigures,\listoftables,
% tableofcontents/toc-entry,
Expand All @@ -5694,18 +5696,6 @@ To produce the documentation run the original source files ending with
% \end{macrocode}
% \end{macro}
%
% 如果不显示主目录的条目,则插图目录和表格目录一并不显示。
% \begin{macrocode}
\ctex_at_end_preamble:n
{
\bool_if:NF \g_@@_toc_showentry_bool
{
\bool_gset_false:N \g_@@_lof_showentry_bool
\bool_gset_false:N \g_@@_lot_showentry_bool
}
}
% \end{macrocode}
%
% \begin{macro}{tableofcontents/dotline}
% \changes{v1.0}{2022/08/08}{可选择是否为目录中的章名添加引导线。}
% 修改 \cls{book} 文档类中的命令以添加引导线。
Expand Down

0 comments on commit 0d4d912

Please sign in to comment.