mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-15 20:50:56 +00:00
2b9965aebb
When including files, LyX always searches the user and the system directory, in that order. This means that when using local layout files broken down into multiple includes, the various includes should be specified with a path relative to the user layouts directory (typically ~/.lyx/layouts), making this very impractical. This commit allows including local files by specifying their path as explicitly relative to the main layout file position, i.e., by specifying their path with either "./" or "../". If the main layout is not loaded from a local file, the usual search order is used, even if the path are explicitly relative. So, for system layouts, both "Input ./name.inc" and "Input name.inc" are equivalent. (cherry picked from commit 17ab47b3e6acafae8f11e6363ee64252b26c81e7)
488 KiB
488 KiB