[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

TEXINPUTS as a local variable

From: Leo Butler
Subject: TEXINPUTS as a local variable
Date: Mon, 03 Jan 2022 10:11:47 -0600
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux)


How can I set TEXINPUTS, or a facsimile thereof, as a buffer-local

I have been using:

%%% Local Variables:
%%% mode: latex
%%% eval: (setenv "TEXINPUTS" ".:..:../resources:../../resources:")
%%% TeX-master: t
%%% End:

but this changes TEXINPUTS for every invocation of (pdf)latex.

I have looked around for an answer to the question and found:

-an old exchange which did not seem to go anywhere:

-a recent post on SE

(the latter suggests the setenv method and also contains a link to the

-from (info "(auctex) Automatic Private")

--8<---------------cut here---------------start------------->8---
 -- User Option: TeX-macro-private
     Directories where you store your personal TeX macros.  The value
     defaults to the directories listed in the 'TEXINPUTS' and
     'BIBINPUTS' environment variables or to the respective directories
     in '$TEXMFHOME' if no results can be obtained from the environment
--8<---------------cut here---------------end--------------->8---

I suppose that I could advise TeX-run-command, or such like, using
TeX-macro-private to setenv TEXINPUTS and then un-set it. But I am
hoping there is something built-in.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]