content转成latex update
This commit is contained in:
@@ -2039,19 +2039,28 @@ class Production extends Base
|
|||||||
mkdir($outputPath, 0755, true);
|
mkdir($outputPath, 0755, true);
|
||||||
}
|
}
|
||||||
//生成tex文件
|
//生成tex文件
|
||||||
|
//头部信息
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
//正文内容信息
|
||||||
$article_main_list = $this->article_main_obj->where("article_id",$data['article_id'])->where("state",0)->order("sort asc")->select();
|
$article_main_list = $this->article_main_obj->where("article_id",$data['article_id'])->where("state",0)->order("sort asc")->select();
|
||||||
$fragContentList = [];
|
$fragContentList = [];
|
||||||
|
|
||||||
foreach ($article_main_list as $article_main_info){
|
foreach ($article_main_list as $article_main_info){
|
||||||
if($article_main_info['type']!=0){
|
if($article_main_info['type']==0){//普通内容
|
||||||
|
//替换其他标签
|
||||||
|
$updatedContent = $this->convertToLatex($article_main_info['content'],$references);
|
||||||
|
//做内容替换
|
||||||
|
$article_main_info['content'] = $updatedContent;
|
||||||
$fragContentList[] = $article_main_info;
|
$fragContentList[] = $article_main_info;
|
||||||
continue;
|
}elseif ($article_main_info['type']==1){//处理图片
|
||||||
|
|
||||||
|
}else{//处理表格
|
||||||
|
|
||||||
}
|
}
|
||||||
//替换其他标签
|
|
||||||
$updatedContent = $this->convertToLatex($article_main_info['content'],$references);
|
|
||||||
//做内容替换
|
|
||||||
$article_main_info['content'] = $updatedContent;
|
|
||||||
$fragContentList[] = $article_main_info;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user