文章目录

  • 1、参考文献
    • 1.1 制作.bib文件
    • 1.2 slatex模板中引入.bib文件
    • 1.3 文中引用文献
  • 2、TeXworks注释快捷键
  • 3、插入图片
    • 3.1 半栏:单张图片
    • 3.2 半栏:两图并列
    • 3.3 不分栏:单张图片
    • 3.4 不分栏:多张图片并列
    • 3.5 不分栏:多行多列图片,仅在最下面那行的图片下方添加文字
    • 3.5 图片标题caption居中(换行居中)显示
  • 4、添加邮箱
  • 5、latex绘制表格
    • 5.1 可能出现的问题
      • 5.1.1 表格不居中
      • 5.2 希望表格跨两栏显示
      • 5.3 缩放表格尺寸
      • 5.4 添加竖线
      • 5.5 表格交叉线有空隙

1、参考文献

可以从外部引入参考文献,不用在latex模板中一个个添加,容易格式出错导致引用参考文献处出现“?”。

1.1 制作.bib文件

参考链接:https://blog.csdn.net/tmylzq187/article/details/51355261
例如:

1.2 slatex模板中引入.bib文件

在 \end{document} 前面加上下面两句:

\bibliographystyle{IEEEtran}//默认为plain
\bibliography{ref} //ref是自己的bib文件

1.3 文中引用文献

\cite{ref1}

注意:一开始点击 ”pdfLaTex“ 运行时,文章引用文献的地方会变成 “[?]”。需要先点击 “BibTex”,生成一些拓展文件,再点击 " pdfLaTex"运行 即可

2、TeXworks注释快捷键

(1)多行注释:ctrl+shift+]
(2)取消多行注释:ctrl+shift+[

3、插入图片

3.1 半栏:单张图片

\begin{figure}[htbp]
\centerline{\includegraphics{unnorm2.png}}
\caption{Example of a figure caption.}
\label{fig}
\end{figure}

效果:

3.2 半栏:两图并列

\begin{figure}[htbp] %半栏中两图并列\subfigure{\centering\includegraphics[width=0.23\textwidth]{unnorm2.png}}\subfigure{\centering\includegraphics[width=0.23\textwidth]{unnorm3.png}}\caption{ Comparison between the original image and its low-frequency and high-frequency components after haar wavelet transform. The ImageNet 2012 validation dataset was used in the experiment.}
\end{figure}

效果:

3.3 不分栏:单张图片

\begin{figure*}[htb]
\centering
\includegraphics{unnorm2.png}
\caption{Comparison between the original image and its low-frequency and high-frequency components after haar wavelet transform. The ImageNet 2012 validation dataset was used in the experiment}
\label{Figure}
\end{figure*}

效果:

3.4 不分栏:多张图片并列

\begin{figure*}[htb]
\centering
\includegraphics[scale=0.8]{unnorm2.png} %可通过scale设置图片尺寸
\includegraphics{unnorm2.png}
\caption{Comparison between the original image and its low-frequency and high-frequency components after haar wavelet transform. The ImageNet 2012 validation dataset was used in the experiment}
\label{Figure}
\end{figure*}

效果:

3.5 不分栏:多行多列图片,仅在最下面那行的图片下方添加文字

\begin{figure*}[htb]\centering\subfigure{\begin{minipage}[t]{0.23\linewidth}\centering\includegraphics[width=1\linewidth]{unnorm2.png}\end{minipage}}\subfigure{\begin{minipage}[t]{0.23\linewidth}\centering\includegraphics[width=1\linewidth]{input_ll2.png}\end{minipage}}\subfigure{\begin{minipage}[t]{0.23\linewidth}\centering\includegraphics[width=1\linewidth]{input_high2.png}\end{minipage}}%想让上面三张图片单独一行,需要加一行空白行,表示下面的图片另起一行。即便上面的图片尺寸小,也不会自动将下面的图片添加到第一行末尾\setcounter{subfigure}{0} %清零,从 a 重新编号。\subfigure[Original image]{\begin{minipage}[t]{0.23\linewidth}\centering\includegraphics[width=1\linewidth]{unnorm3.png}\end{minipage}}\subfigure[Low-frequency]{\begin{minipage}[t]{0.23\linewidth}\centering\includegraphics[width=1\linewidth]{input_ll3.png}\end{minipage}}\subfigure[High-frequency]{\begin{minipage}[t]{0.23\linewidth}\centering\includegraphics[width=1\linewidth]{input_high3.png}\end{minipage}}\caption{Comparison between the original image and its low-frequency and high-frequency components after haar wavelet transform. The ImageNet 2012 validation dataset was used in the experiment}\label{Figure}
\end{figure*}

效果:

3.5 图片标题caption居中(换行居中)显示

(1)添加宏包

\usepackage{caption}
\captionsetup[figure]{font={small},singlelinecheck=false}

(2)图片标题

 \caption{\centering{Comparison between the original image and its low-frequency and high-frequency components after haar wavelet transform.\\The ImageNet 2012 validation dataset was used in the experiment}}

(3)前后效果对比
前:\centering{} 中使用 \\ 会报错,如果去掉 \centering{},则效果为左对齐(未居中)

后:

4、添加邮箱

(1)添加宏包:

\usepackage{hyperref}        %添加邮箱时使用

(2)用法

\href{mailto:xxx@xxx.com}{E-mail:xxx@xxx}

完整示例:

\title{Paper Title}\author{\IEEEauthorblockN{Author1\textsuperscript{1},Author2\textsuperscript{2},Author3\textsuperscript{*}}
\IEEEauthorblockA{\textit{1. Address1}
\href{mailto:xxx@xxx.com}{E-mail:xxx@xxx}} %此处添加邮箱
\IEEEauthorblockA{\textit{2. Address2}}
\IEEEauthorblockA{* Correspondence:\href{mailto:xxx@xxx}{xxx@xxx}}
}
\maketitle

效果:

5、latex绘制表格

在线绘制表格,再将相应的latex代码复制粘贴

别忘了添加宏包:\usepackage{booktabs}

5.1 可能出现的问题

5.1.1 表格不居中

% Please add the following required packages to your document preamble:
% \usepackage{booktabs}
\begin{table}[]
\begin{tabular}{@{}cccc@{}}
\toprule
class & math & chinese & english \\ \midrule
1     & 77   & 90      & 89      \\
2     & 82   & 87      & 91      \\
3     & 87   & 88      & 84      \\ \bottomrule
\end{tabular}
\caption{Table test}
\label{tab:my-table}
\end{table}

解决方法:添加 \centering

% Please add the following required packages to your document preamble:
% \usepackage{booktabs}
\begin{table}[]
\centering %使表格居中显示
\begin{tabular}{@{}cccc@{}}
\toprule
class & math & chinese & english \\ \midrule
1     & 77   & 90      & 89      \\
2     & 82   & 87      & 91      \\
3     & 87   & 88      & 84      \\ \bottomrule
\end{tabular}
\caption{\centering{Table test}}
\label{tab:my-table}
\end{table}

效果:

5.2 希望表格跨两栏显示

解决方法:将

\begin{table}[]
……
\end{table}

改成:

\begin{table*}[]
……
\end{table*}

效果:

5.3 缩放表格尺寸

使用 \scalebox{缩放倍数} 将表格内容包起来
完整代码:

\begin{table*}[]
\centering %使表格居中显示
\scalebox{3}{ %控制表格缩放\begin{tabular}{@{}cccc@{}}\toprule& content1 & content2 & content3 \\ \midrulea & 11       & 12       & 13       \\b & 21       & 22       & 23       \\c & 31       & 32       & 33       \\ \bottomrule\end{tabular}
}
\caption{\centering{Table test}}  %\centering 使得表格标题居中显示
\label{tab:my-table}
\end{table*}

效果:

5.4 添加竖线

解决方法:修改

 \begin{tabular}{@{}cccc@{}}

为:

  \begin{tabular}{@{}|c|ccc|@{}}  %要在哪里分割就在哪里画竖线。

完整代码:

% Please add the following required packages to your document preamble:
% \usepackage{booktabs}
\begin{table*}[]
\centering %使表格居中显示
\scalebox{3}{ %控制表格缩放\begin{tabular}{@{}|c|ccc|@{}} %要在哪里分割就在哪里画竖线\topruleclass & math & chinese & english \\ \midrule1     & 77   & 90      & 89      \\2     & 82   & 87      & 91      \\3     & 87   & 88      & 84      \\ \bottomrule\end{tabular}
}
\caption{\centering{Table test}}
\label{tab:my-table}
\end{table*}

效果:

5.5 表格交叉线有空隙

解决方法:将所有的 \toprule \midrule \bottomrule 都改成 \hline
完整代码:

% Please add the following required packages to your document preamble:
% \usepackage{booktabs}
\begin{table*}[]
\centering %使表格居中显示
\scalebox{3}{ %控制表格缩放\begin{tabular}{@{}|c|ccc|@{}} %要在哪里分割就在哪里画竖线\hline %去除交叉线空隙class & math & chinese & english \\ \hline %去除交叉线空隙1     & 77   & 90      & 89      \\2     & 82   & 87      & 91      \\3     & 87   & 88      & 84      \\ \hline %去除交叉线空隙\end{tabular}
}
\caption{\centering{Table test}}
\label{tab:my-table}
\end{table*}

效果:

\hline 所带来的问题:替换成\hline 之后,行高变小,表格内容紧贴着框线,不顾美观,如下:

解决方法:手动设置行高
关键代码:

\renewcommand\arraystretch{行高} %设置表格行高

完整代码:

% Please add the following required packages to your document preamble:
% \usepackage{booktabs}
\begin{table*}[]
\renewcommand\arraystretch{2} %设置表格行高
\centering %使表格居中显示\begin{tabular}{@{}|c|ccc|@{}} %要在哪里分割就在哪里画竖线\hline %去除交叉线空隙class & math & chinese & english \\ \hline %去除交叉线空隙1     & 77   & 90      & 89      \\2     & 82   & 87      & 91      \\3     & 87   & 88      & 84      \\ \hline %去除交叉线空隙\end{tabular}
\caption{\centering{Table test}}
\label{tab:my-table}
\end{table*}

效果:

Latex相关——IEEE英文模板相关推荐

  1. 【LaTeX】IEEE会议模板中插入双栏图片(解决报错:Undefined control sequence. \subfloat

    目录 一.问题描述 二.解决方案 三.引用参考 一.问题描述 使用IEEE会议论文LaTeX模板时遇到的一个错误,问题描述为:使用Texstudio编译LaTeX模板报错,报错信息提示为Undefin ...

  2. Latex编译IEEE会议模板字体显示异常的解决方法

    问题描述 在IEEE的网站上下载的Latex的Template:https://www.ieee.org/conferences/publishing/templates.html 在Latex中运行 ...

  3. latex使用IEEE trans模板时插入png pdf等格式的图片

    1.找到模板中如下部分 将标识那几行的注释去掉,将2标识的那一行的graphicspath改成自己的图片所在路径,例如我的就在png文件夹下 2.像插入eps一样插入相应的图片代码,如插入sflc.p ...

  4. 计算机相关专业 英文,计算机相关专业英文求职信模板

    计算机相关专业英文求职信怎样写呢?中国人才网小编建议您参考一下模板,相信对您撰写求职信会有所帮助.您还可以继续阅读建筑设计专业求职信模板.等文章学习写作技巧. Dear Sir/Madam: Your ...

  5. Latex overleaf 英文模板如何支持中文

    问题描述 overleaf中有众多英文模板,若直接在其中使用中文,则无法显示或会出现乱码,如下图所示: 解决方案 首先,添加如下代码: \usepackage[UTF8]{ctex} 之后,左上角me ...

  6. Latex相关资源汇总

    [转载]Latex相关资源汇总 前言 latex并不难,latex也不是艺术,而是给Knowledge Engineers的一个撰文工具,仅此而已.一篇文章真正的价值在于里面的发现和思维逻辑,文本.图 ...

  7. 如何用latex排版要求LNCS模板的论文

    前提: (1)要投稿的论文要求:投稿作者请以Springer的计算机科学讲义(LNCS)为模板,英文撰写全文 (2)心得:之前没有用过latex,第一次用它排版了论文,感觉latex就是像html一样 ...

  8. LaTeX入门教程 Elseiver模板使用

    LaTeX入门教程 & Elseiver模板使用 背景     最近准备向Elseiver期刊投稿,而官网仅提供了LaTeX写作模板,虽然内心有一万个不愿意使用LaTex(是的-我不会用==) ...

  9. LaTeX幻灯片通用简洁模板(Beamer)

    LaTeX幻灯片通用简洁模板(Beamer) 文章目录 LaTeX幻灯片通用简洁模板(Beamer) 一个简单别致的英文报告主题 常见问题汇总(持续更新) 提供一个Ctex套装下使用WinEdt编辑器 ...

最新文章

  1. 核磁共振影像数据处理-3-DTI基础、Li‘s have a solution and plan.
  2. Deno 正式发布,彻底弄明白和 node 的区别
  3. hdu 2295 Radar 重复覆盖+二分
  4. poj 3131 双向搜索+hash判重
  5. JavaWeb学习总结(十二)——Session
  6. python数据分析并生成报告_pandas_profiling :教你一行代码生成数据分析报告
  7. 元素或为1或为-1的行列式的值的估计
  8. php上传文件 服务器内部错误,php – 在将图像上传到S3时遇到内部服务器错误500...
  9. 单例模式(Java)
  10. hbase 使用disruptor_一条数据的HBase之旅,简明HBase入门教程-Write全流程
  11. UNIX环境高级编程之第4章:文件和目录-习题
  12. MWeb Pro for Mac(静态博客生成软件)
  13. iOS蓝牙4.0基础开发
  14. 专利技术交底书撰写经历
  15. 百色职称计算机,初级职称申请百色
  16. Shiro源码剖析——Subject的创建与获取(一次完整的请求执行流程)
  17. 第一章 智能体与学习环境
  18. 台电tbook10s删除安卓系统_Andriod系统体验 简洁流畅_台电 TBook 10_平板电脑评测-中关村在线...
  19. 软件学习——定时器(3)
  20. 深入浅出TVS瞬态抑态二极管

热门文章

  1. JAVA后端程序员英文-自我介绍
  2. 黑马程序员之javascript学习笔记:雪花飞舞特效
  3. C语言数字转字符串的几种方法
  4. Eclipse 配置首选项
  5. zipkin 禁止_Spring Cloud - Zipkin
  6. 系统管理员 AD如何还原活动目录
  7. 字符串排序(C语言实现)
  8. Linux网卡配置虚拟IP地址
  9. 2018主流台式计算机跑分,2018主流台式机配置到底是啥?看看这个装机单吧
  10. win8 qq无法连接网络连接服务器未响应,WIN8系统网络连接正常无法上网不能上QQ解决方法...