排版相关调整

This commit is contained in:
chengxl
2026-02-11 11:26:28 +08:00
parent 736d32bf91
commit 9c0f14d8d7

View File

@@ -18,7 +18,7 @@ use think\log;
class Production extends Base
{
private $supportedTags = ['sup', 'sub', 'blue', 'b', 'i', 't', 'r', 'wmath'];
private $supportedTags = ['sup', 'sub', 'blue', 'b', 'i', 't', 'r', 'wmath','myh3'];
// 颜色映射自定义标签颜色对应LaTeX的HTML十六进制颜色
private $colorMap = [
'blue' => '0082AA',
@@ -2667,6 +2667,9 @@ class Production extends Base
$style['color'] = $this->colorMap['r'];
break;
// tr标签已被移除无需处理
case 'myh3':
$style['h3'] = true;
break;
}
}
@@ -2708,6 +2711,10 @@ class Production extends Base
$content = '$_{{'.$content.'}}$';
}
// 处理h3标签
if (isset($style['h3']) && $style['h3']) {
$content = "\\textbf{{$content}}";
}
return $content;
}
@@ -3300,6 +3307,16 @@ class Production extends Base
$article_info = $this->article_obj->where('article_id', $p_info['article_id'])->find();
$journal_info = $this->journal_obj->where('journal_id', $article_info['journal_id'])->find();
$user_info = $this->user_obj->where('user_id', $article_info['user_id'])->find();
//查询文章是否有Accept记录 20260210 start
$article_info_id = empty($article_info['article_id']) ? 0 : $article_info['article_id'];
$aMsgWhere = ['article_id' => $article_info_id,'state_to' => 5];
$aArticleMsg = Db::name('article_msg')->field('msg_id')->where($aMsgWhere)->find();
if(empty($aArticleMsg)){
return jsonError("Please set the paper as Accept before asking the author to confirm");
}
//查询文章是否有Accept记录 20260210 end
$this->pdfAddProof($p_info['article_id']);
if ($p_info['file_pdf'] == '') {
return jsonError('To the editor: PROOF is the final form before the article goes online. The PROOF link step not be opened if you have not completed the previous steps.');