Re: lyx-archive question
On Thu, Jan 19, 2017 at 07:11:31PM +0100, Wolfgang Engelmann wrote: > > > > If your .lyx file is in /A/B/ and you include a figure in /A/B/ then > > > > when you insert a graphics file is the path that is shown in the text > > > > box relative or absolute? > > > > > > > > Scott > > > The path is absolute > > I see. So this is the source of the problem. I don't know why we see > > something different. Just out of curiosity (of course this is not a > > fix), what happens if you first set the "Working directory" path in > > Tools > Paths to /A/B, restart LyX, and then include the figure. Now > > relative path or still absolute? > > > > Scott > Yes, that is a way. However, LyX remembers this path for the next project I > am working on and I have to change the path again for this lyx-file. But > that is alright. > Thanks Scott > Wolfgang I can't reproduce the behavior you see. My working directory for LyX 2.2.1 is set to /home/scott. But when if I open LyX, and open a .lyx file in /A/B/ and then include a file that is also in /A/B/ I get a relative link. I wonder why we see different behaviors. Scott signature.asc Description: PGP signature
Re: lyx-archive question
On 19.01.2017 18:30, Scott Kostyshak wrote: On Thu, Jan 19, 2017 at 05:06:28PM +0100, Wolfgang Engelmann wrote: On 19.01.2017 16:48, Scott Kostyshak wrote: On Thu, Jan 19, 2017 at 03:13:45PM +0100, Wolfgang Engelmann wrote: Lets say, I have in my home folder a folder A, which contains folder B with my lyx file LL.lyx and all the figures, .bib-file and .bst file. If I export it as LL.tar.gz the figures will be saved as /A/B/fig1, /A/B/fig2 etc. If I would like to send it to my colleague, he has to create the same folders /A/B/ and unpack the .gz file there. It would be nicer to send it to him in such a way that it does not matter where he unpacks it, i.e. send the content as fig1, fig2 etc. I can do it by opening the lyx file with a text editor and replace all "/A/B/fig's" by "fig's", but it would be nicer to do this inside lyx. I could think of the following: I include the fig's and lyx is prevented from saving them as /A/B/fig's but to use fig's. Or lyx offers a way to get rid of the folders in front of the fig's. The same issue turns up if I shift the content of my working folder to another one. How would you proceed If your .lyx file is in /A/B/ and you include a figure in /A/B/ then when you insert a graphics file is the path that is shown in the text box relative or absolute? Scott The path is absolute I see. So this is the source of the problem. I don't know why we see something different. Just out of curiosity (of course this is not a fix), what happens if you first set the "Working directory" path in Tools > Paths to /A/B, restart LyX, and then include the figure. Now relative path or still absolute? Scott Yes, that is a way. However, LyX remembers this path for the next project I am working on and I have to change the path again for this lyx-file. But that is alright. Thanks Scott Wolfgang
Re: lyx-archive question
On Thu, Jan 19, 2017 at 05:06:28PM +0100, Wolfgang Engelmann wrote: > > > On 19.01.2017 16:48, Scott Kostyshak wrote: > > On Thu, Jan 19, 2017 at 03:13:45PM +0100, Wolfgang Engelmann wrote: > > > Lets say, I have in my home folder a folder A, which contains folder B > > > with > > > my lyx file LL.lyx and all the figures, .bib-file and .bst file. > > > > > > If I export it as LL.tar.gz the figures will be saved as /A/B/fig1, > > > /A/B/fig2 etc. If I would like to send it to my colleague, he has to > > > create > > > the same folders /A/B/ and unpack the .gz file there. It would be nicer to > > > send it to him in such a way that it does not matter where he unpacks it, > > > i.e. send the content as fig1, fig2 etc. > > > > > > I can do it by opening the lyx file with a text editor and replace all > > > "/A/B/fig's" by "fig's", but it would be nicer to do this inside lyx. I > > > could think of the following: I include the fig's and lyx is prevented > > > from > > > saving them as /A/B/fig's but to use fig's. Or lyx offers a way to get rid > > > of the folders in front of the fig's. > > > > > > The same issue turns up if I shift the content of my working folder to > > > another one. > > > > > > How would you proceed > > If your .lyx file is in /A/B/ and you include a figure in /A/B/ then > > when you insert a graphics file is the path that is shown in the text > > box relative or absolute? > > > > Scott > The path is absolute I see. So this is the source of the problem. I don't know why we see something different. Just out of curiosity (of course this is not a fix), what happens if you first set the "Working directory" path in Tools > Paths to /A/B, restart LyX, and then include the figure. Now relative path or still absolute? Scott signature.asc Description: PGP signature
Re: lyx-archive question
On 19.01.2017 16:48, Scott Kostyshak wrote: On Thu, Jan 19, 2017 at 03:13:45PM +0100, Wolfgang Engelmann wrote: Lets say, I have in my home folder a folder A, which contains folder B with my lyx file LL.lyx and all the figures, .bib-file and .bst file. If I export it as LL.tar.gz the figures will be saved as /A/B/fig1, /A/B/fig2 etc. If I would like to send it to my colleague, he has to create the same folders /A/B/ and unpack the .gz file there. It would be nicer to send it to him in such a way that it does not matter where he unpacks it, i.e. send the content as fig1, fig2 etc. I can do it by opening the lyx file with a text editor and replace all "/A/B/fig's" by "fig's", but it would be nicer to do this inside lyx. I could think of the following: I include the fig's and lyx is prevented from saving them as /A/B/fig's but to use fig's. Or lyx offers a way to get rid of the folders in front of the fig's. The same issue turns up if I shift the content of my working folder to another one. How would you proceed If your .lyx file is in /A/B/ and you include a figure in /A/B/ then when you insert a graphics file is the path that is shown in the text box relative or absolute? Scott The path is absolute Wolfgang
Re: lyx-archive question
On Thu, Jan 19, 2017 at 03:13:45PM +0100, Wolfgang Engelmann wrote: > Lets say, I have in my home folder a folder A, which contains folder B with > my lyx file LL.lyx and all the figures, .bib-file and .bst file. > > If I export it as LL.tar.gz the figures will be saved as /A/B/fig1, > /A/B/fig2 etc. If I would like to send it to my colleague, he has to create > the same folders /A/B/ and unpack the .gz file there. It would be nicer to > send it to him in such a way that it does not matter where he unpacks it, > i.e. send the content as fig1, fig2 etc. > > I can do it by opening the lyx file with a text editor and replace all > "/A/B/fig's" by "fig's", but it would be nicer to do this inside lyx. I > could think of the following: I include the fig's and lyx is prevented from > saving them as /A/B/fig's but to use fig's. Or lyx offers a way to get rid > of the folders in front of the fig's. > > The same issue turns up if I shift the content of my working folder to > another one. > > How would you proceed If your .lyx file is in /A/B/ and you include a figure in /A/B/ then when you insert a graphics file is the path that is shown in the text box relative or absolute? Scott signature.asc Description: PGP signature
lyx-archive question
Lets say, I have in my home folder a folder A, which contains folder B with my lyx file LL.lyx and all the figures, .bib-file and .bst file. If I export it as LL.tar.gz the figures will be saved as /A/B/fig1, /A/B/fig2 etc. If I would like to send it to my colleague, he has to create the same folders /A/B/ and unpack the .gz file there. It would be nicer to send it to him in such a way that it does not matter where he unpacks it, i.e. send the content as fig1, fig2 etc. I can do it by opening the lyx file with a text editor and replace all "/A/B/fig's" by "fig's", but it would be nicer to do this inside lyx. I could think of the following: I include the fig's and lyx is prevented from saving them as /A/B/fig's but to use fig's. Or lyx offers a way to get rid of the folders in front of the fig's. The same issue turns up if I shift the content of my working folder to another one. How would you proceed ? Wolfgang