From df1ff09aa4227ceb6bb8c8c80f60909b584c5735 Mon Sep 17 00:00:00 2001 From: wangjinlei <751475802@qq.com> Date: Thu, 26 Feb 2026 17:59:56 +0800 Subject: [PATCH] latex update --- application/api/controller/Production.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/application/api/controller/Production.php b/application/api/controller/Production.php index b39b79e..114c1c4 100644 --- a/application/api/controller/Production.php +++ b/application/api/controller/Production.php @@ -2546,7 +2546,7 @@ class Production extends Base if (preg_match($pattern, $now, $matches)) { $figureId = $matches[1]; //处理查找到id之后的逻辑 - $textRenderData[] = "\\ref{fig:".$figureId."}"; + $textRenderData[] = "\\autoref{fig:".$figureId."}"; } }elseif ($tag === 'mytable'){//对表格的正文处理 $pattern = '/data-id=["\'](\d+)["\']/'; @@ -2571,7 +2571,7 @@ class Production extends Base if(strlen($cache_table['table_data'])>6000){ $textRenderData[] = "\\textcolor[HTML]{".$this->colorMap['blue']."}{Supplementary Table ".$key_num."}}"; }else{ - $textRenderData[] = "\\ref{tab:".$tableId."}"; + $textRenderData[] = "\\autoref{tab:".$tableId."}"; } } }else{