This is the mail archive of the docbook-apps@lists.oasis-open.org mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: Messy FOP


Or, if you only want to fix the programlisting, but justify the rest of your
document, use this template:  (previously sent only to vnhu38f93)

<xsl:template match="programlisting|screen|synopsis">
  <xsl:param name="suppress-numbers" select="'0'"/>
  <xsl:variable name="vendor" select="system-property('xsl:vendor')"/>
  <xsl:variable name="id"><xsl:call-template
name="object.id"/></xsl:variable>
 
  <xsl:choose>
    <xsl:when test="$suppress-numbers = '0'
                    and @linenumbering = 'numbered'
                    and $use.extensions != '0'
                    and $linenumbering.extension != '0'">
      <xsl:variable name="rtf">
        <xsl:apply-templates/>
      </xsl:variable>
      <fo:block wrap-option='no-wrap'
                white-space-collapse='false'
                linefeed-treatment="preserve"
                xsl:use-attribute-sets="monospace.verbatim.properties"
		text-align="left">
        <xsl:call-template name="number.rtf.lines">
          <xsl:with-param name="rtf" select="$rtf"/>
        </xsl:call-template>
      </fo:block>
    </xsl:when>
    <xsl:otherwise>
      <fo:block wrap-option='no-wrap'
                white-space-collapse='false'
                linefeed-treatment="preserve"
                xsl:use-attribute-sets="monospace.verbatim.properties"
		text-align="left">
        <xsl:apply-templates/>
      </fo:block>
    </xsl:otherwise>
  </xsl:choose>
</xsl:template>


Jeff Beal
Ansys, Inc.
(724)514-3150
jeff.beal@ansys.com

-----Original Message-----
From: vnhu38f93 [mailto:vnhu38f93@subdimension.com]
Sent: Friday, July 26, 2002 9:35 AM
To: docbook-apps@lists.oasis-open.org
Subject: Re: DOCBOOK-APPS: Messy FOP

Ahh, that hit the proverbial spot!, thanks.

p.s:
  sorry about this email if it looks bad or anything
  my outgoing mail server is down for some reason...
  so I am having to used some web-based thing instead.

---------------IN REPLY TO--------------------
Hi, this is wonderfull isn't it. You should set the
parameter
alignment="start"  (default is justify), else FOP tries to
justify
everything (including programlisting). You should set this
in your
parameter file.

Hope this helps for you.

Harm Kok

Diderot Track

---------------------------------------
vnhu38f93 wrote:

> Check the attachment, I know the guidelines say no attach
but the
> reason stated is for virus', this is a png image and hence
cannot be a
> virus since it is not executable. Has anyone experienced
this kind of
> mess using FOP 0.20.4. The messy area in question is meant
to be a
> programlisting.
>
_____________________________________________________________________
// free anonymous email || forums \\ subZINE || anonymous browsing
            subDIMENSION -- http://www.subdimension.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]