Re: [Vim-latex-devel] Path expansion
Brought to you by:
srinathava,
tmaas
From: Christian E. <bla...@gm...> - 2006-03-28 21:46:54
|
Hi Srinath, * Srinath Avadhanula on Tuesday, March 28, 2006 at 10:33:56 -0800: > On 3/28/06, Christian Ebert <bla...@gm...> wrote: <snipped problems already solved in svn HEAD> > The maps are: > C: display the files in the current directory. i.e, if you do > :cd /some/dir > and then press "C" it will display the contents of /some/dir. Ok, I get it, and it works exactly like that with new version. >> [ collect files with python? ] >> > ?? Just mumbling to myself that perhaps something like python's os.walk() might be faster than vim. So, forget it, as, at least for me it's fast enough now. >> 2. Feature proposal: >> >> At the moment it inserts the relative path. I might not be the >> only one who puts (links to) the image file in $TEXINPUTS (that's >> what it's for after all) or (less friendly on resources) declares >> \graphicspath. That way you can move around your source-file and >> don't have to worry about paths. Wouldn't it make sense to have >> an option to get just the basename (w/o suffix) of the image? -- >> Unless that's what's "C" for. > > No thats not what C is for... This seems like an easy thing to add > though... I'm personally do not use this feature of latex though, so > you'll have to explain this in a little bit more detail to have it > become a feature. Example: I put my images (or links to them) in the directory $HOME/texinputs I have set the environment variable $TEXINPUTS to the above directory. This means LaTeX will include the files in that directory in its filename database. Suppose I have a Document at $HOME/Testdir/test.tex Now, I write into test.tex: \includegraphics{image} [ just the basename ] and if $HOME/texinputs/image.jpg exists, it is found and included in the (pdf)output. Same thing happens if I have declared \graphicspath{{/path/to/home/texinputs}} [ See grfguide.ps ] in my document (it only eats loads of LaTeX' resources when there many files in that directory, or several directories). This has the big advantage over declaring an absolute path that in the case I move test.tex to eg. $HOME/Anotherdirectory/test.tex the document still compiles without changes. Similarly when I decide to move the images to $HOME/Images I simply change $TEXINPUTS to $HOME/Images. Whereas when I have absolute paths in my document I have to change every path to every image. Hope it has become clearer instead of more confusing. c -- _B A U S T E L L E N_ lesen! --->> <http://www.blacktrash.org/baustellen.html> |