bug-auctex
[Top][All Lists]
Advanced

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

[Bug-AUCTeX] Re: AUCTeX is confused by evironment variable in file path


From: David Kastrup
Subject: [Bug-AUCTeX] Re: AUCTeX is confused by evironment variable in file path
Date: Mon, 09 Jan 2006 23:46:59 +0100
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

Redirecting to the bug list.


Andrea Sosso <address@hidden> writes:

> David Kastrup wrote:
>
>>Andrea Sosso <address@hidden> writes:
>>  
>>
>>>The following expression:
>>>
>>>\graphicspath{{$HOME/subdir1/subdir2/}}
>>>
>>>is confusing for AUCTeX, which treats anything after $ as TeX math
>>>mode. I had to add a commented $ at the and of the line:
>>>
>>>\graphicspath{{$HOME/subdir1/subdir2/}}% $
>>>
>>>to get the correct parsing of the lines below.

[...]

> sorry for the belated reply. this is the output of  TeX-submit-bug-report
>
>
> Emacs  : GNU Emacs 21.2.1 (i686-pc-cygwin, X toolkit) of 2004-03-22 on
> cm-test

That one's several years old.  The last regular release is 21.4,
though on Windows, the developer version of Emacs is usually
preferable (quite more functionality in the display department).  You
can get a version with preinstalled AUCTeX from
<URL:ftp://alpha.gnu.org/pub/gnu/auctex>.

> Package: AUC TeX 11.13

And that one's truly ancient.  11.14 has been released in 2002, and
now we have 2006.

Apart from that, the font locking appears to behave just the same in
the current code.  Short of hierarchical font locking (which would
have to be implemented in the Emacs core), I don't think that there is
a chance to deal with this more gracefully than with the above
syntactic sugar you already used, namely %$.  We had several internal
versions in between where %$ was treated as a pure comment and could
not be used in that manner, but I had vetoed that exactly for the
purpose of situations like yours.

Sorry I can't help more here: LaTeX is complicated, TeX even more so.
You could try to do

\newcommand\home{$HOME}%$

and then use

\graphicspath{{\home/subdir1/subdir2}}

[...]

which would reduce the $-Stuff (which I am actually surprised to find
working) to a single line.

-- 
David Kastrup, Kriemhildstr. 15, 44793 Bochum




reply via email to

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