Asilata Bapat <[email protected]> writes: > Subject: [PATCH] lisp/ox-html.el: Fix bug in org-html-format-latex > > * lisp/ox-html.el (org-html-format-latex): Set cache-dir to the empty > string if INFO does not contain the property :output-file. > > If the function file-name-directory is called with the argument nil, > it raises an error while setting cache-dir. This commit fixes this > bug.
> - cache-dir (file-name-directory (plist-get info :output-file))) > + cache-dir (file-name-directory (or (plist-get info :output-file) > ""))) 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? -- Ihor Radchenko // yantar92, Org mode maintainer, Learn more about Org mode at <https://orgmode.org/>. Support Org development at <https://liberapay.com/org-mode>, or support my work at <https://liberapay.com/yantar92>
