On 8-11-2010 3:52, Vladimir Lomov wrote:
I compiled them with context (mkIV, context minimal) and got ex{1,2,3}.export. I thought that I get not only the document content but also its logical structure (for example some markup for font switching).
Bold in itself is not structure so best tag it as (e.g.) important: \setupbackend[export=yes] \definestartstop[important][style=bold] \starttext This is second example. This time we try to use font switching mechanism: This is normal, but this \important{one is bold}. Normal again. \stoptext
Is it true that 'backend' only output document content not its logic strcuture? Does it work with math? The third example gives for math only not letters.
Math becomes: This is inline formula <math> <mrow> <mi>𝐸</mi> <mo>=</mo> <mi>𝑚</mi> <msup> <mi>𝑐</mi> <mn>2</mn> </msup> </mrow> </math> . <break/> This is display formula <formula> <formulacontent> <math> <mrow> <mi> 𝐸</mi> <mo>=</mo> <mi>𝑚</mi> <msup> <mi>𝑐</mi> <mn>2</mn> </msup> </mrow> </math> </formulacontent> </formula>
I attached the resulted export files.
P.S. Then I saw the announce about 'backend'& 'export=yes' I thought that context would be good tool for notes. I imagine that I could wrote a text file and make from it either pdf (for printing/screening) or html (for screening) or may be convert xml (using existing tools and methods) to other formats (rtf/odt/xhtml) that would contain math, images, tables. But seems that I was wrong or this will be in future of the backend?
indeed it should be possible to use context that way and afaik the export is already quite okay (you might need a recent luatex as there have been issues with attributes in math mode that were sorted out a while ago) Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------