LATEX 基于IEEEtrans模板在标题下方添加图像

在这里插入图片描述

为了实现上图的效果,折腾了一天。下面几个链接是与此话题相关(不仅限于IEEE trans模板)

https://www.zhihu.com/question/68533668
https://www.zhihu.com/question/352402577/answer/870824289
https://tex.stackexchange.com/questions/472331/how-to-insert-an-image-with-width-of-double-column-between-title-and-abstract-in

不过上述方法不适用于我的情况,经过反复摸索,蒙着了一个还不错的解决方案:

核心代码:

  \begin{document}
  
  \IEEEtitleabstractindextext{
  
  \begin{center}\setcounter{figure}{0}
    \includegraphics[width=0.22\textwidth]{Fig/Image1}
    \includegraphics[width=0.22\textwidth]{Fig/Image2}
    \includegraphics[width=0.22\textwidth]{Fig/Image3}
    \includegraphics[width=0.22\textwidth]{Fig/Image4}
    \captionof{figure}{This is the caption.}
  \end{center}
  
  \begin{abstract}
  	This is the abstract.
  \end{abstract}

  \begin{IEEEkeywords}
  	This is the keywords.
  \end{IEEEkeywords}}

\IEEEdisplaynontitleabstractindextext
\IEEEpeerreviewmaketitle

\maketitle 

You can write whatever you want here.

\end{document}
\setcounter{figure}{0}的作用是在当前位置重新将图像的索引从Fig. 1开始算起。
另外\usepackage还是很重要的,要不然还是各种报错,这里我提供我的所有库:
\documentclass[10pt,journal,compsoc]{Style/IEEEtran}
\usepackage[T1]{fontenc}

\ifCLASSOPTIONcompsoc
  % IEEE Computer Society needs nocompress option
  % requires cite.sty v4.0 or later (November 2003)
  \usepackage[nocompress]{cite}
\else
  % normal IEEE
  \usepackage{cite}
\fi

\usepackage{etoolbox}

\ifCLASSINFOpdf
  \usepackage[pdftex]{graphicx}
  \graphicspath{{Figures/pdf/}{Figures/jpeg/}{Figures/png/}{Figures/eps/}}

  \DeclareGraphicsExtensions{.pdf,.jpeg,.png,.eps}
\else
  \usepackage[dvips]{graphicx}
  \graphicspath{{Figures/eps/}}
  \DeclareGraphicsExtensions{.eps}
\fi

\usepackage{amssymb}
\usepackage{mathtools}
\usepackage{textcomp}
\usepackage{gensymb}
\usepackage{siunitx}
\usepackage{algorithmic}
\usepackage{algorithm}
\usepackage{listings}
\usepackage{multirow}
\usepackage{boldline}
\usepackage{array}
\usepackage{graphicx}
\usepackage{lipsum}
\usepackage{setspace}
\usepackage{stfloats}
\newcolumntype{C}[1]{>{\centering\arraybackslash}p{#1}}


\usepackage{url}
\usepackage{ragged2e}
\usepackage{float}
\hyphenation{op-tical net-works semi-conduc-tor}

\ifCLASSOPTIONcompsoc
  \usepackage[caption=false,font=footnotesize,labelfont=sf,textfont=sf]{subfig}
\else
  \usepackage[caption=false,font=footnotesize]{subfig}
\fi

\usepackage{caption}
尤其是最后一个\usepackage{caption}容易被忽视
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

AplusX

踩坑不易,打个赏呗~

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值