|
Developers' side bar Selected categories Edit Links |
Devel /
XMLCategories: Development, LyX_2_1 << | Page list | >>Almost from the very beginning, there have been recurrent proposals to switch to an XML based format for LyX files. So far, no steps towards it have been made. Table of contents (hide) 1. Advantages and drawbacksHere are some key advantages of switching to an XML based format:
Here are some drawbacks:
2. Real world exampleHere is a sample LyX document in the normal format \lyxformat 620\begin_document\begin_header\inputencoding utf8\fontencoding auto\spacing single\use_hyperref false\end_header\begin_body\begin_layout TitleExample document\end_layout\begin_layout StandardHere are some formulas\end_layout\begin_layout SectionSome formulas\end_layout\begin_layout Standard\begin_inset FormulaHello i'm a formula.\end_inset\end_layout\end_body\end_documentHere is a way it could look with XML: <?xml version="1.0" encoding="utf-8"?><!DOCTYPE document PUBLIC "-//LyX//DTD lyx//EN" "http://www.lyx.org/lyxformat-620.dtd"><document><head><param name="inputencoding">utf8</param><param name="fontencoding">auto</param><param name="spacing">single</param><param name="use_hyperref">false</param></head><body><layout type="Title">Example document</layout><layout type="Standard">Here are some formulas</layout><section><layout type="Section">Some formulas</layout><layout type="Standard"><inset type="Formula">Hello i'm a formula.</inset></layout></section></body></document>
3. Active questionsHere are some questions we need to answer before:
4. Road to an XML formatThe first step should be to change the current format meta-characters \ to an intermediate format where the meta-characters are those of XML <&> Some examples:
5. Testing tips5.1 Command sequences
6. CategoriesCategory: Development, LyX_2_1 |