Skip to content

Conversation

@YDX-2147483647
Copy link
Member

@YDX-2147483647 YDX-2147483647 commented Apr 15, 2025

  • feat: 支持在PDF书签中隐去封面、书脊、题名页、声明,如\MakeCover[bookmarked = false]
  • docs: 改进 DocStrip 里的文档
  • feat: 支持用title修改conclusion环境内的标题

Resolves #623

这次的选项只控制局部,键值对直接挂了命令上,没有挂到\BITSetup

设计参考了texdoc interface3

interface3.pdf 节选
\MyModuleMacro[
  key-one = value one,
  key-two = value two
]{argument}
\DeclareDocumentCommand \MyModuleMacro { o m }
{
  \group_begin:
  \keys_set:nn { mymodule } { #1 }
  % Main code for \MyModuleMacro
  \group_end:
}

make regression-test args='--against main-c97d797'没有区别。

MWE

% !TeX program = xelatex

\documentclass[type=bachelor]{bithesis}

\begin{document}

\MakeCover[bookmarked = false]
\MakePaperBack[bookmarked = false]
\MakeTitle  % 默认 bookmarked = true
\MakeOriginality[bookmarked = false]

\frontmatter

\mainmatter

\backmatter

\begin{conclusion}
  结论部分的标题默认按论文类型自动设置。
\end{conclusion}

\begin{conclusion}[title = 结论与 $\lim_{t \to +\infty}$]
  如需更改,可设置 title。
\end{conclusion}

\end{document}

图片

@YDX-2147483647 YDX-2147483647 marked this pull request as ready for review April 15, 2025 01:47
@YDX-2147483647 YDX-2147483647 added this pull request to the merge queue Apr 15, 2025
Merged via the queue into BITNP:main with commit 3ac2789 Apr 15, 2025
4 checks passed
@YDX-2147483647 YDX-2147483647 deleted the bookmarked branch April 15, 2025 11:18
YDX-2147483647 added a commit to BITNP/BIThesis-wiki that referenced this pull request Apr 15, 2025
YDX-2147483647 added a commit to BITNP/BIThesis-wiki that referenced this pull request Apr 17, 2025
Relates-to: BITNP/BIThesis#624, BITNP/BIThesis#628

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

希望支持在PDF书签中隐去封面、书脊、题名页、声明

1 participant