天天看點

Latex 插入jpg,eps圖檔Latex 插入jpg png 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}
           
Latex 插入jpg,eps圖檔Latex 插入jpg png eps等圖檔

插入eps圖檔

Latex 插入jpg,eps圖檔Latex 插入jpg png 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]
           
Latex 插入jpg,eps圖檔Latex 插入jpg png eps等圖檔

子圖模式

\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圖檔Latex 插入jpg png eps等圖檔