Latex 插入jpg,eps图片

Latex 插入jpg png eps等图片

Latex一般是可以直接插入某个JPG、PNG等图片:
\begin{figure}[h]
    \centering
    \includegraphics[width=\linewidth]{pictures/Snipaste_2019-05-25_01-55-42.png}
    \caption{1907 Franklin Model D roadster. Photograph by Harris \& Ewing, Inc. [Public domain], via Wikimedia Commons. (\url{https://goo.gl/VLCRBB}).}
    \Description{The 1907 Franklin Model D roadster.}
\end{figure}
直接编译一般不会报错,如果出错就导入库
\usepackage{epstopdf}

插入eps图片

在这里插入图片描述
图片转EPS小工具:http://www.tlhiv.org/rast2vec/

\begin{figure}[htbp]	
    \centering
    \includegraphics[width=\linewidth]{pictures/1.eps}%picutres文件夹下的1.esp图片
    \caption{Campus environment detection system}
\end{figure}
会报错,原因是没有导入库:
\usepackage{epstopdf}

扩展内容:

latex中让图片放在指定文字段落后
\usepackage{float}
\begin{figure}[H]

在这里插入图片描述

子图模式

	 \begin{figure*}
	 	\centering
	 	\subfigure[The PageRank value of Guangzhou South Station in 24 hours for two month]{
	 		\begin{minipage}[b]{0.45\linewidth}
	 			\includegraphics[width=1\linewidth]{pictures/The_PR_value_of_Guangzhou_South_Railway_Station_in_24_hours_for_two_month.eps}
	 			\label{Guangzhou South Station}
	 	\end{minipage}}
	 	\subfigure[The distribution of average attraction every hour]{
	 		\begin{minipage}[b]{0.45\linewidth}
	 			\includegraphics[width=1\linewidth]{pictures/The_PR_value_of_Guangzhou_Baiyun_International_Airport_in_24_hours_for_two_month.eps}
	 			\label{Baiyun International Airport}
	 	\end{minipage}}
	 	\caption{The AttractRank value of the Guangzhou transportation hub in 24 hours for two month}
	 \end{figure*}

效果如图
在这里插入图片描述

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值