On 05/09/2012 02:14 AM, Nico Williams wrote:
On Tue, May 8, 2012 at 10:58 PM, Richard Heck<[email protected]> wrote:
On 05/08/2012 07:30 PM, Nico Williams wrote:
LyXHTML looks very promising. It certainly preserves everything I
have in my [admittedly small] test file. If it preserves custom inset
names then I could probably use custom insets to provide the
additional metadata I need (I still haven't quite figured out how to
create custom insets, but give me time). XSLT can do the rest.
It will do with custom insets whatever you ask it to do. If I remember
correctly, it defaults to something like:
<div class="custominset">
or an equivalent span, depending upon whether its a charstyle or a
flex inset.
Excellent. I've got an XSLT stylesheet in the works that does what I want.
I don't know how to create a custom inset that does.. nothing much
except have a custom inset name. Specifically I need variants of the
Author inset to represent the metadata I need (author organization,
e-mail address, and postal address). With that I'd be set.
Try putting this into Local Layout, under Document>Settings:
Format 31
InsetLayout Flex:MyInset
LyXType Custom
End
InsetLayout Flex:MyInsets
LyXType Custom
HTMLTag mytag
End
You can specify more if you wish, but that gets you started. (As LaTeX,
these export as normal text.)
I guess if you want these as metadata, you should also add:
InTitle 1
to each of them.
Richard