It works for me with filename formatting when I import the stock 
docbook-xsl-1.76.1 stylesheets.  I'm not clear how DobuDish works, so I cannot 
explain why you are losing your formatting.  The xsl:import statement should 
pick up the default template with match="filename", which applies the format.

Bob Stayton
Sagehill Enterprises
b...@sagehill.net


  ----- Original Message ----- 
  From: Brendan DeTracey 
  To: Bob Stayton ; pla...@ieee.org 
  Cc: docbook@lists.oasis-open.org 
  Sent: Monday, March 19, 2012 11:15 AM
  Subject: Re: [docbook] pdf/html element customization - line breaks


  Thanks Bob. I am using DobuDish which I thought was 5, but it did not like 
the d: so I removed it.
  The file names are now unbroken however they no longer have a font style.
    ----- Original Message ----- 
    From: Bob Stayton 
    To: Brendan DeTracey ; pla...@ieee.org 
    Cc: docbook@lists.oasis-open.org 
    Sent: Monday, March 19, 2012 2:05 PM
    Subject: Re: [docbook] pdf/html element customization - line breaks


    Hi Brendan,
    For the filename element, you could try a customization like this:

    <xsl:template match="d:filename">
      <fo:inline keep-together.within-line="always">
        <xsl:apply-imports/>
      </fo:inline>
    </xsl:template>

    (Omit the d: in the match attribute if you are using DocBook 4.)

    Bob Stayton
    Sagehill Enterprises
    b...@sagehill.net


      ----- Original Message ----- 
      From: Brendan DeTracey 
      To: pla...@ieee.org 
      Cc: docbook@lists.oasis-open.org 
      Sent: Monday, March 19, 2012 6:00 AM
      Subject: Re: [docbook] pdf/html element customization - line breaks


      I suppose I will manually backslash and linebreak for both html and pdf. 
I now see that others have had to do this (Appendix A ,example A-7 from 
Advanced Bash Scripting at Linux Documentation Project. Manual backslash in 
both html and pdf versions.)

      Now if only I could stop pdf from line-breaking filename elements. Any 
help with this?

      Thanks,
      Brendan
        ----- Original Message ----- 
        From: Bob Plantz 
        To: Brendan DeTracey 
        Cc: docbook@lists.oasis-open.org 
        Sent: Sunday, March 18, 2012 10:00 PM
        Subject: Re: [docbook] pdf/html element customization - line breaks


        On 3/18/2012 4:14 PM, Brendan DeTracey wrote: 
          Hello,

          I have been using the computeroutput element, but have a problem with 
line breaks in pdf when my line is too long. In html the user can resize the 
window to fit the entire line of text but pdf breaks the line clumsily. How do 
other authors deal with this issue?

          Thanks,
          Brendan
        That's the difference between pdf and html. With pdf you specify the 
presentation formats on the page. With html the reading device has a lot of 
control over the presentation in the window. Even the user has some control 
over an html presentation, but not with pdf.

        My solution? I'm currently working on converting my textbook from LaTeX 
(to produce pdf) to ePub (html under the hood). The tools for the conversion 
are primitive, at best. Since it's a technical book (assembly language 
programming, etc.), I'm having to eliminate a lot of the nice formatting that 
LaTeX allows on the printed page. But students these days prefer electronic 
reading, even if it means dealing with the problems of pdf on portable devices.

        --Bob

Reply via email to