On Wednesday 12 May 2004 19:49, Chris Karakas wrote: > Hello, > > one of my primary objectives is to persuade you to incorporate some > changes in LyX that will render my sed script > > http://www.karakas-online.de/mySGML/sedscr > > obsolete.
That seems doable. Have you got the latest cvs code? Instructions how to get it can be found at: http://www.devel.lyx.org/cvs.php3 > For those of you who are fluent in sed, you will see that I will start > one thread for each substitution in the sedscr file above. ;-) > > So let's start: > > I propose to delete every occurence of > > <anchor id="some-id"> > > Openjade does not support them, so let's forget them! Otherwise, I have > to process the exported SGML file with the following sed commands: Ok. > Why shall I have to do this? Why not produce directly > > <sect1 id="some-id"> > > instead of the current > > <sect1> > <anchor id="some-id"> This can be done but I suggest that it should only be done only if the anchor is the first element in the paragraph. Is that a good compromise for you? Something that I have discussed with Martin is the direct support of lyx for this, with no need for anchors (labels in the latex parlance). But this is another subject. This would make what you suggest trivial. And help alot Martin with its implementation of AGU XML. > ? Openjade will NOT accept xrefs to anchors, spitting the error: > > [xref to ANCHOR unsupported] > > so I think it is time to change this. > > The same goes for tables: I will try some ideas to see how this can be done. Expect a patch soon. > As soon as you implement this, I will not need those sed lines in my > sedscr! > > Please tell me what you think. That seems doable. > Chris -- José Abílio LyX and docbook, a perfect match. :-)