> even when org-latex-preview-cache variable is set to "./preview/" in
> the relative form. Links are handled incorrently in the published
> project, and svg links on the website point to nothing on remote
> machine.
>
> I don't know how to avoid absolute path naming, anyone faced this 
> issue?

`org-latex-preview-cache' is for in-buffer previews only.  See
`org-html-latex-image-options', whose docstring is reproduced here:

--8<---------------cut here---------------start------------->8---
org-html-latex-image-options is a variable defined in ‘ox-html.el’.

LaTeX preview options that apply to generated images.
This is a HTML-specific counterpart to
‘org-latex-preview-appearance-options’, which see.

This supports two extra properties,
:image-dir  an html-export counterpart of ‘org-latex-preview-cache’, and
:inline     a list of image format symbols that should not be saved according
            to :image-dir, but instead inlined in the generated HTML.
            Valid format symbols are:
            - png, to inline png images using <img> with a data URI
            - svg, to inline svg images using <img> with a data URI
            - svg-embed, to inline svg images using an <svg> element.
              This is only applied when used along with svg, as in
              (svg svg-embed).
--8<---------------cut here---------------end--------------->8---

Karthik

Reply via email to