From 6fc412c10050482e14c500d23af660c8c4291b3b Mon Sep 17 00:00:00 2001 From: chengxl Date: Thu, 8 Jan 2026 13:12:30 +0800 Subject: [PATCH] =?UTF-8?q?Latex=E7=94=9F=E6=88=90PDF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/common/LatexContent.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/application/common/LatexContent.php b/application/common/LatexContent.php index 86a933e..666875d 100644 --- a/application/common/LatexContent.php +++ b/application/common/LatexContent.php @@ -115,7 +115,7 @@ page={{stage_page}},%号 } //期刊简写 - $sAbbr = empty($aJournal['abbr']) ? $this->sAbbr : $aJournal['abbr']; + $sAbbr = $this->sAbbr;//empty($aJournal['abbr']) ? $this->sAbbr : $aJournal['abbr']; $sAbbr = strtolower($sAbbr); $sJournalTitle = empty($aJournal['title']) ? '' : $aJournal['title']; //年 @@ -175,7 +175,10 @@ page={{stage_page}},%号 $aSearch['{{pub_date}}'] = empty($aProductionArticle['pub_date']) ? '' : $aProductionArticle['pub_date']; //获取编辑信息 - $aSearch['{{executive_editor}}'] = empty($aUser['realname']) ? '' : '\Executiveeditor{'.$this->dealContent($aUser['realname']).'}'; + $executive_editor = empty($aProductionArticle['executive_editor']) ? '' : '\Executiveeditor{'.$this->dealContent($aProductionArticle['executive_editor']).'}'; + $executive_editor_realname = empty($aUser['realname']) ? '' : '\Executiveeditor{'.$this->dealContent($aUser['realname']).'}'; + $executive_editor = empty($executive_editor) ? $executive_editor_realname : $executive_editor; + $aSearch['{{executive_editor}}'] = $executive_editor; //摘要替换 $sAbstract = empty($aProductionArticle['abstract']) ? '' : $this->dealContent($aProductionArticle['abstract']);