Skip to content

Add 'bbox' extension to MathJax configuration#409

Open
imab001 wants to merge 1 commit intoMathpix:masterfrom
imab001:master
Open

Add 'bbox' extension to MathJax configuration#409
imab001 wants to merge 1 commit intoMathpix:masterfrom
imab001:master

Conversation

@imab001
Copy link

@imab001 imab001 commented Mar 20, 2026

Added \bbox command support for mathjax latex equations.

Problem

The \bbox[5px,border: 2px solid]{12} LaTeX syntax throws an "Undefined control sequence" error when rendering math with MathJax.

Error:

[TexConvert] ERROR=> {
  "message": "TeX error: Undefined control sequence \\bbox",
  "latex": "\\bbox[5px,border: 2px solid]{12}"
}

Solution

The bbox package needs to be added to the MathJax configuration to enable support for the \bbox command.

Changes

  • Added 'bbox' to the packages array in src/mathjax/mathJaxConfig.ts

Testing

  • Locally tested: \bbox[5px,border: 2px solid]{12} now renders correctly after build.

Added `\bbox` command support for mathjax latex equations.
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.

1 participant