Thomas Sommer
Usenet Archive
- Joined
- Aug 29, 2004
- Messages
- 20
- Reaction score
- 0
Hi,
I want to use formulas in docbook and use the following for inlineequations.
Text
<inlineequation><inlinemediaobject><imageobject>
<imagedata fileref="1.png"/></imageobject></inlinemediaobject> <alt role="tex">\vec{A}</alt></inlineequation> Text
Now this is hard to read unlike in TEX: Text &\vec{A}$ Text. So I thought I would define some entities in my DTD that would replace everything except the data I have type so it would look something like this:
Text &e1;1.png&e2;\vec{A}&e3; Text
Now this does not work and even a simple thing like
<!ENTITY pb "<para>">
<!ENTITY pe "</para>">
Use like
&pb;TEXT&pe;
gives:
Entity: line 1: parser error : Premature end of data in tag para line 1 <para>
Looks like it wants to parse the entity itself. Would there be a way to avoid this.
Thanks Thomas
I want to use formulas in docbook and use the following for inlineequations.
Text
<inlineequation><inlinemediaobject><imageobject>
<imagedata fileref="1.png"/></imageobject></inlinemediaobject> <alt role="tex">\vec{A}</alt></inlineequation> Text
Now this is hard to read unlike in TEX: Text &\vec{A}$ Text. So I thought I would define some entities in my DTD that would replace everything except the data I have type so it would look something like this:
Text &e1;1.png&e2;\vec{A}&e3; Text
Now this does not work and even a simple thing like
<!ENTITY pb "<para>">
<!ENTITY pe "</para>">
Use like
&pb;TEXT&pe;
gives:
Entity: line 1: parser error : Premature end of data in tag para line 1 <para>
Looks like it wants to parse the entity itself. Would there be a way to avoid this.
Thanks Thomas