Open juanscr opened 3 years ago
Seems like the current implementation also fails (on windows) if a folder contains a dot in the name:
C:\Temp\pylatex-tmp.abc\image.pdf
will become C:\Temp\{pylatex-tmp.abc\image}.pdf
which will not work in latex.
A pull request to fix this is apreciated.
In previous versions of LaTeX, if a filename contained a dot in it's name such like
dir/name.with.dots.pdf
the include graphics function will error out. To fix this, it was enough to put brackets only in the name file in this manner:dir/{name.with.dots.pdf}
.For newer version of LaTeX this does not work. According to the following comment found in Stack Overflow the solution has changed:
Therefore to fix the filename it must be changed in order that it adds the brackets surrounding the whole directory instead of only the last file.
I tested this and the error (and solution) works with
latexmk 4.70b