Karthik Chikmagalur <[email protected]> writes:

>>> If it follows org-latex-preview-cache, then there is no way to specify
>>> :image-dir specifically for HTML exports separately from the LaTeX
>>> preview storage directory.  IIRC this was a problem with the old system.
>>
>> True, but now we decoupled `org-preview-latex-image-directory' and
>> `org-latex-preview-cache', so that's no longer a problem.
>
> But the old behavior is undesirable, why continue it?

Purely for backwards compatibility.

> Suppose we have
>
> (setq org-latex-preview-cache "~/org/ltximg/") ;absolute path
>
> Then the value of org-preview-latex-image-directory is also this, since
> it's an alias.

It is not an alias in the latest version of the code, I think:

(make-obsolete-variable
 'org-preview-latex-image-directory
 "Use `org-latex-preview-cache' instead."
 "10.0")

> Now 
> 1. :image-dir in org-html-latex-image-options is not respected.
> 2. The user might want to specify a different image store for HTML
> exports, but can't without changing org-latex-preview-cache.

org-latex-preview-cache should have no effect indeed (see the above)

-- 
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>

Reply via email to