Skip to content

fix: resolve font issue in float environment for cases (https://github.com/sjtug/SJTUThesis/issues/1130)#77

Merged
LogCreative merged 8 commits intosjtug:v2from
NemoYuan2008:v2
Jan 3, 2026

Conversation

@NemoYuan2008
Copy link
Copy Markdown
Contributor

解决 sjtug/SJTUThesis#1130

按照之前的讨论,在浮动体中把 \SJTU@style@equation@font 置空

Copilot AI review requested due to automatic review settings January 2, 2026 19:22
Copy link
Copy Markdown

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 fixes a font issue in the cases environment when used inside float environments (issue #1130). The solution nullifies \SJTU@style@equation@font within float contexts by patching the \@floatboxreset command.

Key Changes

  • Modified the \@floatboxreset patch to set \SJTU@style@equation@font to empty within float environments
  • Added documentation explaining the fix and referencing the GitHub issue

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

% \href{https://github.com/sjtug/SJTUThesis/issues/1130}{SJTUThesis Issue 1130}),
% 在浮动体中将 \cs{SJTU@style@equation@font} 置空。
% \begin{macrocode}
\RenewDocumentCommand { \SJTU@style@equation@font } { } { }
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

这里简单点用 \let\SJTU@style@equation@font\@empty 就行。

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

fixed in 21b1a76

Copy link
Copy Markdown
Member

@LogCreative LogCreative left a comment

Choose a reason for hiding this comment

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

同步修改一下 CHANGELOG.md,以及在文档中标记 \changes

@NemoYuan2008
Copy link
Copy Markdown
Contributor Author

同步修改一下 CHANGELOG.md,以及在文档中标记 \changes

1c87b5aec9da91

Copy link
Copy Markdown
Member

@LogCreative LogCreative left a comment

Choose a reason for hiding this comment

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

LGTM

@LogCreative LogCreative merged commit fa9c972 into sjtug:v2 Jan 3, 2026
1 check passed
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.

4 participants