latex update

This commit is contained in:
wangjinlei
2026-01-07 17:18:19 +08:00
parent 9268766f4d
commit d2f044a153

View File

@@ -2612,12 +2612,12 @@ class Production extends Base
// 处理上标
if (isset($style['vertAlign']) && $style['vertAlign'] === 'superscript') {
// LaTeX上标需要考虑嵌套用{}包裹内容
$content = "$^{{$content}}$";
$content = '$^{{'.$content.'}}$';
}
// 处理下标
if (isset($style['vertAlign']) && $style['vertAlign'] === 'subscript') {
$content = "$_{{$content}}$";
$content = '$_{{'.$content.'}}$';
}
return $content;