Hi lyx-devel,

   I am building a layout for the new REVTeX 4.1 document class and the 
associated revtex4-1.cls defines a new float-type called video. It therefore 
makes available the \listofvideos command which should list all videos much 
like \listoftables and \listoffigures.

   I am attaching the .layout file where I have created a new video float and 
have assigned ListName = "List of Videos". As expected, this shows up in 
Insert -> List/TOC and clicking this also inserts the expected inset. But the 
latex source shows "%% unknown builtin inset". The failure is being caused in 
InsetFloatList::latex() which only checks for float-inset type "table" 
and "figure".

   Since the video float is being defined in the document class, I have also 
assigned LaTeXBuiltin = true. Is this correct? If so, then LyX should parse 
the document class to extract info about new floats.

   Another solution might be introducing a new LaTeXListName parameter which, 
in this case, should be assigned "listofvideos". In the case of the 
TODO-notes module, this parameter could be "listoftodos". And LyX can take 
care of inserting \<LaTeXListName>

Thanks,
Manoj

Reply via email to