[Top][All Lists]

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

Re: TEXINPUTS as a local variable

From: Tassilo Horn
Subject: Re: TEXINPUTS as a local variable
Date: Mon, 03 Jan 2022 20:49:09 +0100
User-agent: mu4e 1.7.5; emacs 29.0.50

Leo Butler <> writes:

Hi Leo,

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

Would this slightly longish snippet work as you want in eval: ?

--8<---------------cut here---------------start------------->8---
  (defvar-local leo/texinputs-set nil)
  (unless leo/texinputs-set
    (setenv "TEXINPUTS" ".:..:../resources:../../resources:")
    (setq-local leo/texinputs-set t)))
--8<---------------cut here---------------end--------------->8---


reply via email to

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