Next in thread → Next in month →

Re: [docbook-apps] Margin release

From
<>
Date
2008-09-08T18:33:17+00:00
ID
Thread
Re: [docbook-apps] Margin release
Thanks David,

That worked for me!

 

Dean

 

In a message dated 9/8/2008 8:28:29 A.M. Pacific Daylight Time, 
 writes:

  
Here's what I do to 
  deal with the occasional wide block element (table, figure, whatever). I have 
  this in my customization layer:

  
 

  
  <xsl:template 
  match="*[./processing-instruction('bjfo') = 
  'wide-block-element']">
    <fo:block 
  margin-left="-.75in" 
  margin-right="-.75in">
      
  <xsl:apply-imports/>
    </fo:block>
  
  </xsl:template>

  
That opens up the left 
  and right margins by three quarters of an inch. Then I can use the following 
  processing instruction (It's "bjfo" because our company was named "BroadJump" 
  when I added it to the xsls). You 
  could instead match="*[@role='release-margins']" if you prefer to use 
  <table role="release-margins"> in your docbook.

  
 

  
<table>

  
<?bjfo 
  wide-block-element?>

  
...

  
 

  
AFAIK, the stylesheets 
  don't support landscaped tables. It's tricky to implement due to some aspects 
  of xsl-fo and there are limits to what you can do. Maybe someone else can help 
  you there.

  
 

  
David

  
 

  
    

    
    From:  
    [mailto:] 
Sent: Thursday, September 04, 2008 
    7:03 PM
To: 
Subject: 
    [docbook-apps] Margin release

    

    
Hello all!

    
 

    
I need to be able to release/change the margin settings for a table to 
    use the whole useable page minus header/footer. The pgwide=1 attribute does 
    nothing. Also I am using "orient=land" to make the table landscape.

    
 

    
Is there a way to do something like this?

    
 

    
<table orient="land" role="release-margins">

    
...

    
</table>

    
 

    
 

    
If I change margins it changes it for everything. Can I do this short 
    of defining a new pagemaster?

    
 

    
 

    
Thanks for the help!

    
Dean Nelson

    

    
    It's only a deal if it's where you want to go. Find your travel deal 
    here.

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