----- Original Message -----
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.)
----- Original Message -----
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 -----
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