Thanks i'll try this

On Mon, Oct 7, 2013 at 7:17 PM, Bob Stayton <[email protected]> wrote:

> **
> Hi,
> The # character in FOP output means the fonts that are specified in the FO
> output do not contain a glyph for that character, in this case math
> symbols.  You will need to add a font that has them.  See this reference
> for details:
>
> http://www.sagehill.net/docbookxsl/SpecialChars.html#MissingChars
>
> Were the superscripts working?
>
> Bob Stayton
> Sagehill Enterprises
> [email protected]
>
>  *From:* Joachim Rodrigues <[email protected]>
> *Sent:* Wednesday, October 02, 2013 12:59 PM
> *To:* [email protected]
> *Cc:* [email protected]
> *Subject:* Re: [docbook-apps] Equations in docbook not working
>
> Hi Thanks for your reply,
>
> Sorry but i changed the doctype in the included file : test.xml  to get
>  <!DOCTYPE equation PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
>           "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd";>
> <equation><title>Fermat's Last Theorem</title>
> <alt>x^n + y^n &ne; z^n &forall; n &gt; 2</alt>
> <mathphrase>x<superscript>n</superscript>
>  + y<superscript>n</superscript>
> ≠ z<superscript>n</superscript>
>  ∀ n ≠ 2</mathphrase>
> </equation>
>
>
> But now the equation appears but not correctly i got :
>
>  xn + yn # zn # n # 2
>
>
> did you get the correct formula when you tried ?
>
>
>
>
>
>
>
> On Wed, Oct 2, 2013 at 12:42 AM, <[email protected]> wrote:
>
>> **
>>  Hello,
>> First make sure your DOCTYPEs are correctly used. I corrected the
>> included file's DOCTYPE before it would legally compile.
>>
>> Next, you can use mathphrase:
>>
>> <!DOCTYPE equation PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
>>
>>           "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd";>
>>
>> <equation><title>Fermat's Last Theorem</title>
>>
>> <alt>x^n + y^n &ne; z^n &forall; n &gt; 2</alt>
>>
>> <mathphrase>x<superscript>n</superscript>
>>
>>  + y<superscript>n</superscript>
>>
>> ≠ z<superscript>n</superscript>
>>
>>  ∀ n ≠ 2</mathphrase>
>>
>> </equation>
>>
>>
>>
>> This compiled correctly on my system.
>>
>> I use MathML for all of my equations. See Bob Stayton's book for a better
>> explanation of how to integrate MathML equations.
>> http://www.sagehill.net/docbookxsl/index.html
>>
>>
>>
>> Hope this helps.
>>
>> Regards,
>> Dean Nelson
>>
>>
>>
>>  In a message dated 10/1/2013 1:13:59 P.M. Pacific Daylight Time,
>> [email protected] writes:
>>
>> Yes sorry
>>
>> So i have downloaded this docbook complete project that is open source.
>> with this command
>> git clone https://github.com/sonatype/m2eclipse-book.git
>>
>> and from the source code to generate the PDF i did
>> cd m2eclipse-book
>> and
>> mvn clean install
>>
>> this generates the pdf and it's ok
>> my problem is when i create a file named test.xml with
>>
>> <!DOCTYPE equation PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
>>           "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd";>
>> <equation><title>Fermat's Last Theorem</title>
>>   <alt>x^n + y^n &ne; z^n &forall; n &gt; 2</alt>
>>   <graphic fileref="figures/fermat.png"/>
>> </equation>
>>
>>
>> and in the m2eclipse-book/m2ebook-content/src/main/resources/foreword.xml
>> file, i include
>> <xi:include href="test.xml" xmlns:xi="http://www.w3.org/2001/XInclude"; />
>>
>>
>>
>> to have this :
>>
>>  <?xml version="1.0" encoding="UTF-8"?>
>> <!DOCTYPE preface PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
>> "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd";>
>> <preface id="foreword">
>>   <title>Foreword: ${project.version}</title>
>>
>>   <xi:include href="test.xml"
>>               xmlns:xi="http://www.w3.org/2001/XInclude"; />
>>
>>   <para>If you would like to receive updates whenever there is a change to
>>   this book, you can subscribe to our Book Announcement mailing list. To
>>   subscribe to this mailing list, send an email to: <ulink
>>   url="mailto:[email protected]";>
>> [email protected]</ulink></para>
>>   <para>We welcome your feedback, please do not hesitate to contact the
>>   Sonatype team with any questions or ideas you may have about the
>>   product.</para>
>>
>>
>>
>>
>>
>> So i'm expecting to have an equation just before the text : "If you
>> would" but i'm getting blank paragraph
>>
>> Equation 1. Fermat's Last Theorem
>>
>> If you would like to receive updates whenever
>>
>>
>>
>>
>> thanks for your help
>>
>>
>>
>>
>>
>> On Tue, Oct 1, 2013 at 12:29 AM, <[email protected]> wrote:
>>
>>> **
>>> Hello!
>>>
>>> For us to help you, we would need to know a little more about your
>>> issue. Equations can be a bit tricky for all formats, but I think you are
>>> trying to get it to work in eBook format?
>>>
>>> Can you tell us what you have tried, specifically? It would help us
>>> understand your issue.
>>>
>>> Regards,
>>> Dean Nelson
>>>
>>>  In a message dated 9/30/2013 1:07:28 P.M. Pacific Daylight Time,
>>> [email protected] writes:
>>>
>>> Hi i have downloaded a free ebook :
>>> https://github.com/sonatype/m2eclipse-book
>>>
>>> because i'm learning how to write a book.
>>> I need to write equations so i simply added this example
>>> http://www.docbook.org/tdg/en/html/equation.html
>>>
>>> to a xml file of the free ebook. but it does't wort at all.
>>>
>>> Can somebody help ?
>>> thanks
>>>
>>>
>>
>

Reply via email to