[prev in list] [next in list] [prev in thread] [next in thread] 

List:       lyx-users
Subject:    Re: Going from custom charstyles to module
From:       rgheck <rgheck () bobjweil ! com>
Date:       2008-11-24 21:46:54
Message-ID: 492B20CE.9010606 () bobjweil ! com
[Download RAW message or body]

Charles de Miramon wrote:
> Richard Heck wrote:
>   
>> This SHOULD work. As you see, LyX does update the file to the new
>> format. What does the LyX code look like if you use your new InsetLayout
>> definition? It's the disagreement between these that is causing the
>> problem, I think.
>>
>> What you might want to do is just to put your old Format 2 code into a
>> module and let LyX do the conversion to Format 11 for you. You can also
>> run:
>>     python $LYXDIR/layout2layout.py oldlayout.module newlayout.module
>> and see how LyX converts it, then just use newlayout.module instead of
>> oldlayout.module.
>>     
> It worked. The main difference is that the script gives :
>
> InsetLayout CharStyle:Latin
>
> where my handcrafted version had
> InsetLayout Latin
>
> The 'Charstyle:' is not very elegant but seems to be necessary.
>
>   
It's necessary only because that's how lyx2lyx does the translation. 
And, well, it used to be necessary, but then it wasn't. So you do NOT 
have to put that in your own layouts, though if you want to translate an 
old one then, as you see, you should.

We only discovered this issue very late....

>> And in fact, they can be collapsable if you want them to be. The
>> Decoration tag controls this.
>>     
> What is the difference between Minimalistic and Conglomerate ? I do not see
> on the screen any difference.
>
>   
I think they collapse or expand differently.

> Would it be possible when your cursor is in a zone formatted with a custom
> charstyle to print in the status bar after the font formatting information
> something like 'Custom character style : Foo' ?
>
>   
I assume. Though was meant to be what Ctrl-E was for: so that you can 
see what charstyle it is.

rh

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic