如何在IEEETrans格式的latex标题页插入图像
目前网上很多帖子,解决了如何在CVPR等IEEEConf格式的latex标题页插入图像,但是ieee trans的还是很少见,查过以后发现,目前主要做法是下面的代码:
【实践经验】latex标题页插入图像_latex在标题下面放图片-CSDN博客
\usepackage{caption}
\let\oldtwocolumn\twocolumn
\renewcommand\twocolumn[1][]{\oldtwocolumn[{#1}{\begin{center}\setcounter{figure}{0}\includegraphics[width=\textwidth]{picture/vis.png}\captionof{figure}{While solid paints (left top).}\label{fig:show_result}\end{center}}]
}
我其实还修改了原代码,因为之前的代码无法实现自动编号,文章会出现两个Fig .1,使用\setcounter{figure}{0}能进行编号,但是这个代码的主要问题是需要引用caption这个包,就会覆盖Ieee trans的原始caption格式,导致Table的格式全变了。。
既然没办法使用caption包,那就索性找gpt自己写figure 1的caption,如下方代码:
%无需加入任何额外包,只需要替换你的图片和caption
\twocolumn[{\renewcommand\twocolumn[1][]{#1}\maketitle\begin{center}\refstepcounter{figure} % 手动推进 figure 计数器\includegraphics[width=\textwidth]{figs/fig.jpg}\vspace{0.5ex}\begin{flushleft}\footnotesizeFig.~\thefigure.there is my caption of this image.\label{fig1}
\end{flushleft}\end{center}
}]
虽然这样可以实现大图引入,但是会导致ieee trans原本的\thanks的内容也就是脚注无法出现,为了解决改问题,通过下方链接找到了引入脚注的方法:
Latex ieee paper首页标题下方插入跨分栏图片,并解决脚注问题_ieee 双栏排版 图片横跨-CSDN博客
上面链接的标注在trans模板中有点问题,经过gpt修改以后,完整的ieee trans的latex模板中在标题页的abstract前插入跨分栏图片,并解决脚注代码如下(家人们,感觉有用的话点个赞!!):
%这个是对脚注的标注格式定义
\newcommand\blfootnote[1]{%\begingroup\renewcommand\thefootnote{}\footnotetext{#1}%\endgroup
}\begin{document}\title{A IEEE TRANS PAPER}\author{A, B, C*}%无需加入任何额外包,只需要替换你的图片和caption
\twocolumn[{\renewcommand\twocolumn[1][]{#1}\maketitle\begin{center}\refstepcounter{figure} % 手动推进 figure 计数器\includegraphics[width=\textwidth]{figs/fig.jpg}\vspace{0.5ex}\begin{flushleft}\footnotesizeFig.~\thefigure.there is my caption of this image.\label{fig1}
\end{flushleft}\end{center}
}]
% 脚注文本
\blfootnote{The authors are with xxx university.* Corresponding author: C, C@126.com}