>>> "AH" == Al Haji-Ali <[email protected]> writes:

Hi Al

Thanks for you message.

> Hello Uwe,
> On 29/12/2025, Uwe Brauer wrote:
>> And compiling the way described still gave
> If you are referring to compilation inside Emacs, then you probably are
> not getting the environment variables set correctly there. You can check
> this by running


Of course I am referring t compiling from within Emacs with that
variable TeX-output-dir set to "build"

As I said in my first email I can compile it either from the command
line or with TeX-output-dir set to nil without any problem

> (getenv "BIBINPUTS")
> (getenv "TEXINPUTS")

Returns "build" in both cases



> You can modify the variables inside Emacs directly as follows:

> (dolist (e '("BIBINPUTS" "TEXINPUTS") )
>     (setenv e (concat TeX-output-dir ":" (getenv e))))



> Or, if you want to do this automatically and temporarily for BibTeX, you
> can add this advice:

> (advice-add #'TeX-run-BibTeX
>             :around
>             (lambda (oldfn &rest args)
>               (let ((process-environment (copy-sequence process-environment)))
>                 (dolist (e '("BIBINPUTS" "TEXINPUTS") )
>                   (setenv e (concat TeX-output-dir ":" (getenv e))))
>                 (apply oldfn args))))

> This might be worth adding into AUCTeX (along with setting TEXMFOUTPUT),
> as latexmk does, but I am not sure if it should be done for individual
> functions (since only some tools seem to not support output-directory
> directly, like bibtex) or inside `TeX-run-command` for all commands.

I tried everything out 
but I always get

--8<---------------cut here---------------start------------->8---
Running `BibTeX' on `test-bib' with ``bibtex build/test-bib.aux''
This is BibTeX, Version 0.99d (TeX Live 2023/Debian)
The top-level auxiliary file: build/test-bib.aux
The style file: biblatex.bst
I couldn't open database file test.bib
---line 6 of file build/test-bib.aux
 : \bibdata{test-bib-blx,test
 :                           }
I'm skipping whatever remains of this command
Database file #1: test-bib-blx.bib
Warning--I didn't find a database entry for 
"nordstrom13:_zur_theor_gravit_stand_relat"
Biblatex version: 3.19
(There was 1 error message)

TeX Output exited abnormally with code 2 at Tue Dec 30 16:12:36
--8<---------------cut here---------------end--------------->8---

May I ask: did you try out out my 2 MWE with TeX-output-dir set to
"build"?

Did it work out for you?

Uwe 

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to