WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Conversation

@YDX-2147483647
Copy link
Member

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

大致确定最小 TeX Live 版本 BITNP/BIThesis-wiki#512

TeX Live 2021–2025 可编译 templates 和 tests,2024–2025 还可编译 handbooks、bithesis.pdf。(其余未测试,因为间接依赖的宏包没装全,又难以一一补全。)

https://github.com/BITNP/BIThesis/actions/runs/14550581993

适配算法宏包

Resolves #631

建议在如何排版算法(伪代码)? | BIThesis 把 algorithm2e 放到最前,2009年的 algorithms 宏集真难用。

  • 浮动体Hh选项会影响算法内部的行距
  • 命令设计得反直觉,例如if、for 等命令无大括号导致 latexindent 无法自动缩进,输入输出叫require、ensure
  • 浮动体前后与正文的间距很大,没有专门调整过

@YDX-2147483647 YDX-2147483647 changed the title (测试) 更新CI Apr 19, 2025
@YDX-2147483647 YDX-2147483647 force-pushed the algo branch 4 times, most recently from 5b273af to c6f3aa8 Compare April 19, 2025 15:41
@YDX-2147483647 YDX-2147483647 requested a review from Copilot April 19, 2025 16:02

This comment was marked as outdated.

@YDX-2147483647 YDX-2147483647 marked this pull request as ready for review April 19, 2025 16:03

This comment was marked as outdated.

@YDX-2147483647 YDX-2147483647 changed the title 更新CI 更新CI,适配算法宏包 Apr 19, 2025
Resolves BITNP#631

algorithm + algorithmic 如需恢复原状:

```latex
\renewcommand*{\algorithmicrequire}{\textbf{Require:}}
\renewcommand*{\algorithmicensure}{\textbf{Ensure:}}

\AtBeginEnvironment {algorithmic} {\normalsize}
```

algorithm2e 如需恢复原状:

```latex
\SetKwInput{KwData}{Data}
\SetKwInput{KwResult}{Result}
\SetKwInput{KwIn}{Input}
\SetKwInput{KwOut}{Output}

\SetAlCapFnt{\normalsize}
\SetAlCapNameFnt{\normalsize}
\SetAlFnt{\normalsize}
```

Continues BITNP#456

This comment was marked as outdated.

This comment was marked as outdated.

@YDX-2147483647 YDX-2147483647 force-pushed the algo branch 3 times, most recently from c7a5e63 to 2a29360 Compare April 19, 2025 19:52
@YDX-2147483647 YDX-2147483647 force-pushed the algo branch 2 times, most recently from e3ee574 to 4a11b0b Compare April 19, 2025 20:14
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR updates the CI to adapt to changes in the TeX Live environment and the algorithm package, and updates several workflow files and test scripts accordingly.

  • Updated the test script to auto-detect and install required TeX Live packages based on regex output from ripgrep.
  • Modified GitHub Actions workflows (test and release) to support multiple TeX Live versions and improve dependency management.
  • Updated DEVELOPMENT.md instructions for Windows developers regarding Makefile prerequisites.

Reviewed Changes

Copilot reviewed 8 out of 18 changed files in this pull request and generated 2 comments.

File Description
scripts/test.py Added dependency installation functionality and dynamic test discovery.
DEVELOPMENT.md Updated documentation regarding Makefile prerequisites.
.github/workflows/test.yaml Introduced a matrix strategy for TeX Live versions and conditionally set parameters.
.github/workflows/release.yml Adjusted release workflow steps, updated TeX Live setup, and refined font installation.
Files not reviewed (10)
  • .github/tl_packages: Language not supported
  • .github/tl_packages_compat: Language not supported
  • Makefile: Language not supported
  • bithesis.dtx: Language not supported
  • examples/cover/latexmkrc: Language not supported
  • examples/publications/latexmkrc: Language not supported
  • examples/publications/main.tex: Language not supported
  • tests/algorithm2e/main.tex: Language not supported
  • tests/algorithmic/main.tex: Language not supported
  • tests/publications/main.tex: Language not supported

@YDX-2147483647 YDX-2147483647 added this pull request to the merge queue Apr 20, 2025
Merged via the queue into BITNP:main with commit bfdfc09 Apr 20, 2025
9 checks passed
@YDX-2147483647 YDX-2147483647 deleted the algo branch April 20, 2025 11:45
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.

[Bug]: algorithmic 环境内的字号大于 caption 字号

1 participant