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{