LyX ⇒ Causing Lyx to save a relative path to \textclass
Causing Lyx to save a relative path to \textclass
I have an issue with editing the same lyx file on two different systems (both running Linux).
The lyx file I work on uses a local layout that resides in the same folder as the lyx file, so when I save the file, lyx writes in it: "\textclass /absolute/path/to/local.layout"
(where "/absolute/path/to/local.layout" is a made-out path to a layout file - used here just as an example).
My problem is that I'm working on this file on two different computers, and the file is synchronized on both systems. However, the two systems don't have the same folder structure, so while on system 1 the path "/absolute/path/to/local.layout" is valid, on system 2 it does not exist.
I found out that if I edit the lyx file to say : "\textclass ./local.layout", it is opened correctly on both systems without any error messages; but when I save it, lyx saves the full (absolute) path and then it does not open correctly on the other system.
I was wondering if there is any way to make lyx save the path to the local-layout file with a relative path, or if anybody here has an idea for another way to deal with this issue.
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p