Compare commits

..

2 Commits

Author SHA1 Message Date
wangjinlei
041141a68e Merge remote-tracking branch 'origin/master' 2026-01-06 16:15:45 +08:00
wangjinlei
ff0a873749 figer update 2026-01-06 16:15:40 +08:00

View File

@@ -2161,10 +2161,10 @@ class Production extends Base
// if (!empty($ami_info['title'])) {
// $escapedTitle = $this->escapeLatexSpecialChars(strip_tags($ami_info['title']));
// $latexLines[] = " \\caption{" . $escapedTitle . "}";
// }
if (!empty($ami_info['title'])) {
$escapedTitle = $this->convertToLatex(preg_replace('/^Figure\s+\d+\s*/i', '', $ami_info['title']),[]);
$latexLines[] = " \\caption{" . $escapedTitle . "}";
}
//
// if (!empty($ami_info['note'])) {
// $escapedNote = $this->escapeLatexSpecialChars(strip_tags($ami_info['note']));