0

This question isn't a duplicate of Can I use an image located on the web in a LaTeX document? but a more specific version of it for Overleaf, since none of the answers given there work on that E.g. the accepted solution (with a real-life example picture)

\documentclass{article}
\usepackage{graphicx} % includegraphics command is implemented here
\begin{document}

\write18{wget https://www.wikipedia.org/portal/wikipedia.org/assets/img/Wikipedia-logo-v2.png} \includegraphics{Wikipedia-logo-v2.png}

\end{document}

results in

File `Wikipedia-logo-v2.png' not found on input line 6.

Is there a working solution of this for Overleaf?

mma
  • 103
  • 3
    wget is available but I think the docker container that they give you has no external internet access (but you'd need to check with overleaf support) so you need to download locally and upload (in the free version at least) – David Carlisle Mar 16 '24 at 11:16
  • 2
    Overleaf-specific questions are best addressed directly to the Overleaf Helpdesk. – Mico Mar 16 '24 at 12:23
  • 1
    @Mico It's done. No reply yet. :( – mma Mar 16 '24 at 15:14

1 Answers1

1

As mentioned, please direct Overleaf specific questions to Overleaf support. You can get in touch with them here: https://www.overleaf.com/contact (I'm on the support team).

As also mentioned, you have no internet access during the compile process so you can't dynamically download content.

You can load a read-only copy of a file hosted elsewhere using the "from URL" file input option described here: https://www.overleaf.com/learn/how-to/How_to_upload_a_file_using_an_external_URL. While it isn't fetched dynamically at compile time, this option provides a "refresh" button on the file which can be used to get an updated version of the file at any time.