Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

快速使用手册 #493

Merged
merged 2 commits into from
May 7, 2024
Merged

快速使用手册 #493

merged 2 commits into from
May 7, 2024

Conversation

YDX-2147483647
Copy link
Collaborator

@YDX-2147483647 YDX-2147483647 commented May 7, 2024

  • doc: 修正快速使用手册中的\isGraduateTF
  • ci: 发布快速使用手册

1. 之前的环境变量根本影响`\isGraduateTF`结果,始终用`#2`。这次将`if_eq`从 token list 的换成 string 的,并将`\GRADUATE`从`n`(token list)改为`V`(value of the command)。

    > …we can choose between `\tl_if_eq:` (from token list library) and `\str_if_eq:` (from string library). Unless **it is absolutely necessary, it is recommended to use string library’s comparision functions**. That i1s because `\tl_if_eq:` not only checks if the characters are the same, but it also checks if the category code of each character is the same. As a result, two seemingly identical variables can result in `False` outcome when using `\tl_if_eq:`.
    >
    > —[LaTeX3: Programming in LaTeX with Ease | Alan Xiang’s Blog](https://www.alanshawn.com/tech/2020/10/04/latex3-tutorial.html)

2. 命令内部不能使用`lstlisting`环境。这里用`\lstinputlisting`绕开了。

    这种情况只在`\isGraduateTF`的`#1`里有,之前测不到。
@YDX-2147483647 YDX-2147483647 added this pull request to the merge queue May 7, 2024
Merged via the queue into BITNP:main with commit 2f6bf7e May 7, 2024
3 checks passed
@YDX-2147483647 YDX-2147483647 deleted the hand branch May 7, 2024 13:35
YDX-2147483647 added a commit to YDX-2147483647/BIThesis that referenced this pull request May 26, 2024
github-merge-queue bot pushed a commit that referenced this pull request May 26, 2024
YDX-2147483647 added a commit to YDX-2147483647/BIThesis that referenced this pull request May 27, 2024
github-merge-queue bot pushed a commit that referenced this pull request May 28, 2024
YDX-2147483647 added a commit to YDX-2147483647/BIThesis that referenced this pull request Jul 25, 2024
name 用于 URL,不能有汉字,但 display label 可以。
BITNP#493 (comment)
https://github.com/adobe-fonts/source-han-serif/releases/tag/2.002R 就采用了这种方式。

- 大部分上传改用 [GitHub CLI](https://cli.github.com/manual/gh_release_upload),因为原来的 actions 似乎不支持指定 label,而且`gh release upload`更简单。
- 中文显示名参考了[网站][wiki]。
- 除`bithesis.pdf`外都标注了。

Relates-to: BITNP#389

[wiki]: https://github.com/BITNP/BIThesis-wiki/blob/ee2c335682486359e31a25cbb11fc77d909a0a42/wiki/guide/preface.md#qbithesis-%E9%83%BD%E5%8C%85%E5%90%AB%E5%93%AA%E4%BA%9B%E6%A8%A1%E6%9D%BF
github-merge-queue bot pushed a commit that referenced this pull request Jul 25, 2024
name 用于 URL,不能有汉字,但 display label 可以。
#493 (comment)
https://github.com/adobe-fonts/source-han-serif/releases/tag/2.002R 就采用了这种方式。

- 大部分上传改用 [GitHub CLI](https://cli.github.com/manual/gh_release_upload),因为原来的 actions 似乎不支持指定 label,而且`gh release upload`更简单。
- 中文显示名参考了[网站][wiki]。
- 除`bithesis.pdf`外都标注了。

Relates-to: #389

[wiki]: https://github.com/BITNP/BIThesis-wiki/blob/ee2c335682486359e31a25cbb11fc77d909a0a42/wiki/guide/preface.md#qbithesis-%E9%83%BD%E5%8C%85%E5%90%AB%E5%93%AA%E4%BA%9B%E6%A8%A1%E6%9D%BF
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.

2 participants