Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
--graphicsmap is not respected if destination file of different format already exists #901
Given a basic document with
LaTeXML will convert the PDF to PNG and reference it as expected. Now, when I run this without deleting the destination directory:
I expect it to convert the PDF to SVG and reference that. Instead, the destination file will still reference the PNG.
Presumably there is some sort of mechanism that checks if the graphic has already been converted, but it is not being invalidated by a different
Hmm, yeah; but is this a bug or feature request, I wonder; Basically the intent of
As you found, a workaround, perhaps counter-intuitive, is to remove the destination directory and start fresh.
[There is a weak sort of expression of preference embedded in the code, but isn't sensibly configurable, atm; and probably it would still think that an existing conversion would be preferable.
Regardless of the intent behind the flag, it was certainly unexpected behaviour. I would expect running latexml to always produce the same output, regardless of what was already in the output dir.
Anyway - a minor problem, but I thought it was worth filing. :)