[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [AUCTeX] TEXINPUTS as local variable
From: |
David Kastrup |
Subject: |
Re: [AUCTeX] TEXINPUTS as local variable |
Date: |
Thu, 19 May 2005 14:37:45 +0200 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) |
Akim Demaille <address@hidden> writes:
> Maybe I have overlooked something in the manual, but I didn't find the
> right way to teach AUC-TeX about local TEXINPUTS (and BIBINPUTS etc.)
> extensions.
>
> I work on several "packages" of LaTeX documents that have
> subdirectories (as in a regular source package), and some specific
> directories similar to an include/ where TeX extensions are stored.
>>From my Makefile.am, it's easy to cope with this:
>
> TEXI2PDF = texi2dvi --pdf
> AM_TEXI2PDFFLAGS = -I $(srcdir) -I .. -I $(top_srcdir)/common
> # ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> TEXI2PDFFLAGS = -b
> %.pdf: %.tex
> $(TEXI2PDF) $(AM_TEXI2PDFFLAGS) $(TEXI2PDFFLAGS) $< -o $@
>
>
> that does it perfectly for BIBINPUTS BSTINPUTS INDEXSTYLE TEXINPUTS
> that texi2dvi updates with the -I passed as argument.
>
> But how am I expected to do that in AUC-TeX? I thought
> TeX-style-local might be the answer, but I probably misunderstood
> its point. Currently I have this in my files:
>
> %%% Local Variables:
> ...
> %%% eval: (setenv "TEXINPUTS" "../common:$TEXINPUTS::")
> ...
>
> and so forth for the others. But that's bad:
Yes.
> - inner $TEXINPUTS is not expanded
> - the changes are global, not local
> - therefore when I open another such file, TEXINPUTS etc. keep on
> growing.
>
> But if I don't do that, AUC-TeX's compile commands are useless as it
> doesn't find the files I refer to.
%%% Local Variables:
%%% LaTeX-command: "TEXINPUTS=\"../common:$TEXINPUTS\" latex"
Not tried this, but it might work. Probably not in PDF mode, though.
%%% LaTeX-command: "x=pdf TEXINPUTS=\"../common:$TEXINPUTS\" ${pdfx}latex"
could work for both PDF as well as DVI mode.
--
David Kastrup, Kriemhildstr. 15, 44793 Bochum
- [AUCTeX] TEXINPUTS as local variable, Akim Demaille, 2005/05/19
- Re: [AUCTeX] TEXINPUTS as local variable,
David Kastrup <=
- Re: [AUCTeX] TEXINPUTS as local variable, Akim Demaille, 2005/05/19
- Re: [AUCTeX] TEXINPUTS as local variable, David Kastrup, 2005/05/19
- Re: [AUCTeX] TEXINPUTS as local variable, Akim Demaille, 2005/05/19
- Re: [AUCTeX] TEXINPUTS as local variable, David Kastrup, 2005/05/19
- Re: [AUCTeX] TEXINPUTS as local variable, Akim Demaille, 2005/05/19
- Re: [AUCTeX] TEXINPUTS as local variable, David Kastrup, 2005/05/19
- Re: [AUCTeX] TEXINPUTS as local variable, Akim Demaille, 2005/05/19
- Re: [AUCTeX] TEXINPUTS as local variable, David Kastrup, 2005/05/19
- Re: [AUCTeX] TEXINPUTS as local variable, Akim Demaille, 2005/05/19