Bruno Lobo
Bruno Lobo

Reputation: 252

Overleaf - eps files

I have an issue with eps on the Overleaf platform. A minimal example is in the link below:

https://www.overleaf.com/8173131955vsxptnjhgqsh

The platform does not generate the file and, hence, cannot add it to the file. Since I know latex just from an user's perspective, I am not in the position to describe what is happening whatsoever. If someone have the same issue, I am glad to know the given solution.

Upvotes: 1

Views: 28136

Answers (2)

y y S
y y S

Reputation: 26

When you use a relative path to refer to a file in overleaf, the path is relative to the location of the current TeX file (main.tex's working directory is the root directory). So, if the location of your "main.tex" file changes, you may need to update your relative paths to make sure they still point to the correct location.

Upvotes: 1

Werner
Werner

Reputation: 15095

Your code is

\begin{figure}[h!]
\centering
\includegraphics[width=\linewidth]{ex6states.eps}
\caption{The Universe}
\label{fig:universe}
\end{figure}

which requires the file ex6states.eps. However, your project includes the following files:

enter image description here

ex6astates.eps is not the same as ex6states.eps! So, you're probably looking for something like this:

\begin{figure}[htb]
  \centering
  \includegraphics[width=\linewidth]{ex6astates.eps}
  \caption{The Universe}
  \label{fig:universe}
\end{figure}

enter image description here

Upvotes: 2

Related Questions