[docbook] HOW TO: format formula in docbook 5

2010-06-07 Thread David Gao
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

Re: [docbook] HOW TO: format formula in docbook 5

2010-06-07 Thread David Gao
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

RE: [docbook] HOW TO: format formula in docbook 5

2010-06-07 Thread Rowland, Larry
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-

Re: [docbook] HOW TO: format formula in docbook 5

2010-06-07 Thread Bob Stayton
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:

Re: [docbook] HOW TO: format formula in docbook 5

2010-06-07 Thread Warren Young
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

Re: [docbook-apps] Font problem - need 2 font files in Docbook

2010-06-07 Thread Bob Stayton
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

RE: [docbook-apps] [OT] - Doc in Wiki system

2010-06-07 Thread honyk
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

RE: [docbook-apps] about XML parameter Entities

2010-06-07 Thread Huang Hake-B20222
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

RE: [docbook-apps] about XML parameter Entities

2010-06-07 Thread Huang Hake-B20222
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: