5

I have a tikz figure in the Overleaf project. I want to export and save the tikz image in a pdf file. I tried using

\usepackage{tikz}
\usetikzlibrary{external}
\tikzexternalize % activate!

as suggested here.

\usepackage{tikz}
\usetikzlibrary{external}
\tikzexternalize % activate!
\begin{document}
\begin{tikzpicture}
...
\end{tikzpicture}

This didn't help me, it only created a blank tikz image in the compiled document and I am not sure if an additional command has to be included to export the tikz image to save the tikz figure as a pdf in the overleaf project. I'm basically doing this to generate pdf versions of all images in my manuscript for submission. Could someone please help me with this?

Natasha
  • 511
  • 1
    I think you will have to add more information to your problem, since the link you have provided should actually answer your question. You want to add a tikz picture (you have the code?) into a main document? Is \input{} and option? – Roland Aug 25 '21 at 04:01
  • @Roland I'm not sure if I understand what you mean by \input{}. Could you please elaborate? – Natasha Aug 25 '21 at 13:41
  • \input{} is a way to import code into a target file. Explanation see here – Roland Aug 25 '21 at 22:57
  • @Roland Thank you, but my goal here is to export the tikz figure from overleaf tex file in a pdf . – Natasha Aug 26 '21 at 09:24
  • But this does not make any sense. Just click on menu -> Download -> pdf and you will get your tikz.tex as a pdf file without furhter commands. – Roland Aug 26 '21 at 09:31
  • But that downloads the whole of my manuscript and not just the tikz figure – Natasha Aug 26 '21 at 09:33
  • I do not know what your document looks like, so I do not know what the actual problem ist. – Roland Aug 26 '21 at 09:39

1 Answers1

5

Following the method described above, I presume that you have tried heading over to the 'Logs and output files' at the top of the Overleaf page?

For me this works by the following three steps after compiling the file:

  1. The images are saved as individual .pdf files here:
  1. Go to the 'Other logs and files' tab:
  1. Open + save the file.