1500字范文,内容丰富有趣,写作好帮手!
1500字范文 > overleaf 插入图片_Overleaf——LaTeX插图命令使用教程

overleaf 插入图片_Overleaf——LaTeX插图命令使用教程

时间:2020-09-05 23:46:29

相关推荐

overleaf 插入图片_Overleaf——LaTeX插图命令使用教程

Latex插图

在Latex中使用插图一般有两种方式:一是插入准备好的图片,二是使用Latex代码在文档中画图。

我们一般常见的使用都是第一种。插图功能不是有Latex的内核直接提供的,而是需要由宏包graphicx提供的。插图的宏包我们还可以选择性的使用graphics这个宏包(graphicx宏包支持=的语法,使用起来更方便)。

1、加入宏包:

\documentclass{article}

\usepackage{graphicx}

\begin{document}

\end{document}

2、使用\includegraphics命令进行插图(在和文本相同的路径下面放置一张图片叫做111.png):

\documentclass{article}

\usepackage{graphicx}

\begin{document}

\noindent\textbf{1111111111111111111111111}\\\\

\includegraphics[scale=0.3]{XDU.jpg}\\\\

\noindent\textbf{1111111111111111111111111}

\end{document}

\includegraphics[]{}

第一参数设置的意义就是对图片做一些适当的调整(比如说设定图片的高度和宽度或者是按比例缩放)。

eg: width=3cm[缩放因子], height=8 cm[缩放因子] scale=0.4[缩放因子]

第二参数是我们的图片的名字(在这里要编译成功必须和我们的.tex文件放在同一个路径下)。

<

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。