Hi

With you patch in org.mode, remove the (require ox-latex). Then I
reopen Emacs and go to the scratch buffer:

(require 'org)
org

org-export-backends
(ascii html icalendar latex odt)

Then I open an org document which I intend to export to LATEX and try to
autocomplete
#+LAT
but get no completion suggestions.

The compilation of the patched org is full of warnings:

In org-html--math-environment-p:
ox-html.el:3100:19: Warning: reference to free variable
‘org-latex-math-environments-re’
In end of data:
ox-html.el:3391:32: Warning: the function ‘org-latex--environment-type’ is
not known to be defined.
In end of data:
ox-man.el:1144:9: Warning: the function ‘org-latex-compile’ is not known to
be defined.
In org-org-publish-to-org:
ox-org.el:347:38: Warning: reference to free variable ‘org-html-extension’
In end of data:
ox-org.el:340:4: Warning: the function ‘org-publish-org-to’ is not known to
be defined.
In end of data:
ox-texinfo.el:2059:4: Warning: the function ‘org-publish-org-to’ is not
known to be defined.

Enough for today. I may look by this afternoon.

Best, /PA

On Sun, 13 Apr 2025 at 11:15, Ihor Radchenko <yanta...@posteo.net> wrote:

> Pedro Andres Aranda Gutierrez <paag...@gmail.com> writes:
>
> > An alternative is to advise the user who uses org as a high-level
> > alternative for LaTeX to include
> > (require 'ox-latex)
> > in the init.el file if (s)he uses an autocompletion framework.
> >
> > Maybe it might be worth adding a word in the manual. WDYT?
>
> Hmm. I remember that manual instructs users to load ox-* libraries
> explicitly. So, what you are asking about is already there, right in
> "13 Exporting" section.
>
> Reading through those section I also found one detail I missed -
> `org-export-backends' option. I think that we can actually load some
> export backends in `pcomplete/org-mode/file-option/options', as you
> suggested in the patch. But those backends should include what is listed
> in `org-export-backends'; not just ox-latex.
>
> May you try the attached patch?
>
>
> --
> 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>
>


-- 
Fragen sind nicht da, um beantwortet zu werden,
Fragen sind da um gestellt zu werden
Georg Kreisler

Sagen's Paradeiser, write BE!
Year 1 of the New Koprocracy

Reply via email to