Hi Pedro.

The export works as expected *without* loading auctex. It also works as
expected *with* loading auctex, but with TeX-parse-self to nil. Perhaps the
best solution is to amend org-latex-export-as-latex to set TeX-parse-self
to nil before calling LaTeX-mode, e.g., with (let ((TeX-parse-self nil))
<rest of the org-latex-export-as-latex code here>). To be honest, I'm not
sure if this is a bug of org or reftex-auc. What do you think?


On Fri, 27 Jun 2025 at 16:41, Pedro Andres Aranda Gutierrez <
paag...@gmail.com> wrote:

> Vangelis writes:
>
> > Hello.
> >
> > I started with emacs -q. Then in the scratch buffer, I evaluated the
> > following code
> >
> > (use-package reftex-auc)
> > (use-package tex
> >   :load-path "site-lisp/auctex-14.0.9"
> >   :custom
> >   (TeX-parse-self t))
> >
> > Then, I created an org buffer which I exported to latex buffer (C-c C-e l
> > L). I get the error message
> >
> > reftex-TeX-master-file: Wrong type argument: stringp, nil
>
> Hi,
>
> could you please try the export part again *without* loading auctex?
> It looks like the LaTeX exporter is not generating that thing, which I
> guess is a file local variable.
>
> I remember never having time enough to procrastinate to cope with all
> the quirks of auctex while writing my PhD - some time ago ;-) - and
> going the "pure" LaTeX way with some yasnippets and a bit of code to
> emulate the couple of features people loved from auctex as a viable
> alternative.
>
> Maybe that could be a project once the PDF exporter reaches master...
>
> Thx, /PA
>
> --
> 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