Re: Lyx layouts, and DependsOn: Doesn't force inclusion in preamble?

2018-01-23 Thread Jean-Marc Lasgouttes
Le 23/01/2018 à 18:50, Klaus-Dieter Bauer a écrit : It seems that DependsOn works only for styles depending on styles; It cannot have a style depend on an inset, or an inset on a style apparently. Hello, You are unfortunately right. This is a missing feature. I realize from you message that

Re: Lyx layouts, and DependsOn: Doesn't force inclusion in preamble?

2018-01-23 Thread Paul A. Rubin
On 01/23/2018 12:27 PM, Klaus-Dieter Bauer wrote: Hello! Is there some way to specify layouts, that depend on the preamble of another? Consider e.g. the following LyX file: #LyX 2.3 created this file. \lyxformat 544 \begin_document \begin_header \begin_local_layout

Re: Lyx layouts, and DependsOn: Doesn't force inclusion in preamble?

2018-01-23 Thread Klaus-Dieter Bauer
It seems that DependsOn works only for styles depending on styles; It cannot have a style depend on an inset, or an inset on a style apparently. Which means, that definitions needed by multiple InsetLayout's always have to go to the global Preamble block. Is there maybe some alternative to

Re: Lyx layouts, and DependsOn: Doesn't force inclusion in preamble?

2018-01-23 Thread Klaus-Dieter Bauer
I figured it out myself: The DependsOn property apparently doesn't actually work for insets (only for styles). 2018-01-23 18:27 GMT+01:00 Klaus-Dieter Bauer : > Hello! > > Is there some way to specify layouts, that depend on the preamble of > another? > > Consider

Lyx layouts, and DependsOn: Doesn't force inclusion in preamble?

2018-01-23 Thread Klaus-Dieter Bauer
Hello! Is there some way to specify layouts, that depend on the preamble of another? Consider e.g. the following LyX file: #LyX 2.3 created this file. \lyxformat 544 \begin_document \begin_header \begin_local_layout InsetLayout Flex:AAA LyxType custom LabelString AAA LatexName AAA LatexType