Hi Vangelis...

Me and thinking?.. rather difficult... <LoL>

Now seriously...
I don't think this is a bug. It's more of a side effect and I'd like
to understand what this reftex-TeX-master-file variable means  and
what the effect of TeX-parse-self is.

A workaround may be what you propose or to
(setq-local TeX-parse-self nil)
in your org-mode-hook. Could you try this, please?

IMvvHO, it would be more desirable approach, because you control your
setup for the packages you use.
org would just document this "special case" (maybe in the FAQ),
instead of "bloating" the package itself.

@Ihor WDYT?
Best, /PA

On Fri, 27 Jun 2025 at 18:31, Vangelis Evangelou <evange...@gmail.com> wrote:
>
> 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



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