Next in thread → Next in month →

Re: [docbook-apps] Vertical alignment in header with graphic

From
Bob Stayton <>
Date
2008-09-15T17:53:05+00:00
ID
075001c9175c$167e8430$6a00a8c0@pazu
Thread
Re: [docbook-apps] Vertical alignment in header with graphic
Hi Dean,

This would require copying and customizing the template named 
header.table.  The vertical alignment property (display-align) is hardcoded 
in there as "before".  I think the idea was to make a consistent top margin 
space above the header.  But with a rule turned on, it probably makes more 
sense to align to the rule underneath.

 

Bob Stayton
Sagehill Enterprises


 

 

  
----- Original Message ----- 

  
From: 
   

  
To:  
  

  
Sent: Friday, September 12, 2008 10:24 
  AM

  
Subject: [docbook-apps] Vertical 
  alignment in header with graphic

  

  
Hello all,

  
 

  
I have a header that I have added a graphic to, as per Bob's instructions 
  in his book, but the associated text is not vertically aligned as I would like 
  - bottom aligned on the line (see attached image).

  
 

  
I don't see anywhere in the "header.content" template where I can do 
  this. It appears that the text is top aligned in the cell and with a larger 
  image it has pushed it farther from the bottom line.

  
 

  
Is there a way to align this text to the bottom line?

  
 

  
Here is my section in the header.content template:

  
 

  
                
  <!-- Odd pages 
  -->
                
  <xsl:when test="$sequence = 'odd' and $position = 
  'left'">
                    
  <xsl:choose>
                        
  <xsl:when test="$met.header.image = 
  'YES'">
                            
  <fo:external-graphic 
  content-height="{$met.header.image.height}">
                                
  <xsl:attribute 
  name="src">
                                    
  <xsl:call-template 
  name="fo-external-image">
                                        
  <xsl:with-param 
  name="filename"
                                            
  select="$met.header.image.filename"/>
                                    
  </xsl:call-template>
                                
  </xsl:attribute>
                            
  </fo:external-graphic>
                        
  </xsl:when>
                        
  <xsl:otherwise>
                            
  <xsl:value-of 
  select="ancestor-or-self::book/title"/>
                        
  </xsl:otherwise>
                    
  </xsl:choose>
                
  </xsl:when>
                
  <xsl:when test="$sequence = 'odd' and $position = 'center'"> 
  </xsl:when>
                
  <xsl:when test="$sequence = 'odd' and $position = 
  'right'">
                    
  <xsl:apply-templates select="." 
  mode="object.title.markup"/>
                
  </xsl:when>

  
 

  
 

  
Thanks,

  
Dean Nelson

  
 

  

  
  Psssst...Have you heard the news? There's a new fashion blog, plus the latest fall trends and hair 
  styles at StyleList.com.

  

  

  

  

  
  

  

  

---------------------------------------------------------------------
To 
  unsubscribe, e-mail: 
For 
  additional commands, e-mail: 
Next in thread → Next in month →