List Info

Thread: how do you show header content on same line (instead of stacked)?




how do you show header content on same line (instead of stacked)?
user name
2007-05-18 12:19:12
I've been trying to figure this out too. In PDF output, how
do you
combine header elements (for example, text and graphics)
without
stacking the text? I want the header content to appear on
the same line,
not stacked on top of one another.

I'm using DocBook XSL 1.7.2.0 and FOP 0.93.

Regards,
Jeff Powanda

 
-----Original Message-----
From: pangqiu [mailto:zmd_zhangyahoo.com] 
Sent: Thursday, May 17, 2007 10:11 PM
To: fop-usersxmlgraphics.apache.org
Subject: fo:retrieve-marker could not show with other text
in one line


I try to input following block in head to show chapter with
page number
<fo:block>
    <fo:retrieve-marker
retrieve-class-name="numberchapter"/>
-<fo:page-number/>
</fo:block>

the result I wanted should be show in one line like this :
2-1, 2-2

but the real result is show two line like this 
2
-1

I have check fo:retrieve-marker is inline object. I also try
to put this
in
fo:inline ,same problem.
I don't if it is a bug or I write in wrong way.

I need help. Thanks 

-- 
View this message in context:
http://www.nabble.com/fo%3Aretrieve-mark
er-could-not-show-with-other-tex
t-in-one-line-tf3775792.html#a10676624
Sent from the FOP - Users mailing list archive at
Nabble.com.


------------------------------------------------------------
---------
To unsubscribe, e-mail: fop-users-unsubscribexmlgraphics.apache.org
For additional commands, e-mail: fop-users-helpxmlgraphics.apache.org


------------------------------------------------------------
---------
To unsubscribe, e-mail: docbook-apps-unsubscribelists.oasis-open.org
For additional commands, e-mail: docbook-apps-helplists.oasis-open.org


how do you show header content on same li
user name
2007-05-18 13:32:24
El Viernes, 18 de Mayo de 2007 19:19, Jeff Powanda
escribió:
> I've been trying to figure this out too. In PDF output,
how do you
> combine header elements (for example, text and
graphics) without
> stacking the text? I want the header content to appear
on the same line,
> not stacked on top of one another.
>
> I'm using DocBook XSL 1.7.2.0 and FOP 0.93.

I added a graphic on the LFS customization layout and it
just work. The 
graphic in on the same line than the text. Copied the LFS
customization for 
both header.table and header.content with a
<fo:external-graphic> element 
added (the image is so small, 10pt, due that in LFS we have
a 12pt header 
height area)


   <!-- header.table:
          Re-made template to not generate a fo:table in the
header,
          allowing a more simple header.content
customization. -->
    <!-- The original template is in
/fo/pagesetup.xsl -->
  <xsl:template name="header.table">
    <xsl:param name="sequence"
select="''"/>
    <xsl:param name="gentext-key"
select="''"/>
    <xsl:choose>
      <xsl:when test="$gentext-key = 'book' or
$sequence = 'blank'"/>
      <xsl:otherwise>
        <xsl:call-template
name="header.content">
          <xsl:with-param name="sequence"
select="$sequence"/>
        </xsl:call-template>
      </xsl:otherwise>
    </xsl:choose>
  </xsl:template>

    <!-- header.content
       Re-made template to show the book title and version
on all pages. -->
    <!-- The original template is in
/fo/pagesetup.xsl -->
  <xsl:template name="header.content">
    <xsl:param name="sequence"
select="''"/>
    <fo:block>
      <xsl:attribute name="text-align">
        <xsl:choose>
          <xsl:when test="$sequence = 'first' or
                                    $sequence =
'odd'">right</xsl:when>
          <xsl:otherwise>left</xsl:otherwise>
        </xsl:choose>
      </xsl:attribute>
      <fo:external-graphic width="auto"
height="auto"
                           content-width="10pt"
                          
src="url(images/note.png)"/>
      <xsl:text> - </xsl:text>
      <xsl:value-of
select="/book/bookinfo/title"/>
      <xsl:text> - </xsl:text>
      <xsl:value-of
select="/book/bookinfo/subtitle"/>
    </fo:block>
  </xsl:template>


-- 
Manuel Canales Esparcia
Usuario de LFS nº2886:       http://www.linuxfroms
cratch.org
LFS en castellano: http://www.escomp
oslinux.org/lfs-es http://www.lfs-es.info
TLDP-ES:                           http://es.tldp.org

------------------------------------------------------------
---------
To unsubscribe, e-mail: docbook-apps-unsubscribelists.oasis-open.org
For additional commands, e-mail: docbook-apps-helplists.oasis-open.org


[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )