Skip to content

[203_26] Use standard LaTeX proof environment for semantic proof blocks#2990

Merged
Yuki-Nagori merged 1 commit intoMoganLab:mainfrom
Prthmsh7:203_26
Mar 18, 2026
Merged

[203_26] Use standard LaTeX proof environment for semantic proof blocks#2990
Yuki-Nagori merged 1 commit intoMoganLab:mainfrom
Prthmsh7:203_26

Conversation

@Prthmsh7
Copy link
Copy Markdown
Contributor

Fixes #2985

What

Updated the LaTeX export logic for proof and proof* environments to use the standard LaTeX proof environment (from amsthm) instead of manual formatting.

Before:
Screenshot 2026-03-16 at 5 03 59 PM

After:
Screenshot 2026-03-16 at 5 02 45 PM

How

  • Modified latex-define.scm (core and plugin) to map proof to \begin{proof} and proof* to \begin{proof}[Title].
  • Added dependency on the amsthm package in latex-drd.scm (core and plugin) to ensure the proof environment is available in the exported document.

Copy link
Copy Markdown
Contributor

@Yuki-Nagori Yuki-Nagori left a comment

Choose a reason for hiding this comment

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

Well done! LGTM

@Yuki-Nagori Yuki-Nagori merged commit f008f09 into MoganLab:main Mar 18, 2026
@da-liii
Copy link
Copy Markdown
Contributor

da-liii commented Mar 18, 2026

#3007

We need unit tests on this PR.

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时,使用 \begin{proof} \end{proof}

3 participants