Images buged [LaTeX]

问题描述 投票:0回答:1

我的图像未显示在我的LaTex上(我使用Miktex和TexMaker)。

我尝试了很多事情,包括.jpg,.eps,.ps等许多格式,但是没有格式可以正常工作。

以.eps格式,该图像被LaTeX检测到(当我更改路径时,它显示“找不到图像”,但显示为白色正方形。

。jpg格式,我收到此错误消息:

! LaTeX Error: Cannot determine size of graphic in Rplot.jpg (no BoundingBox).

这是我使用的代码:

\documentclass{article}           
\usepackage[latin1]{inputenc}    
\usepackage[T1]{fontenc}          
\usepackage[final,dvips]{graphicx}      
\usepackage{fancybox}         
\usepackage{makeidx}           
\usepackage{gensymb}


\title{Project}     
\author{Name}   

\makeindex          
\bibliographystyle{prsty}    
\begin{document}

\maketitle                  
\newpage
\tableofcontents                    
\newpage
\section{Preliminary}  

\subsection{Dataset}
We chose to study the temperature of London.
\begin{itemize}
   \item Date : Month/Year from January 2009 to December 2019 
   \item Temperature: Average temperature in London($^{\circ}$C)
   \item Rain (mm)
   \item Sunshine (h)
   \item Wind (km/h)
\end{itemize}

\subsection{Descriptive statistics}

\begin{figure}[ht!]
\centering
\includegraphics[width=90mm]{Rplot.eps}
\caption{A simple caption \label{overflow}}
\end{figure}


%%\includegraphics[width=3in]{Rplot.eps} 




\end{document} 

请注意,我在调用程序包graphicx时尝试了不带选项dvipsfinal

Screenshot of what appears in my PDF output

任何想法?

谢谢!

编辑:在我的帖子开头我不能打招呼或打招呼

我的图像没有显示在我的LaTex上(我使用Miktex和TexMaker)。我尝试了很多方法,包括.jpg,.eps,.ps等许多格式,但是没有格式可以正常工作。在.eps中...

image latex
1个回答
0
投票

我找到了解决方案:我必须从软件包{graphicx}中取出选项“ dvips”

© www.soinside.com 2019 - 2024. All rights reserved.