Hi

Sometimes I would like to be able to use environment variables inside path 
specifications. As an example, consider a section of the preferences-file 
where I perhaps would put something like:

        \num_lastfiles 8
        \tempdir_path "$HOME/.lyx/tmp"

or for the special case of the home directory:

        \tempdir_path "~/.lyx/tmp"

Of course, now you wonder why... well, I work on several machines with 
different paths, so it would be nice to be able use just one 
preferences-file for both machines (i.e. I put the .lyx-catalog under 
version control).

How is it when you specify converters? Can you use environment variables 
there, or do you either have to give an absolute path or make sure that 
the program is in the search path?

Perhaps a more interesting example would be using an environment variable 
for specifying the path to an included image-file in a .lyx-file:

        \begin_inset Graphics FormatVersion 1
                filename $IMAGES/TITech/Titans.jpg
                display none
                size_type 1
                ...
        \end_inset 

What are your opinions on this? Already there, or not useful?

I.e. is there any point in submitting an 'enhancement bug' for this?

/Christian


-- 
Christian Ridderström, +46-8-790 91 37           http://www.md.kth.se/~chr
Mechatronics lab, Dept. of Machine Design        http://www.md.kth.se



Reply via email to