Skip to content

Fix Typst build error: unquoted NP in math mode #697

@zazabap

Description

@zazabap

Bug

The documentation build on main is failing because $P = NP$ in the SumOfSquaresPartition problem-def (line 2308 of docs/paper/reductions.typ) treats NP as two separate math variables instead of a string literal.

Error:

error: unknown variable: NP
     ┌─ docs/paper/reductions.typ:2308:139
     │
2308 │ ... unless $P = NP$. For fixed $K$...
     │                 ^^
     = hint: try placing it in quotes: "NP"

Fix: Change $P = NP$ to $P = "NP"$.

Introduced by #663 (SumOfSquaresPartition model).

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions