前言

  • 推荐使用overleaf写latex文章,内含很多会议/期刊的模板,可以直接套用。
    https://www.overleaf.com
  • 下文都是在写论文过程中比较头疼的部分,有人建议我写完文章,最后再调整格式。但图片过大看起来实在是不适~

插入图片

\begin{figure}[!htbp]\centerline{\includegraphics[width=1.0\linewidth,scale=0.3]{pic.png}}\caption{the description of picture} \label{fig:pic_name}
\end{figure}

解释:
[!hbtp]: 图片位置格式

  • [h] 当前位置(here):h 表示你在编写的时候中在哪里,论文最终显示图片的位置就在哪里,但是如果这一页的空间不足以放下这个图片,此时图片会转到下一页;
  • [t] 顶端(top):t 表示优先将图片放置在页面对应排的顶部;
  • [b] 底端(bottom):b 表示优先将图片放置在页面对应排的底部;
  • [p] 浮动:将图片设置为浮动状态,系统会自动排版图片的位置;

\centerline 居中显示
\includegraphics 图片及参数:[]内放置图片的参数,其中width=1.0是图片的大小,\linewidth是按照文章行的宽度,合在一起是图片宽度等于文章行的宽度;\scale是等比放大缩小。、
\caption: 描述图片
\label: 用于引用图片的名称

如何在文中引用图片? \ref{fig:pic_name}

图片大小

\includegraphics[scale=0.3] :将图片缩小到0.3倍大小

宽度更改

\includegraphics[width=1.0\linewidth]:将图片的宽度和文章宽度齐平
\includegraphics[width=1.0\textheight]:图片高度和页面高度设置一致

表格

推荐使用转换工具:https://tableconvert.com/
可以导入excel,也可以直接在上面制作表格后转换。

另一个工具,也很简洁,可以进行更全面的操作,对单元格进行合并。但是有时候会出现一些细节格式问题,还是推荐自己进行下列操作。ref:https://www.tablesgenerator.com/

插入表格

\begin{table}[!ht]\Large\centering\caption{table description}\begin{tabular}{|c|c|c|}\hline\textbf{} & \textbf{height} & \textbf{width} \\ \hline\textbf{A} & 1 & 3 \\ \hline\textbf{B} & 2 & 4 \\ \hline\textbf{C} & 5 & 6 \\ \hline\end{tabular}\label{tab:tab_name}
\end{table}

生成样式:

解释:

  • \certering 代表居中
  • \hline 代表添加的横线
  • \ 代表换行
  • & 隔开单元格内容

如何在文中引用表格? \ref{tab:tab_name}

表格内部字体调整

\begin{table}[!h]
\small %此处写字体大小控制命令
\begin{tabular}
...
\end{tabular}
\end{table}

元素对应的字体大小:

size 10pt (default) 11pt option 12pt option
\tiny 5pt 6pt 6pt
\scriptsize 7pt 8pt 8pt
\footnotesize 8pt 9pt 10pt
\small 9pt 10pt 11pt
\normalsize 10pt 11pt 12pt
\large 12pt 12pt 14pt
\Large 14pt 14pt 17pt
\LARGE 17pt 17pt 20pt
\huge 20pt 20pt 25pt
\Huge 25pt 25pt 25pt

复杂表格

合并多行

\centering
\caption{A table}
\label{tab:tab_name}
\begin{tabular}{|c|c|c|}
\hline
\textbf{} & \textbf{height} & \textbf{width} \\\hline& a1              & 1              \\ \cline{2-3}
\multirow{-2}{*}{\textbf{A}}                   & a2              & 2              \\ \hline
\textbf{B}                                     & b               & 3              \\ \hline
\textbf{C}                                     & c               & 4              \\ \hline
\end{tabular}
\end{table}

效果如图:

解释:

  • \multirow{-2}{*}{\textbf{A}} 代表单元格内容为A的占据了两行,且剧中表示。\multirow{NUMBER_OF_ROWS}{WIDTH}{CONTENT} ,其中NUMBER_OF_ROWS代表跨越几行,- 让单元格居中中。另一行的单元格应为空。
  • \cline[2,3] 代表在第二三列加上竖线

合并多列

\begin{table}[!ht]
\centering
\caption{A table}
\label{tab:tab_name}
\begin{tabular}{|c|c|c|}
\hline
\textbf{}  & \multicolumn{1}{c|}{\textbf{height}} & \textbf{width} \\ \hline
\textbf{X} & \multicolumn{2}{c|}{a1}     \\ \hline
\textbf{A} & \multicolumn{1}{c|}{a2} & 2 \\ \hline
\textbf{B} & \multicolumn{1}{c|}{b}  & 3 \\ \hline
\textbf{C} & \multicolumn{1}{c|}{c}  & 4 \\ \hline
\end{tabular}
\end{table}

效果如图:

\multicolumn{2}{c|}{a1},使得内容为 a1 的这一个单元格占据了两列。注意这里的ALIGNMENT写的是c|代表表格内容居中,表格右侧有竖线而左侧没有。

表格大小自适应

\begin{table}[!h]
\resizebox{\linewidth}{!}{\begin{tabular}{|c|c|c|}
...
\end{tabular}
}
\end{table}

\resizebox{width}{height}代表重置表格宽高,例如\resizebox{\linewidth}{!}代表按照文本宽度变化,高度不变

公式

使用转换工具,ref:https://www.latexlive.com/

最好用的工具,没有之一,可惜现在图片识别的次数限制2次!如果有别的好用的识别工具请推荐一下 ~~

插入公式

\begin{equation}\caption{formula}\label{eq:formula}\alpha=b+1
\end{equation}

这样生成的公式会有一个单独的编号,如图:

如何在文中引用表格? \eqref{eq:formula}

多行公式同一编号

如果是多行公式怎么统一编号呢?加入align\\

\begin{equation}
\caption{formula}
\label{eq:formula}
\begin{aligned}\alpha=b+1,\\b=\omega+1. \\
\end{aligned}
\end{equation}

效果如图:

多行公式不同编号

\begin{align}\alpha=b+1,\\b=\omega+1.
\end{align}

效果如图:

按等号对齐

等号之前加入&符号

\begin{align}\alpha&=b+1,\\b&=\omega+1.
\end{align}

效果如图:

公式过长

split帮公式分行

\begin{equation}\begin{split}\cos \omega &= \cos^2 \omega - \sin^2 \omega\\&= 2\cos^2 \omega - 1\end{split}
\end{equation}

效果如图:

IEEE会议参考文献

原代码

会议模板给出的形式为:

\begin{thebibliography}{99}\bibitem{c1} G. O. Young, ÒSynthetic structure of industrial plastics (Book style with paper title and editor),Ó  in Plastics, 2nd ed. vol. 3, J. Peters, Ed.  New York: McGraw-Hill, 1964, pp. 15Ð64.
\bibitem{c2} W.-K. Chen, Linear Networks and Systems (Book style).  Belmont, CA: Wadsworth, 1993, pp. 123Ð135.
\bibitem{c3} H. Poor, An Introduction to Signal Detection and Estimation.   New York: Springer-Verlag, 1985, ch. 4.
\bibitem{c4} B. Smith, ÒAn approach to graphs of linear forms (Unpublished work style),Ó unpublished.
\bibitem{c5} E. H. Miller, ÒA note on reflector arrays (Periodical styleÑAccepted for publication),Ó IEEE Trans. Antennas Propagat., to be publised.
\bibitem{c6} J. Wang, ÒFundamentals of erbium-doped fiber amplifiers arrays (Periodical styleÑSubmitted for publication),Ó IEEE J. Quantum Electron., submitted for publication.
\bibitem{c7} C. J. Kaufman, Rocky Mountain Research Lab., Boulder, CO, private communication, May 1995.
\bibitem{c8} Y. Yorozu, M. Hirano, K. Oka, and Y. Tagawa, ÒElectron spectroscopy studies on magneto-optical media and plastic substrate interfaces(Translation Journals style),Ó IEEE Transl. J. Magn.Jpn., vol. 2, Aug. 1987, pp. 740Ð741 [Dig. 9th Annu. Conf. Magnetics Japan, 1982, p. 301].
\bibitem{c9} M. Young, The Techincal Writers Handbook.  Mill Valley, CA: University Science, 1989.
\bibitem{c10} J. U. Duncombe, ÒInfrared navigationÑPart I: An assessment of feasibility (Periodical style),Ó IEEE Trans. Electron Devices, vol. ED-11, pp. 34Ð39, Jan. 1959.
\bibitem{c11} S. Chen, B. Mulgrew, and P. M. Grant, ÒA clustering technique for digital communications channel equalization using radial basis function networks,Ó IEEE Trans. Neural Networks, vol. 4, pp. 570Ð578, July 1993.
\bibitem{c12} R. W. Lucky, ÒAutomatic equalization for digital communication,Ó Bell Syst. Tech. J., vol. 44, no. 4, pp. 547Ð588, Apr. 1965.
\bibitem{c13} S. P. Bingulac, ÒOn the compatibility of adaptive controllers (Published Conference Proceedings style),Ó in Proc. 4th Annu. Allerton Conf. Circuits and Systems Theory, New York, 1994, pp. 8Ð16.
\bibitem{c14} G. R. Faulhaber, ÒDesign of service systems with priority reservation,Ó in Conf. Rec. 1995 IEEE Int. Conf. Communications, pp. 3Ð8.
\bibitem{c15} W. D. Doyle, ÒMagnetization reversal in films with biaxial anisotropy,Ó in 1987 Proc. INTERMAG Conf., pp. 2.2-1Ð2.2-6.
\bibitem{c16} G. W. Juette and L. E. Zeffanella, ÒRadio noise currents n short sections on bundle conductors (Presented Conference Paper style),Ó presented at the IEEE Summer power Meeting, Dallas, TX, June 22Ð27, 1990, Paper 90 SM 690-0 PWRS.
\bibitem{c17} J. G. Kreifeldt, ÒAn analysis of surface-detected EMG as an amplitude-modulated noise,Ó presented at the 1989 Int. Conf. Medicine and Biological Engineering, Chicago, IL.
\bibitem{c18} J. Williams, ÒNarrow-band analyzer (Thesis or Dissertation style),Ó Ph.D. dissertation, Dept. Elect. Eng., Harvard Univ., Cambridge, MA, 1993.
\bibitem{c19} N. Kawasaki, ÒParametric study of thermal and chemical nonequilibrium nozzle flow,Ó M.S. thesis, Dept. Electron. Eng., Osaka Univ., Osaka, Japan, 1993.
\bibitem{c20} J. P. Wilkinson, ÒNonlinear resonant circuit devices (Patent style),Ó U.S. Patent 3 624 12, July 16, 1990. \end{thebibliography}

修改部分

为了方便直接使用GoogleScholar给出的Bibtex,我们使用如下的引用方式,将上述的内容改成:

\bibliographystyle{IEEEtran}
\bibliography{references}{}

解释:

  • references代表references.bib文件,用于存放文献的BibTex引用。
  • IEEEtran为模板文件IEEETran.cls

如何添加引用

  1. Cite
  2. BibTex
  3. 复制粘贴到references.bib文件

参考资料

  1. https://blog.csdn.net/qq_41775769/article/details/121400026
  2. https://blog.csdn.net/guotong1988/article/details/112068202
  3. https://blog.csdn.net/zzmgood/article/details/36419493
  4. https://blog.csdn.net/weixin_41519463/article/details/103737464
  5. https://blog.csdn.net/Strive_For_Future/article/details/118609968

【latex】总结使用到的画图、表格及公式操作(新增IEEE会议参考文献)相关推荐

  1. LaTex技巧:用PPT画图,然后导入LaTeX

    用PPT画图,然后导入Latex: 1.在PPT中画图,注意调整幻灯片大小,图周围尽量不要有太多空白.调整幻灯片大小的方法:设计-->幻灯片大小-->自定义幻灯片大小,弹出窗口选择&quo ...

  2. latex入门指南:插入图片、表格、公式方法一览

    省事链接: 生成表格latex代码:www.tablesgenerator.com 生成公式latex代码:www.latexlive.com 目录 1 插入图片 1.1 移动标题位置 1.2 双栏文 ...

  3. Latex小技巧:将Excel表格转换为Latex格式表格

    参考: https://blog.csdn.net/LF21011501/article/details/89684798  Latex小技巧:将Excel表格转换为Latex格式表格 Latex作为 ...

  4. LaTex, 矩阵方程插入 和图片表格以及公式跨栏插入

    LaTex排版技巧: 矩阵方程怎么插入 文章分两栏时图片表格以及公式如何跨栏 1,矩阵方程插入: \begin{equation} \left[ \begin{array}{cccc} {S_b}({ ...

  5. 【Tools】MarkDown教程(三)-MarkDown表格和公式

    00. 目录 文章目录 00. 目录 01. 表格 02. 表格对齐方式 03. 行内公式 04. 陈列公式 05. MathJax语法 06. 常用数学运算符表 07. 附录 01. 表格 Mark ...

  6. 调用图片文件夹中的任意图片随机显示_他来了,他来了,Mathpix拜拜了~~~文字、表格、公式图片识别神器V0.1测试版...

    (图0) img2txt V0.8 [正式版] 第1步:win10自带截图快捷键:Win+Shift+S,也可以用QQ等截图工具: 第2步:打开软件,完成初始配置(后续调用无需再配置),按需识别: ( ...

  7. Markdown的使用之一:表格和公式

    表格和公式 1.1 表格 教程标题| 主要内容 -------|---------- 关于Markdown | 简介Markdown,Markdown的优缺点 Markdown基础 | Markdow ...

  8. LaTex使用方法和技巧——以IEEE会议论文模板为例

    LaTex使用方法和技巧--以IEEE会议论文模板为例 IEEE 会议论文模板下载地址 使用Bib管理参考文献 交叉引用点击跳转和添加颜色 调整参考文献间距 平衡最后一页长度 图片插入.通栏图片.大小 ...

  9. 【Win神器】文字、表格、公式图片识别 V0.2

    文字.表格.公式图片识别 V0.2版(如下图) (图0) 更新说明 (1)直接在新窗口展示识别结果 (2)win10自带截屏快捷键:Win+Shift+S (3)文字识别快捷键:Ctrl+b (4)表 ...

最新文章

  1. 分辨率与栅格系统的对应关系:
  2. UI自动化之元素定位(xpath、css)
  3. 使用wsimport命令创建Web Service客户端
  4. java 多进程多线程_Java并发编程原理与实战三:多线程与多进程的联系以及上下文切换所导致资源浪费问题...
  5. JQuery Datatables 数据操作
  6. react项目中的参数解构_一天入门React学习心得
  7. UVA 10129 Play on Words
  8. 使用NUnit和Moq测试ASP.NET Core MVC应用程序
  9. TCL——事务控制语言
  10. AMD IOMMU与Linux (4) -- Domain, Group, Device
  11. RS232通信以及dB9定义
  12. silklabo哪个公众号有资源_公众号和头条号,做哪个赚钱?
  13. 谈谈Linux应用程序 ABI兼容性
  14. 创建型模式大全(Java讲解)
  15. 【Google Play】Google Play 签名维护 ( 签名机制 | Google Play 签名机制选择 | 签名更新 )
  16. 高考作文《细雨闲花》
  17. 【Python项目】贪吃蛇小游戏
  18. Easypanel linux离线安装,easypanel
  19. 各主板黑苹果dsdt补丁_苹果系统发展简史
  20. 电源管理允许此设备唤醒计算机怎么关掉,允许计算机关闭此设备以节省电量灰色 | MOS86...

热门文章

  1. python主题壁纸下载_Python 下载Bing壁纸
  2. 设备接入阿里云物联网平台
  3. Flex/Flash/AS3.0:无法访问空对象引用的属性或方法
  4. 微信小程序 格式化金额 .wxs文件
  5. 6.以表格单据式单表为模板定制模块:订单信息维护
  6. 环形网,核心网,接入网(特例是PON网),承载网
  7. 倾斜模型精细化处理_倾斜摄影与地面激光点云融合精细化建模研究
  8. python创建一个空集合_Python中如何创建集合
  9. C语言/C++对BMP图片加椒盐噪声 超简单
  10. 基于vue的英语单词App