IEEE模板下载下来,PDFlatex环境下编译后论文标题的字体不对,明显比标准的要小。同时日志中有警告具体内容下图。
请提供下载链接(或上传压缩包)并提供用于对比的示例文件。如有可能,提供IEEE关于标题的字体规范文件。
对比两份.cls
文件,发现字号大小有细微调整
同时逆向检索\maketitle
命令的行为我们可以发现,其内部命令\@maketitle
在IEEEtran.cls
中定义如下:
% Line 4802 around
\def\@maketitle{\newpage
\bgroup\par\vskip\IEEEtitletopspace\vskip\IEEEtitletopspaceextra\centering%
\ifCLASSOPTIONtechnote% technotes, V1.8a abstract and index terms are not treated differently for compsoc technotes
{\bfseries\large\@IEEEcompsoconly{\Large\sffamily}\@title\par}\vskip 1.3em{\lineskip .5em\@IEEEcompsoconly{\large\sffamily}\@author
\@IEEEspecialpapernotice\par}\relax
\else% not a technote
\vskip0.2em{\Huge\ifCLASSOPTIONtransmag\bfseries\LARGE\fi\@IEEEcompsoconly{\sffamily}\@IEEEcompsocconfonly{\normalfont\normalsize\vskip 2\@IEEEnormalsizeunitybaselineskip
\bfseries\Large}\@IEEEcompsocnotconfonly{\vskip 0.75\@IEEEnormalsizeunitybaselineskip}\@title\par}\relax
\@IEEEcompsocnotconfonly{\vskip 0.5\@IEEEnormalsizeunitybaselineskip}\vskip1.0em\par%
% V1.6 handle \author differently if in conference mode
\ifCLASSOPTIONconference%
{\@IEEEspecialpapernotice\mbox{}\vskip\@IEEEauthorblockconfadjspace%
\mbox{}\hfill\begin{@IEEEauthorhalign}\@author\end{@IEEEauthorhalign}\hfill\mbox{}\par}\relax
\else% peerreviewca, peerreview or journal
\ifCLASSOPTIONpeerreviewca
% peerreviewca handles author names just like conference mode
{\@IEEEcompsoconly{\sffamily}\@IEEEspecialpapernotice\mbox{}\vskip\@IEEEauthorblockconfadjspace%
\mbox{}\hfill\begin{@IEEEauthorhalign}\@author\end{@IEEEauthorhalign}\hfill\mbox{}\par
{\@IEEEcompsoconly{\vskip 1.5em\relax
\@IEEEtitleabstractindextextbox{\@IEEEtitleabstractindextext}\par\noindent\hfill
\IEEEcompsocdiamondline\hfill\hbox{}\par}}}\relax
\else% journal, peerreview or transmag
\ifCLASSOPTIONtransmag
% transmag also handles author names just like conference mode
% it also uses \@IEEEtitleabstractindextex, but with one line less
% space above, and one more below
{\@IEEEspecialpapernotice\mbox{}\vskip\@IEEEauthorblockconfadjspace%
\mbox{}\hfill\begin{@IEEEauthorhalign}\@author\end{@IEEEauthorhalign}\hfill\mbox{}\par
{\vspace{0.5\baselineskip}\relax\@IEEEtitleabstractindextextbox{\@IEEEtitleabstractindextext}\vspace{-1\baselineskip}\par}}\relax
\else% journal or peerreview
{\lineskip.5em\@IEEEcompsoconly{\sffamily}\sublargesize\@author\@IEEEspecialpapernotice\par
{\@IEEEcompsoconly{\vskip 1.5em\relax
\@IEEEtitleabstractindextextbox{\@IEEEtitleabstractindextext}\par\noindent\hfill
\IEEEcompsocdiamondline\hfill\hbox{}\par}}}\relax
\fi
\fi
\fi
\fi\par\addvspace{0.5\baselineskip}\egroup}
其中使用了\Large
,\LARGE
和\Huge
来设置\@title
的字号。这也许是差异的来源(因为这一堆code我也看不懂)。
Happy IEEETran-TeXing!
kpsepath
寻找IEEEtrans.cls
的顺序是优先在当前路径下寻找,再在系统texmf树
下寻找。值得一提的是,在IEEEtran
官网下载的应该是2020
年的版本,而CTAN
也就是你所说的“latex中的IEEEtran宏包”却在2015
年就不再更新了,二者可能有些许的差异。