Hi,
I'm a beginner of docbook 5. I have difficulty when formatting a math
equation with docbook xml. The equation is a mathematical fraction as
included in the attachment.
Could anyone be kind enough to tell me how to express that equation in
docbook xml?
Many thanks!
--
Best Regards
Hi Richard,
Thank you very much for the information.
However, I was told that the formula can be expressed with docbook xml
elements without using any MathML tags. I've tried all ways I can think
of, but no good. Could you help me with this?
Best Regards!
David Gao
If you want to expression in exactly that format, you have to use either MathML
or simply use a PNG of the expression. If you will settle for an equivalent
expression, you can use a mathphrase element:
mathphrase
(replaceableM/replaceablesuperscript1/superscript-
Hi,
However, I was told that the formula can be expressed with docbook xml elements
without using any MathML tags
That statement is not correct. DocBook has only an element named mathphrase which
can contain any mix of:
On 6/7/2010 9:43 AM, Rowland, Larry wrote:
or simply use a PNG of the expression
That's good if your output is HTML or something else where bitmap images
are appropriate.
If your output is PDF or PostScript, better to use a vector graphics
form of the equation: PS, PDF, SVG... whatever
OK, the setting of font-family in the 'root.properties' attribute-set explains it. In
fo/param.xsl, there is this:
xsl:attribute-set name=root.properties
xsl:attribute name=font-family
xsl:value-of select=$body.fontset/
/xsl:attribute
...
So you were not overriding the value of
Thanks to all for sharing your experience! I am already convinced, Wiki is
my goal... but it will be just one of the outputs from DocBook source :-) -
it will fill the 'Online help' gap (besides CHM and PDF outputs).
Btw, Lars, your system is very similar to the idea I've tuned in my mind
Hi Richard,
Thanks.
Now I find in docbook 5 the solution should be
1. define a profile in your segment like
sect1 os=Linux/sect1
2. process the xml with
xsltproc --output test.html --stringparam profile.userlevel Linux
/usr/share/xml/docbook/stylesheet/nwalsh/xhtml/profile-docbook.xsl
Sorry correct one line, in step 2 the command line should be
xsltproc --output test.html --stringparam profile.os Linux
/usr/share/xml/docbook/stylesheet/nwalsh/xhtml/profile-docbook.xsl test.xml
-Original Message-
From: Huang Hake-B20222
Sent: Tuesday, June 08, 2010 10:54 AM
To: