Overleaf 使用pdflatex
但是当我尝试插入图像时仍然出现此错误.png
。
\includegraphics{screenshots/AB4results.png}
事实上,Overleaf
.png
在其模板中有一个文件:
\documentclass{article}
\usepackage{graphicx}
\graphicspath{ {./images/} }
\begin{document}
The universe is immense and it seems to be homogeneous,
in a large scale, everywhere we look at.
\includegraphics{universe}
There's a picture of a galaxy above
\end{document}
以下是我正在使用的所有软件包。
\usepackage[english, greek]{babel}
\usepackage[T1, T2A]{fontenc}
\usepackage{mathtools}
\usepackage{amsmath}
\usepackage{listings}
\usepackage{color} %red, green, blue, yellow, cyan, magenta, black, white
\definecolor{mygreen}{RGB}{28,172,0} % color values Red, Green, Blue
\definecolor{mylilas}{RGB}{170,55,241}
%matlab
\usepackage{bigfoot} % to allow verbatim in footnote
\usepackage[numbered,framed]{matlab-prettifier}
%\usepackage{pdfpages}
\pagenumbering{gobble}
\setlength{\parindent}{0em}
\setlength{\parskip}{1em}
\renewcommand{\baselinestretch}{1.5}
\usepackage[margin=0.9in]{geometry}
\usepackage{natbib}
%inserting png images
\usepackage{graphicx}
\usepackage{wrapfig}
\usepackage{extarrows}
编辑:我在代码中包含了尺寸并且错误消失了:
\includegraphics[width=0.8\textwidth,natwidth=489,natheight=436]{screenshots/AB4results.png}
但图像仍然没有出现。