On Wednesday 19 May 2004 02:30, Chris Karakas wrote: > Hello again, Hello,
regarding the CDATA or not CDATA inside equations if I try to insert an inequality inside the equation the docbook output is: ... <alt>\[ E<mc^{2}\] </alt> ... without the CDATA jade complains: jade:f1.sgml:33:4:E: character "^" not allowed in attribute specification list jade:f1.sgml:33:4:E: element "MC" undefined jade:f1.sgml:36:11:E: end tag for "EQUATION" which is not finished don't you get this? > before I forget it: we must export inline equations to <inlineequation> > and "displayed" equations to <equation>. Currently, everything is > exported to <equation>, so that even something trivial like a+b=c will > have to be displayed as a separate block, instead of "inline". That makes sense. I will need to ask André how to do this as it should be trivial. :-) > This is very important as I currently resort to tricks of the type "if > there is a </para><para> at the end of some line, followed by an > <equation>, then that equation is actually inline" for 1.2.0, for > example. > > Actually, it should be easy to determine if the equation is inline: > whatever is delimited by $ is inline and should be exported to > <inlineequation>. The rest is <equation> or <informalequation> (which is > the same as <equation>, but without a title). I think then that the best option would be to distinguish between inline and informal equations. > I propose to either use only <equation> for the equations that are not > inline (and give them automatic titles like "Equation XXX", numbered > consecutively, as I currently do with the awkscr_math awk script in > http://www.karakas-online.de/mySGML/awkscr_math, see also > http://www.karakas-online.de/mySGML/magic-behind-the-math.html ), or give > the user full control on every equation about how it should be exported > to DocBook (with or without title, and which one). How do you propose to represent the equation? Note that I have suppressed the output of <math></math> for the sgml version now. -- José Abílio