From e69ef94ac9106ae1df5903dc6e4279883a147c17 Mon Sep 17 00:00:00 2001 From: "Davide P. Cervone" Date: Thu, 11 Jun 2026 17:23:41 -0400 Subject: [PATCH] Fix `\bbox` problem with padding values that are decimals. (mathjax/MathJax#3568) --- ts/input/tex/bbox/BboxConfiguration.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ts/input/tex/bbox/BboxConfiguration.ts b/ts/input/tex/bbox/BboxConfiguration.ts index 37838302e..02c7785b6 100644 --- a/ts/input/tex/bbox/BboxConfiguration.ts +++ b/ts/input/tex/bbox/BboxConfiguration.ts @@ -64,7 +64,7 @@ const BboxMethods: { [key: string]: ParseMethod } = { height: '+' + pad, depth: '+' + pad, lspace: pad, - width: '+' + 2 * parseInt(match[1], 10) + match[3], + width: '+' + 2 * parseFloat(match[1]) + match[3], }; } } else if (part.match(/^([a-z0-9]+|#[0-9a-f]{6}|#[0-9a-f]{3})$/i)) {