Override mode for local layout / how to unset parameter

Lorenzo Bertini lorenzobertini97 at gmail.com
Tue Jan 3 17:51:49 UTC 2023


On 03/01/23 18:50, Richard Kimberly Heck wrote:
> On 1/3/23 11:49, Lorenzo Bertini wrote:
>> Hi,
>>
>> I hope you all had wonderful holidays. I'm doing some tests with local 
>> layouts, and I was wondering what is the modality with which a local 
>> layout overrides the default: does it completely erase the latter and 
>> uses your edits, or does it override only the attributes you've modified?
> 
> The latter. Layouts are loaded successively: First, the document class 
> layout; then the modules; then the local layout. Each one can either add 
> to or over-write previous settings. This technique is used in many of 
> the document class layouts themselves: They import 'standard' settings, 
> then modify what needs modifying.
> 
> 
>> Also, suppose I want to "unset" a layout attribute that is set to 
>> something in the default layout, for example "DocbookWrapperTag" 
>> because I don't want wrapping: I can obtain what I want doing
>> > DocbookWrapperTag ""
>> but is there a better way?
> 
> That's the way to do it.
> 
> Riki
> 
> 

Many thanks!

-- 
Lorenzo


More information about the lyx-devel mailing list