Re: LaTeX question w.r.t \input@path

2011-04-05 Thread Jean-Marc Lasgouttes
Le 04/04/11 21:47, Hellmut Weber a écrit : Hi list, recently in another post I found the internal LaTeX macro \input@path mentioned. Putting this (surrounded by \makeatletter and \makeatother) in an ERT eventually gives me the correct path to my LyX document as string in the document.

Re: LaTeX question w.r.t \input@path

2011-04-05 Thread Hellmut Weber
Am 04.04.2011 23:32, schrieb Julien Rioux: On 04/04/2011 3:47 PM, Hellmut Weber wrote: Hi list, recently in another post I found the internal LaTeX macro \input@path mentioned. Putting this (surrounded by \makeatletter and \makeatother) in an ERT eventually gives me the correct path to

Re: LaTeX question w.r.t \input@path

2011-04-05 Thread Richard Heck
On 04/05/2011 03:20 AM, Hellmut Weber wrote: To make clear what I'm looking for I put it in python code: leo@sylhepta ~ $ python Python 2.6.6 (r266:84292, Sep 15 2010, 15:52:39) [GCC 4.4.5] on linux2 Type help, copyright, credits or license for more information. def shorten_path(path, len):

Re: LaTeX question w.r.t \input@path

2011-04-05 Thread Hellmut Weber
Am 04.04.2011 23:32, schrieb Julien Rioux: On 04/04/2011 3:47 PM, Hellmut Weber wrote: Hi list, recently in another post I found the internal LaTeX macro \input@path mentioned. Putting this (surrounded by \makeatletter and \makeatother) in an ERT eventually gives me the correct path to

Re: LaTeX question w.r.t \input@path

2011-04-05 Thread Julien Rioux
On 05/04/2011 7:21 PM, Hellmut Weber wrote: Am 04.04.2011 23:32, schrieb Julien Rioux: On 04/04/2011 3:47 PM, Hellmut Weber wrote: Hi list, recently in another post I found the internal LaTeX macro \input@path mentioned. Putting this (surrounded by \makeatletter and \makeatother) in an

Re: LaTeX question w.r.t \input@path

2011-04-05 Thread Richard Heck
On 04/05/2011 07:28 PM, Julien Rioux wrote: On 05/04/2011 7:21 PM, Hellmut Weber wrote: Am 04.04.2011 23:32, schrieb Julien Rioux: On 04/04/2011 3:47 PM, Hellmut Weber wrote: Hi list, recently in another post I found the internal LaTeX macro \input@path mentioned. Putting this

Re: LaTeX question w.r.t \input@path

2011-04-05 Thread Jean-Marc Lasgouttes
Le 04/04/11 21:47, Hellmut Weber a écrit : Hi list, recently in another post I found the internal LaTeX macro \input@path mentioned. Putting this (surrounded by \makeatletter and \makeatother) in an ERT eventually gives me the correct path to my LyX document as string in the document.

Re: LaTeX question w.r.t \input@path

2011-04-05 Thread Hellmut Weber
Am 04.04.2011 23:32, schrieb Julien Rioux: On 04/04/2011 3:47 PM, Hellmut Weber wrote: Hi list, recently in another post I found the internal LaTeX macro \input@path mentioned. Putting this (surrounded by \makeatletter and \makeatother) in an ERT eventually gives me the correct path to

Re: LaTeX question w.r.t \input@path

2011-04-05 Thread Richard Heck
On 04/05/2011 03:20 AM, Hellmut Weber wrote: To make clear what I'm looking for I put it in python code: leo@sylhepta ~ $ python Python 2.6.6 (r266:84292, Sep 15 2010, 15:52:39) [GCC 4.4.5] on linux2 Type help, copyright, credits or license for more information. def shorten_path(path, len):

Re: LaTeX question w.r.t \input@path

2011-04-05 Thread Hellmut Weber
Am 04.04.2011 23:32, schrieb Julien Rioux: On 04/04/2011 3:47 PM, Hellmut Weber wrote: Hi list, recently in another post I found the internal LaTeX macro \input@path mentioned. Putting this (surrounded by \makeatletter and \makeatother) in an ERT eventually gives me the correct path to

Re: LaTeX question w.r.t \input@path

2011-04-05 Thread Julien Rioux
On 05/04/2011 7:21 PM, Hellmut Weber wrote: Am 04.04.2011 23:32, schrieb Julien Rioux: On 04/04/2011 3:47 PM, Hellmut Weber wrote: Hi list, recently in another post I found the internal LaTeX macro \input@path mentioned. Putting this (surrounded by \makeatletter and \makeatother) in an

Re: LaTeX question w.r.t \input@path

2011-04-05 Thread Richard Heck
On 04/05/2011 07:28 PM, Julien Rioux wrote: On 05/04/2011 7:21 PM, Hellmut Weber wrote: Am 04.04.2011 23:32, schrieb Julien Rioux: On 04/04/2011 3:47 PM, Hellmut Weber wrote: Hi list, recently in another post I found the internal LaTeX macro \input@path mentioned. Putting this

Re: LaTeX question w.r.t \input@path

2011-04-05 Thread Jean-Marc Lasgouttes
Le 04/04/11 21:47, Hellmut Weber a écrit : Hi list, recently in another post I found the internal LaTeX macro \input@path mentioned. Putting this (surrounded by \makeatletter and \makeatother) in an ERT eventually gives me the correct path to my LyX document as string in the document.

Re: LaTeX question w.r.t \input@path

2011-04-05 Thread Hellmut Weber
Am 04.04.2011 23:32, schrieb Julien Rioux: > On 04/04/2011 3:47 PM, Hellmut Weber wrote: >> Hi list, >> recently in another post I found the internal LaTeX macro >> >>\input@path >> >> mentioned. Putting this (surrounded by \makeatletter and \makeatother) >> in an ERT eventually gives me the

Re: LaTeX question w.r.t \input@path

2011-04-05 Thread Richard Heck
On 04/05/2011 03:20 AM, Hellmut Weber wrote: To make clear what I'm looking for I put it in python code: leo@sylhepta ~ $ python Python 2.6.6 (r266:84292, Sep 15 2010, 15:52:39) [GCC 4.4.5] on linux2 Type "help", "copyright", "credits" or "license" for more information. def shorten_path(path,

Re: LaTeX question w.r.t \input@path

2011-04-05 Thread Hellmut Weber
Am 04.04.2011 23:32, schrieb Julien Rioux: > On 04/04/2011 3:47 PM, Hellmut Weber wrote: >> Hi list, >> recently in another post I found the internal LaTeX macro >> >>\input@path >> >> mentioned. Putting this (surrounded by \makeatletter and \makeatother) >> in an ERT eventually gives me the

Re: LaTeX question w.r.t \input@path

2011-04-05 Thread Julien Rioux
On 05/04/2011 7:21 PM, Hellmut Weber wrote: Am 04.04.2011 23:32, schrieb Julien Rioux: On 04/04/2011 3:47 PM, Hellmut Weber wrote: Hi list, recently in another post I found the internal LaTeX macro \input@path mentioned. Putting this (surrounded by \makeatletter and \makeatother) in an

Re: LaTeX question w.r.t \input@path

2011-04-05 Thread Richard Heck
On 04/05/2011 07:28 PM, Julien Rioux wrote: On 05/04/2011 7:21 PM, Hellmut Weber wrote: Am 04.04.2011 23:32, schrieb Julien Rioux: On 04/04/2011 3:47 PM, Hellmut Weber wrote: Hi list, recently in another post I found the internal LaTeX macro \input@path mentioned. Putting this

LaTeX question w.r.t \input@path

2011-04-04 Thread Hellmut Weber
Hi list, recently in another post I found the internal LaTeX macro \input@path mentioned. Putting this (surrounded by \makeatletter and \makeatother) in an ERT eventually gives me the correct path to my LyX document as string in the document. S many thanks to the poster of that other

Re: LaTeX question w.r.t \input@path

2011-04-04 Thread Julien Rioux
On 04/04/2011 3:47 PM, Hellmut Weber wrote: Hi list, recently in another post I found the internal LaTeX macro \input@path mentioned. Putting this (surrounded by \makeatletter and \makeatother) in an ERT eventually gives me the correct path to my LyX document as string in the document.

Re: LaTeX question w.r.t \input@path

2011-04-04 Thread Julien Rioux
On 04/04/2011 5:32 PM, Julien Rioux wrote: On 04/04/2011 3:47 PM, Hellmut Weber wrote: Hi list, recently in another post I found the internal LaTeX macro \input@path mentioned. Putting this (surrounded by \makeatletter and \makeatother) in an ERT eventually gives me the correct path to my LyX

Re: LaTeX question w.r.t \input@path

2011-04-04 Thread Richard Heck
On 04/04/2011 05:32 PM, Julien Rioux wrote: kludge solution, if you know how deep your paths are: \def\removeprefixx/#1/#2/#3/#4/#5{Your path is /.../#5} \def\removeprefix#1{\expandafter\removeprefixx#1} Can you explain the point of the \expandafter? I see this often, but don't understand

Re: LaTeX question w.r.t \input@path

2011-04-04 Thread Julien Rioux
On 04/04/2011 5:54 PM, Richard Heck wrote: On 04/04/2011 05:32 PM, Julien Rioux wrote: kludge solution, if you know how deep your paths are: \def\removeprefixx/#1/#2/#3/#4/#5{Your path is /.../#5} \def\removeprefix#1{\expandafter\removeprefixx#1} Can you explain the point of the

LaTeX question w.r.t \input@path

2011-04-04 Thread Hellmut Weber
Hi list, recently in another post I found the internal LaTeX macro \input@path mentioned. Putting this (surrounded by \makeatletter and \makeatother) in an ERT eventually gives me the correct path to my LyX document as string in the document. S many thanks to the poster of that other

Re: LaTeX question w.r.t \input@path

2011-04-04 Thread Julien Rioux
On 04/04/2011 3:47 PM, Hellmut Weber wrote: Hi list, recently in another post I found the internal LaTeX macro \input@path mentioned. Putting this (surrounded by \makeatletter and \makeatother) in an ERT eventually gives me the correct path to my LyX document as string in the document.

Re: LaTeX question w.r.t \input@path

2011-04-04 Thread Julien Rioux
On 04/04/2011 5:32 PM, Julien Rioux wrote: On 04/04/2011 3:47 PM, Hellmut Weber wrote: Hi list, recently in another post I found the internal LaTeX macro \input@path mentioned. Putting this (surrounded by \makeatletter and \makeatother) in an ERT eventually gives me the correct path to my LyX

Re: LaTeX question w.r.t \input@path

2011-04-04 Thread Richard Heck
On 04/04/2011 05:32 PM, Julien Rioux wrote: kludge solution, if you know how deep your paths are: \def\removeprefixx/#1/#2/#3/#4/#5{Your path is /.../#5} \def\removeprefix#1{\expandafter\removeprefixx#1} Can you explain the point of the \expandafter? I see this often, but don't understand

Re: LaTeX question w.r.t \input@path

2011-04-04 Thread Julien Rioux
On 04/04/2011 5:54 PM, Richard Heck wrote: On 04/04/2011 05:32 PM, Julien Rioux wrote: kludge solution, if you know how deep your paths are: \def\removeprefixx/#1/#2/#3/#4/#5{Your path is /.../#5} \def\removeprefix#1{\expandafter\removeprefixx#1} Can you explain the point of the

LaTeX question w.r.t \input@path

2011-04-04 Thread Hellmut Weber
Hi list, recently in another post I found the internal LaTeX macro \input@path mentioned. Putting this (surrounded by \makeatletter and \makeatother) in an ERT eventually gives me the correct path to my LyX document as string in the document. S many thanks to the poster of that other

Re: LaTeX question w.r.t \input@path

2011-04-04 Thread Julien Rioux
On 04/04/2011 3:47 PM, Hellmut Weber wrote: Hi list, recently in another post I found the internal LaTeX macro \input@path mentioned. Putting this (surrounded by \makeatletter and \makeatother) in an ERT eventually gives me the correct path to my LyX document as string in the document.

Re: LaTeX question w.r.t \input@path

2011-04-04 Thread Julien Rioux
On 04/04/2011 5:32 PM, Julien Rioux wrote: On 04/04/2011 3:47 PM, Hellmut Weber wrote: Hi list, recently in another post I found the internal LaTeX macro \input@path mentioned. Putting this (surrounded by \makeatletter and \makeatother) in an ERT eventually gives me the correct path to my LyX

Re: LaTeX question w.r.t \input@path

2011-04-04 Thread Richard Heck
On 04/04/2011 05:32 PM, Julien Rioux wrote: kludge solution, if you know how deep your paths are: \def\removeprefixx/#1/#2/#3/#4/#5{Your path is /.../#5} \def\removeprefix#1{\expandafter\removeprefixx#1} Can you explain the point of the \expandafter? I see this often, but don't understand

Re: LaTeX question w.r.t \input@path

2011-04-04 Thread Julien Rioux
On 04/04/2011 5:54 PM, Richard Heck wrote: On 04/04/2011 05:32 PM, Julien Rioux wrote: kludge solution, if you know how deep your paths are: \def\removeprefixx/#1/#2/#3/#4/#5{Your path is /.../#5} \def\removeprefix#1{\expandafter\removeprefixx#1} Can you explain the point of the