dd3fmlli
2014-07-14 14:55:10 UTC
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
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
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{./}
\batchmode
\makeatletter
\makeatother
but it doesn't work for bibtex and possible packages a user want to add.\batchmode
\makeatletter
\makeatother
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