Compare commits

..

2 Commits

Author SHA1 Message Date
wangjinlei
9268766f4d Merge remote-tracking branch 'origin/master' 2026-01-07 11:42:18 +08:00
wangjinlei
fc3b64ba5f latex update 2026-01-07 11:42:14 +08:00

View File

@@ -2232,8 +2232,8 @@ class Production extends Base
$production_info = $this->production_article_obj->where("article_id",$info['article_id'])->find();
$refers = $this->production_article_refer_obj->where("p_article_id",$production_info['p_article_id'])->where('state',0)->order("index")->select();
$res = $this->convertToLatex($info['content'],$refers);
return jsonSuccess([$res]);
echo $res;
// return jsonSuccess([$res]);
}
@@ -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;