On 02/28/2017 04:36 AM, Ulrich Thomas Gabor wrote: > Hi > > Since nobody replied on the normal users lists, maybe someone here can tell > me if it is possible to reference an include from a layout file relatively?
Probably not. These "local layout" files were always a hack, and really a bad idea. If you file a bug report, we can perhaps make import work. Richard > See the mail I sent to the users list: > >> Am 26.02.2017 um 15:59 schrieb Ulrich Thomas Gabor >> <ulrich.ga...@tu-dortmund.de>: >> >> Hi >> >> I have a local layout file, which I reference as "Local Layout" with a >> relative path (../templates/my.layout). Now I want to clean up the layout >> and move some parts into a separate include file for reuse. My wish is to >> create an include file next to the layout file (../templates/my.inc) and >> reference it from the layout-file, but this does not work, i.e. the include >> file is not found. Neither "input my.inc" nor "input ../templates/my.inc" >> works, presumably because LyX copies the layout file to a temp directory and >> the inc file is ignored. >> >> How can I get this constellation to work? >> >> Thanks in advance for hints into the right direction! >> >> Best >> Ulrich > I do not want to drop the includes in the system directories, because the lyx > files and the layout/include files are versioned and should stay closely > together. > > Can someone give me a hint, if this is possible at all? > > Best > Ulrich >