John W. Shipman | 1 Jun 2007 23:31

TeX math in DocBook

On Thu, 10 May 2007, Stefano Sabatini wrote:

+--
| Stefano Sabatini <stefano.sabatini-lala <at> poste.it> wrote on Wed, 9 May
| 2007 11:38:19 +0200:
| 
| I would like to avoid to use MathML, due to its need for a graphical
| editor, so using the compact tex notation
+--

I've been trying for some time to find a way to get TeX to output
scalable PDFs that work within DocBook.

I finally worked out a rather kludgey route that works.
Equations in TeX or LaTeX can be included either as block
elements or as inlines.  It doesn't use MathML or SVG, and it
works fine with XEP.  Equations are scalable in the PDF output,
but rasterized in the HTML output.

This particular toolchain may be documented somewhere, but I
couldn't find it easily in one place.

The procedure is described here:

    http://www.nmt.edu/tcc/help/pubs/docbook43/tex-math.html

This is a section of the documentation for our local DocBook
toolchain.  That documentation starts here:

    http://www.nmt.edu/tcc/help/pubs/docbook43/
(Continue reading)

Samuel Wright | 4 Jun 2007 13:10
Picon

whitespace - confirmation please

Hi All,

Could someone give me a hand regarding my understanding of whitespace.
Whitespace is significant in any element that can contain text, as I
understand it.

so
----
<para>sdfsdfsdfds<para>
----

is better than
----
<para>
sadsdsd</para>
----

Does this apply also with subelements?
----
<para><simplelist>...
----
not
----
<para>
<simplelist>...
----

What about editor indentation? Do all my <para> elements need to be at
the start of the line?

(Continue reading)

David Cramer (Tech Pubs | 4 Jun 2007 15:47

RE: whitespace - confirmation please

> -----Original Message-----
> From: Samuel Wright [mailto:lykoszine <at> gmail.com] 
> Sent: Monday, June 04, 2007 6:11 AM
> To: docbook-apps <at> lists.oasis-open.org
> Subject: [docbook-apps] whitespace - confirmation please
> 
> Hi All,
> 
> Could someone give me a hand regarding my understanding of whitespace.
> Whitespace is significant in any element that can contain 
> text, as I understand it.
> 
> so
> ----
> <para>sdfsdfsdfds<para>
> ----
> 
> is better than
> ----
> <para>
> sadsdsd</para>

Yes. 

> ----
> 
> Does this apply also with subelements?
> ----
> <para><simplelist>...
> ----
(Continue reading)

M.Canales.es | 4 Jun 2007 19:18

Re: whitespace - confirmation please

El Lunes, 4 de Junio de 2007 13:10, Samuel Wright escribió:
> Hi All,
>
> Could someone give me a hand regarding my understanding of whitespace.
> Whitespace is significant in any element that can contain text, as I
> understand it.

That depend on the xml:space value assigned to that element on the DTD, and on 
how the parsed used handles the "default" value. The definition discissed in 
the W3C Recommendation for XML-1.0 can be found here:

http://www.w3.org/TR/xml/#sec-white-space

> so
> ----
> <para>sdfsdfsdfds<para>
> ----
>
> is better than
> ----
> <para>
> sadsdsd</para>
> ----

Like said David, for block elements it not matter.

> Does this apply also with subelements?
> ----
> <para><simplelist>...
> ----
(Continue reading)

Dennison, Cheri | 4 Jun 2007 20:40
Picon
Favicon

RE: linebreak causing page citation to become question mark

Hi all,

Before I assume there's no fix to this, I thought I'd ping the group one
more time to make sure this question actually made it to the list.

thanks if you have any thoughts!
cheri

-----Original Message-----
From: Dennison, Cheri [mailto:cherid <at> amazon.com] 
Sent: Friday, May 25, 2007 11:52 AM
To: docbook-apps <at> lists.oasis-open.org
Subject: [docbook-apps] linebreak causing page citation to become
question mark

Howdy,

I'm using:
*	Saxon 6.5.5
*	Xerces 2.8.0
*	Apache FOP 0.20.5

Context:
I've turned on page number citation in the PDF so that my xrefs result
in the page number appearing in parentheses, like this:
For more information, see Request Authentication (p. 25). 

Problem:
I've noticed that in situations where the xref breaks across lines, the
page number turns into a question mark. For example (I inserted a
(Continue reading)

David Cramer (Tech Pubs | 4 Jun 2007 20:56

RE: linebreak causing page citation to become question mark

I guess that has to be a fop bug, but I would think others would have
noticed it. Perhaps you could avoid the situation by replacing the
spaces with nbsps:

<l:template name="page.citation" text="&#x00A0;(p.&#x00A0;%p)"/> 

No line break, no problem? :-)

David

> -----Original Message-----
> From: Dennison, Cheri [mailto:cherid <at> amazon.com] 
> Sent: Monday, June 04, 2007 1:41 PM
> To: docbook-apps <at> lists.oasis-open.org
> Subject: RE: [docbook-apps] linebreak causing page citation 
> to become question mark
> 
> Hi all,
> 
> Before I assume there's no fix to this, I thought I'd ping 
> the group one more time to make sure this question actually 
> made it to the list.
> 
> thanks if you have any thoughts!
> cheri
> 
> -----Original Message-----
> From: Dennison, Cheri [mailto:cherid <at> amazon.com]
> Sent: Friday, May 25, 2007 11:52 AM
> To: docbook-apps <at> lists.oasis-open.org
(Continue reading)

Ken Morse | 4 Jun 2007 22:40
Picon

Re: linebreak causing page citation to become question mark

I haven't seen this behavior before with xrefs, Cheri. Have you looked
at the fo output produced by Saxon to see if the page references look
ok? Do you see any difference in the fo output between the page
references that look ok and that ones that do not?

If the FO output is ok, then maybe the problem is with FOP 0.20.5. You
could try the 0.93 version or download the trial version of XEP and
try that.

Ken

On 6/4/07, Dennison, Cheri <cherid <at> amazon.com> wrote:
> Hi all,
>
> Before I assume there's no fix to this, I thought I'd ping the group one
> more time to make sure this question actually made it to the list.
>
> thanks if you have any thoughts!
> cheri
>
> -----Original Message-----
> From: Dennison, Cheri [mailto:cherid <at> amazon.com]
> Sent: Friday, May 25, 2007 11:52 AM
> To: docbook-apps <at> lists.oasis-open.org
> Subject: [docbook-apps] linebreak causing page citation to become
> question mark
>
> Howdy,
>
> I'm using:
(Continue reading)

Dennison, Cheri | 5 Jun 2007 00:55
Picon
Favicon

RE: linebreak causing page citation to become question mark

The FO that Saxon produces looks the same between good and bad examples,
and I can't determine a consistent algorithm explaining when FOP 0.20.5
produces bad vs. good. FOP also seems to have some other weird little
bugs randomly affecting the text that comes immediately after the page
citation. And since I'm currently stuck with 0.20.5, I guess I won't be
using the page citation feature for now.

Thanks to everyone who responded with suggestions!
cheri 

-----Original Message-----
From: Ken Morse [mailto:kenneth.morse <at> gmail.com] 
Sent: Monday, June 04, 2007 1:41 PM
To: docbook-apps <at> lists.oasis-open.org
Subject: Re: [docbook-apps] linebreak causing page citation to become
question mark

I haven't seen this behavior before with xrefs, Cheri. Have you looked
at the fo output produced by Saxon to see if the page references look
ok? Do you see any difference in the fo output between the page
references that look ok and that ones that do not?

If the FO output is ok, then maybe the problem is with FOP 0.20.5. You
could try the 0.93 version or download the trial version of XEP and try
that.

Ken
Ken Morse | 5 Jun 2007 16:18
Picon

Formatting multiple subtitles

Hello,

I've got a DocBook document with multiple subtitle elements (bookinfo)
and I'd like to style each of them a bit differently on the recto side
of the title page (by default at least, all the subtitles have the
same formatting applied). I'm mostly looking to tweak font size,
font-weight, etc.

Is there a way I can have indicate different formatting for different
subtitles in the title page spec file (based on
fo/titlepage.templates.xml) or would I need to do my own table layout
for this with a custom book.tiltepage.recto template?

Thanks,
Ken
Scott Hudson | 5 Jun 2007 17:02
Favicon

Re: Formatting multiple subtitles

Ken,

what about using the role attribute on subtitle to distinguish them? 
Then you can write some template code to process each of the different 
subtitle roles appropriately?

Best regards,

--Scott

Ken Morse wrote:
> Hello,
> 
> I've got a DocBook document with multiple subtitle elements (bookinfo)
> and I'd like to style each of them a bit differently on the recto side
> of the title page (by default at least, all the subtitles have the
> same formatting applied). I'm mostly looking to tweak font size,
> font-weight, etc.
> 
> Is there a way I can have indicate different formatting for different
> subtitles in the title page spec file (based on
> fo/titlepage.templates.xml) or would I need to do my own table layout
> for this with a custom book.tiltepage.recto template?
> 
> Thanks,
> Ken
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: docbook-apps-unsubscribe <at> lists.oasis-open.org
> For additional commands, e-mail: docbook-apps-help <at> lists.oasis-open.org
(Continue reading)


Gmane