Awesome, thanks! Moved.

Best,/PA

PS: I know (nth 0 list) is (car list). You will sometimes see it in my code,
just as a way of "literate", enhanced self-documentation. (car) can be
applied to more object types,
while (nth n) helps me remember I'm dealing with a list...


On Sun, 6 Jul 2025 at 19:36, Ihor Radchenko <yanta...@posteo.net> wrote:
>
> Pedro Andres Aranda Gutierrez <paag...@gmail.com> writes:
>
> > What you mean is:
> > ...
> > +    (:languages "LANGUAGE" nil (list org-export-default-language) split)
> > ...
> > +    ;; Get :languages and insert it into :language
> > +    (when-let* ((languages (plist-get info :languages))
> > +                (lang (nth 0 languages)))
> > +      (setq info (plist-put info :language lang)))
> >      ;; Run first hook with current backend's name as argument.
> >      (run-hook-with-args 'org-export-before-processing-hook
> >                          (org-export-backend-name backend))
> >
> > And then, of course, use :languages in ox-latex.el
> >
> > Right?
>
> Yes. Can also just use (car languages).
> And you need to put this later, after
> (org-export-get-environment backend subtreep ext-plist)
>
> --
> 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