I changed laptops and thus had to reinstall TeXStudio/TexLive. Now my projects don't compile correctly anymore. The same project is compiling correctly both on my old laptop and for a collaborator. There must be some setting wrong in TeXStudio but I don't know what. I get the following error for all my figures:
LaTeX Warning: File `../dir1/{name_including.dots}.pdf' not found on input line 249.
! Package pdftex.def Error: File `../dir1/{name_including.dots}.pdf' not found: using draft setting.
The file does exist in the appropriate directory (in directory dir1, one directory up from the main.tex file).
Version Info (current problematic TeXstudio setup):
LaTeX2e <2020-02-02> patch level 2
L3 programming layer <2020-02-14>
Package: graphicx 2019/11/30 v1.2a Enhanced LaTeX Graphics (DPC,SPQR)
TeXstudio 2.12.22
pdfTeX 3.14159265-2.6-1.40.20 (TeX Live 2019/Debian)
kpathsea version 6.3.1
Thanks to David who pointed out that:
1.) Removing the brackets would fix things for me.
2.) Putting the brackets around {../dir1/name_including.dots}.pdf should work for both me and my collaborator using an older version of LaTeX2e. If my collaborator confirms this is indeed the case I think I would consider that a full answer if David or someone else (or me if no one wants to bother) writes it up in an answer.
{../dir1/name_including.dots}.pdfprobably works on old and new systems. – David Carlisle Dec 09 '20 at 22:21LaTeX2e <2020-10-01> patch level 2and graphicx version, currentlyPackage: graphicx 2020/09/09 v1.2b Enhanced LaTeX Graphics (DPC,SPQR)– David Carlisle Dec 09 '20 at 22:23{../dir1/name_including.dots}.pdfI will ask my collaborator whether it also still works for him. Thanks for the help. (Sorry I edited this because at first recompile the error somehow hadn't updated but on second compile it did.) – Marten Dec 09 '20 at 22:35