Hello,

Here is a sample output of the new XML output I have added to my LyX
copy. 
This has been produced by a patched version of LyX that uses
XMLSAXPrettifier (which at the moment does not make pretty output, so
please bear with the poor formatting). I have added XMLWrite methods to
classes that contained a Write method.
The general structure is XML-ized but equations and embedded latex
commands are NOT XML-ized.
I have had to make some interpretations to decide what becomes a
parameter, what becomes a parameter, what contains what. I think that
the resulting structure is OK, but we can easily make changes even after
the Read methods are written (which I will start this week-end).

Also, since the changes seem to impact many files, could somebody tell
me how I should submit the patch so that most of the boring part of the
merge falls on my shoulders ? I would hate to put too much extra-work on
LyX developers. I guess I need to update my directory, resolve conflicts
and then ask cvs to make a diff against some reference version (or is it
diff between two local copies ?).

        Thanks a lot for your help.

P.S. Thanks Lars for the hint about 'tostr', I had searched for such a
function without finding it. This makes the XMLAttributes::set method
obsolete, which is nice.
#LyX 1.1 created this file. For more info see http://www.lyx.org/
\lyxformat 2.17
<parameters>
<textclass>
article
</textclass>
<language>
default
</language>
<inputencoding>
auto
</inputencoding>
<fontscheme>
default
</fontscheme>
<graphics>
default
</graphics>
<paperfontsize>
default
</paperfontsize>
\spacing single 
<papersize>
Default
</papersize>
<paperpackage>
a4
</paperpackage>
<use_geometry>
0
</use_geometry>
<use_amsmath>
0
</use_amsmath>
<paperorientation>
portrait
</paperorientation>
<secnumdepth>
3
</secnumdepth>
<tocdepth>
3
</tocdepth>
<paragraph_separation>
indent
</paragraph_separation>
<defskip >
medskip
</defskip >
<quotes_language>
english
</quotes_language>
<quotes_times>
2
</quotes_times>
<papercolumns >
1
</papercolumns >
<papersides>
0
</papersides>
<paperpagestyle>
default
</paperpagestyle>

</parameters>
<paragraph layout="Section">

A section
</paragraph>
<paragraph align="center" layout="Standard" pagebreak_top="true">

A centered paragraph<inset>
<Formula>
\( \frac{A}{B} \)
</Formula>

</inset>
refering to<inset>
<LatexCommand>
\ref{My label}
</LatexCommand>

</inset>

</paragraph>
<paragraph added_space_bottom="0.3cm" added_space_top="0.3cm" align="center" 
layout="Standard">

<inset>
<figure file="try.eps" flags="15" height="100" subcaption="Hello" subfigure="true" 
width="100">
<geometry angle ="90" height="2" htype="1" width="4" wtype="2">

</geometry>

</figure>

</inset>

</paragraph>
<paragraph layout="Standard">

<inset>
<Info>
a little note
</Info>

</inset>
<inset>
<LatexCommand>
\label{My label}
</LatexCommand>

</inset>
<inset>
<Foot>
<collapsable collapsed="false">
<paragraph layout="Standard">

A little footnote to show paragraph nesting.
</paragraph>

</collapsable>

</Foot>

</inset>

</paragraph>

\the_end

Reply via email to