"Jacob S. Gordon" <[email protected]> writes:

>>>-      (const :tag "Use dvisvgm to make images" dvisvgm)
>>>+      (symbol :tag "Convert fragments to images" :value dvipng)
>>>       (const :tag "Leave math verbatim" verbatim)))
>>
>> After this change, type specification will not longer be accurate.
>
> That’s true; org-html-with-latex has the same problem (which I
> modelled it after). A symbol type is too permissive, and removing
> consts like dvipng makes the customization menu less friendly and
> discoverable. I can think of a few ways to handle this, any thoughts?
>
> 1. Unroll org-preview-latex-process-alist into consts when the
>    defcustom is evaluated:
> ...

This is not dynamic, so I prefer option 2.

> 2. Use a restricted-sexp to check membership:

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