Skip to content

Fix #697: Quote NP in Typst math mode#698

Merged
isPANN merged 1 commit intomainfrom
fix/typst-np-variable-error
Mar 18, 2026
Merged

Fix #697: Quote NP in Typst math mode#698
isPANN merged 1 commit intomainfrom
fix/typst-np-variable-error

Conversation

@zazabap
Copy link
Collaborator

@zazabap zazabap commented Mar 18, 2026

Summary

  • Fix Typst compilation error on main: $P = NP$$P = "NP"$ in SumOfSquaresPartition problem-def
  • In Typst math mode, bare NP is parsed as two variables; quoting renders it as text

Test plan

  • CI build job passes (Typst compilation succeeds)

🤖 Generated with Claude Code

In Typst math mode, `NP` is parsed as variable `N` * variable `P`.
Wrapping it in quotes (`"NP"`) renders it as a text literal.

Fixes #697

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@codecov
Copy link

codecov bot commented Mar 18, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 97.21%. Comparing base (8ee70ee) to head (8a7413a).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #698   +/-   ##
=======================================
  Coverage   97.21%   97.21%           
=======================================
  Files         310      310           
  Lines       40595    40595           
=======================================
  Hits        39463    39463           
  Misses       1132     1132           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@isPANN isPANN merged commit 891264c into main Mar 18, 2026
5 checks 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.

2 participants