From fc3b64ba5fd0cb812f5d3cf05e7d7b9c4b8a5d5a Mon Sep 17 00:00:00 2001 From: wangjinlei <751475802@qq.com> Date: Wed, 7 Jan 2026 11:42:14 +0800 Subject: [PATCH] latex update --- application/api/controller/Production.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/application/api/controller/Production.php b/application/api/controller/Production.php index e7b482d..0e0b528 100644 --- a/application/api/controller/Production.php +++ b/application/api/controller/Production.php @@ -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;