Hi Ihor, Ihor Radchenko <[email protected]> writes: > This will make Org create ltximg directory with previews in current > directory (where the export is called). I am not sure if this is > desired. Could you please provide more details about the context when > you encountered the bug?
I agree - this is perhaps not the desired behaviour. I encountered the bug while using the org-mime package, as below. The function org-mime-org-subtree-htmlize fails to run when the subtree in question contains (inline) LaTeX. I dug through this error and found that the options plist that gets passed along to org-html-format-latex by this function is just (:with-latex imagemagick). In particular, it does not contain the property :output-file. The function org-html-format-latex tries to set cache-dir to (file-name-directory <value of :output-file>), which evaluates to (file-name-directory nil), raising an error. The reason I put in this particular patch is that I think (file-name-directory nil) should really just evaluate to nil rather than throwing an error. But maybe there is a cleaner way to deal with this. Please let me know what you think and I am happy to submit an updated patch if you like. Thanks! Best, Asilata -- Asilata Bapat (she/her)
signature.asc
Description: PGP signature
