overleaf 插入图片_Overleaf手册(三)--图片

导入图片

----需要提前声明:

\usepackage{graphicx}%调用graphicx包

\graphicspath{ {./images/} }%指明图片存放的文件夹,这里./表示主程序的那个目录(省略也行)

\includegraphics{universe}%插入图片(仅正文中使用)

另外,如果有两个装图片的文件夹可以写成下面:

\graphicspath{ {./images1/}{./images2/} }5ca5f088d4f5648cb6aa0b03a5473418.png

图像大小和旋转

----图片大小

\includegraphics[width=5cm, height=4cm]{图片名}

\includegraphics[width=\textwidth]{图片名}%让图片填充文档的宽度

----旋转

\includegraphics[scale=1.2, angle=45]{图片名}%原图1.2倍,逆时针旋转45度5ca5f088d4f5648cb6aa0b03a5473418.png

位置

----独立:

\begin{figure}[h]%就是这个[h]参数,下面会说其他的类型

\includegraphics[width=8


版权声明:本文为weixin_35275073原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。