Re:Re: lyxtype and Format version

2016-02-21 Thread subaochen
Thanks PhilipPirrip! Your method just works like a charm:-)


PS,Local Layout is really a good design! A real good start to develop lyx 
module!


At 2016-02-22 00:41:25, "PhilipPirrip"  wrote:
>On 02/21/2016 11:05 AM, subaochen wrote:
>> InsetLayout CharStyle:Function
>
>This should be
>InsetLayout Flex:Function
>
>
>You can read about these in Help>Customization (I must say that's not 
>the clearest part of LyX documentation, though... it's actually very 
>confusing!)
>
>
>Also, if you're writing modules, it's a good idea to test them in 
>Document Settings > Local Layout. There's even a button to convert the 
>layouts to current format.
>


Re: lyxtype and Format version

2016-02-21 Thread PhilipPirrip

On 02/21/2016 11:05 AM, subaochen wrote:

InsetLayout CharStyle:Function


This should be
InsetLayout Flex:Function


You can read about these in Help>Customization (I must say that's not 
the clearest part of LyX documentation, though... it's actually very 
confusing!)



Also, if you're writing modules, it's a good idea to test them in 
Document Settings > Local Layout. There's even a button to convert the 
layouts to current format.




lyxtype and Format version

2016-02-21 Thread subaochen
hi all,


I have a very simple character style module as below:


Format 7
InsetLayout CharStyle:Function
LyxType charstyle
LabelString function
LatexType   command
LatexName   function
Font
  FamilySans
EndFont
Preamble
  \newcommand*{\function}[1]{{\texttt #1}}
EndPreamble
End


But when I change Format 7 to Format 49, lyx failed to load the module and said:
LyX: Unknown InsetLayout tag [around line 10 of file 
~/.lyx/layouts/programming.module current token: 'charstyle' context: '']


I have ever tried Format version up to 34, the module works well.


So, where can I get the full information about Format version and their related 
tag? Thanks in advance!


--
Best regards,

Su Baochen