修改图片绑定label
This commit is contained in:
@@ -701,7 +701,11 @@ page={{stage_page}},%号
|
|||||||
$latexLines[] = " \\includegraphics[width=0.9\\textwidth]{" . $sImageUrl . "}";
|
$latexLines[] = " \\includegraphics[width=0.9\\textwidth]{" . $sImageUrl . "}";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//添加图片的label
|
||||||
|
$ami_id = empty($aImageInfo['ami_id']) ? 0 : $aImageInfo['ami_id'];
|
||||||
|
if(!empty($ami_id)){
|
||||||
|
$latexLines[] = " \\label{fig:" . $ami_id . "}";
|
||||||
|
}
|
||||||
|
|
||||||
if(!empty($aImageInfo['title']) && !empty($aImageInfo['note'])){
|
if(!empty($aImageInfo['title']) && !empty($aImageInfo['note'])){
|
||||||
$escapedTitle = '{\fontspec{Calibri}\footnotesize\bfseries\color{figerTitleColor} '.$this->dealContent(preg_replace('/^Figure\s+\d+\s*/i', '', $aImageInfo['title']),[]).'}\\\\';
|
$escapedTitle = '{\fontspec{Calibri}\footnotesize\bfseries\color{figerTitleColor} '.$this->dealContent(preg_replace('/^Figure\s+\d+\s*/i', '', $aImageInfo['title']),[]).'}\\\\';
|
||||||
|
|||||||
Reference in New Issue
Block a user