tecosaur / org-latex-preview-todos

A tracker for the Org LaTeX Preview effort on https://git.tecosaur.net/tec/org-mode
4 stars 0 forks source link

org-html-format-latex not found #1

Closed karthink closed 5 months ago

karthink commented 6 months ago

org-html-format-latex has been moved to org-compat, but Org still tries to find it in ox-html.el, and describe-function reports the following:

org-html-format-latex is a Lisp function in ‘ox-html.el’.

This function is obsolete since 9.7; to be removed

(org-html-format-latex LATEX-FRAG PROCESSING-TYPE INFO)

Further, HTML exports (with LaTeX fragments) are broken until we open up org-compat and explicitly evaluate this defun. I've resorted to placing a copy of its definition in my org-latex-preview configuration.

tecosaur commented 6 months ago

Do we even know why this is happening?

yantar92 commented 6 months ago

org-html-format-latex is a Lisp function in ‘ox-html.el’.

Looks like some compilation issue. Try to clear .eln cache and .elc files.

tecosaur commented 6 months ago

Given that I can't see org-html-format-latex anywhere other than org-compat.el in the dev branch, I don't see how there could be anything but a (mixed) compile cache -type issue.

karthink commented 6 months ago

Multiple users reported this. I'll try clearing the eln cache and checking.

karthink commented 5 months ago

I can't reproduce this any more. Must have been a mixed-install issue common to many users. Closing for now.