Hi all,
I am a long-time LyX user and I can program  in C++ and Python, so I would
like to  to give a  hand in the development of my favorite software.
Apart from this, I'm writing because  I was wondering how to use only
relative paths in LyX documents, in particular in LaTeX preamble or TeX
inserts. As far as I know this is impossible at the moment (e.g.  in the
biblatex guide http://wiki.lyx.org/BibTeX/Biblatex is reported that the
absolute path is needed).
A possible, very naive, work around  of this issue would be to
automatically add in the latex temporary file (I guess its name is
"buffer", right?)

\def\relativePath{/from/relative/toAbs}


or even

\newcommand{\makeAbsPath}[1] {\relativePath/#1}
>
and when  the document is exported in latex  the definition can be replaced
by

> \def\relativePath{./}


In the latex temp files  already exists something similar:

> \batchmode
> \makeatletter
> \def\input@path{{/home/random3f/Dropbox/EsperimentiTeX//}}
> \makeatother
>
but it  doesn't work for bibtex and  possible packages a user want to add.

Is in your opinion a possible enhancement or could it create problems?  Did
you already considered  this, or similar, options? I could not find
anything in the lists.
I know that in case of white spaces in the paths it could create problems,
but in many case it would solve this issue.

What do you think?

Best,
Dimitri

Reply via email to