When using “LaTeX XSLT” to set an alternative XLST file and exporting to LaTeX, Scrivener puts two spaces after the name of the file. This seems to make MMD think there’s a second file, and it gives a warning that it ‘failed to load external entity “.xslt”’. Scrivener then reports an error, claiming that “The file could not be saved.” That’s all horrifying, of course, but Scrivener is wrong: the file has been written, and it works just fine.
If I export to MultiMarkdown and then run multimarkdown2latex.pl on the resulting text file I get the same warning. If I edit that file and remove the two spaces after the name of the .xslt file and run multimarkdown2latex.pl again, the warning goes away.
I think I’ve fixed this for the next update. The current version adds a double space after all meta-data items - is that the issue here? This doesn’t happen in the next update. Look out for the 1.2 beta on the Beta Testing forums - it won’t be available for another month ago - or drop me an e-mail at support @ literatureandlatte dot com so that I can let you test this particular fix beforehand, to see if this is indeed fixed.
Thanks
Keith
I installed the latest MMD before I reported this, so I don’t think that fixed it. But it did produce the output file (despite Scrivener’s claim to the contrary), so I can get my work done. I don’t know whether it produced the output file when I used the MMD that came with Scrivener.
That seems to have fixed it. Unfortunately, when I installed the new version, I blew away the modified .xslt files that I had been using, so I can’t say for sure that everything works. But specifying memoir.xslt in the meta-data used to give that warning, and now it doesn’t, so I don’t think there will be any problem.