"Jose' Matos" <[EMAIL PROTECTED]> schrieb am 02.07.04 14:04:02: > > > However, it turned out that the solution is simple: you should write the > > SGML entities of < and > instead of the brackets themselves! I adapted my > > scripts to do this: > > I will do that. The question is to show that something needs to be done. > The introduction of the CDATA section was not arbitrary. :-) > > Also notice that since we have problems with some browser not > understanding most entities I escape now only < > & > > This should simplify your scripts. ;-)
Indeed, I expect so too. :-) Regarding the &, I have a problem (unrelated to math and equations): if I leave it as "& amp ;" in the SGML text, it becomes "& amp ; amp ;" (being displayed as "& amp ;" in the browser) in HTML. Thus I always have to "transform back" the "& amp ;" to "&" in LyX' SGML, in order to get it right in HTML. I know I am digressing here, but I could not resist - if you have any idea why this is happening, it would be very helpful. > > I think that you know this but to be more systematic I have to say that: > 1) lyx no longer outputs MathML with the sgml version. > 2) Now we no longer output equation, if it is a simple equation the lyx > writes an inlineequation else it writes an informalequation. Is that what > you want? > Not exactly, but almost. ;-) If it is an inline equation, LyX should output "< inlineequation >", otherwise it should output "< equation >". The thing with "< informalequation >" was just a trick of mine in my attempt to mark the inline equations. And it would be nice if we could specify the id attribute of each equation independently with a user dialog (otherwise, I have to use the awkscr_math script to give them an id by numbering them consecutively, which is quite incovenient). > > Thus, the only thing you have to do is replace < and > with their > > entities instead of including the alt part in CDATA! > > I will do that, and try to look to your other complains. ;-) > There quite a few of them still left, but eventually we will manage them all! :-) What disturbs me at the moment is DocBook's lack of "theorem", "definition", "proof" and "corrolary" elements. LaTeX can number all those elements consecutively inside a chapter/section, thus making referrals like "see Theorem 5.3-15" (for the 15th theorem of section 5.3) possible. How do I get this with LyX and DocBook? Can you offer such functionality for the SGML/XML exported document? That is, can you offer the possibility to "misuse" a (referable) element like "example" with "< example role="theorem" id="thm-5.3-15">"? Or is there a better way to handle this? Chris -- Regards Chris Karakas http://www.karakas-online.de