I can confirm that some figures go missing or shows up in the wrong place in Overleaf when combining \include and \tikzexternalize.
I also tried the suggestion of @usr1234567 in How to externalize TikZ pictures but this has two issues:
- the file is created but cannot be included (it does not exist)
- if I upload the pdf, it does not display properly in Overleaf
Any suggestions?
Note: It is very difficult for me to compile a MWE of this specific issue.
On Overleaf v2, these files must be prefixed with output, instead of the filename of your .tex.I managed to get it working by calling\tikzexternalizewith\tikzexternalize[prefix=img/tikz/cache/,figure name=output](theprefixis of course arbitrary,figure name=outputis the important piece. – Immanuel Weihnachten Sep 07 '21 at 10:45