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图片

Latex 插入jpg,eps图片_第1张图片
图片转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]

Latex 插入jpg,eps图片_第2张图片

子图模式

	 \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*}

效果如图
Latex 插入jpg,eps图片_第3张图片

你可能感兴趣的:(Latex,Fix_bug)