OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: Sidebar height


Dear all,

I use XEP. My book is double-sided. 

I use sidebar: 
   <?dbfo sidebar-width="1.2in"?><?dbfo float-type="outside"?>

For example: “Motivation”, “Activity” and “Result” are the Text in sidebars. I would like to have the following layout in the whole book: 

Paragraph 1: about motivation.    	Motivation 

Paragraph 2: about motivation.

Paragraph 3: about motivation


Paragraph 4: about activity.		 Activity 

Paragraph 5: about activity.


Paragraph 6: about Result.	       Result 

Paragraph 7: about Result.


The Problem is: Every sidebar should have different height. I have to adjust every sidebar height to the height of the paragraphs. I do it with <literallayout> </literallayout>. If the sidebar heights are not well adjusted, then the “paragraph Texts” appear in the sidebar region and the layout is no more pretty. 

If the book has 200 pages, then I have to write many <literallayout> </literallayout>. 

I would like the following very much: the height of the sidebar can be adjusted automatically to the height of the Paragraphs. How can I manage this?

Help will be very much appreciated. Thanks!!

Lily



As Test you could use the following code: 

<?xml version="1.0" encoding="UTF-8"?>
<book version="5.0" xml:lang="de" xmlns="http://docbook.org/ns/docbook"; >
       
    <title>The Big Book Title</title>    
    
    <chapter>                      
        <title>  Chapter 1 Title</title>
        <sidebar>
            <?dbfo sidebar-width="1.2in"?><?dbfo float-type="outside"?>
            <para>
                first sidebar text. It begins with the first paragraph
            </para>           
        </sidebar>
        
        <para>Paragraph one. Here is the main text. They should positioned beside the first sidebar.
            They should not intruded in the sidebar region.              
        </para>
        <para>Paragraph two. Here is the another main text. These main text should not intruded in the sidebar region.  
            These main text should not intruded in the sidebar region.  
            But they did.
        </para>                    
        <para>Paragraph three. One main text again. They should not indrude in the sidebar region. 
            But they intrude in the sidebar region. It is not good.
        </para>                    
                    
                    
        <sidebar>
            <?dbfo sidebar-width="1.2in"?><?dbfo float-type="outside"?>
            <para>
                second sidebar text. It should apear when the 4th paragraph begins.
            </para>
            <literallayout>              
            </literallayout>
        </sidebar>
        
        <para>Paragraph 4. Here is the 4th paragraph. Here is the main text. They should positioned beside the second sidebar.  Here is the main text. They should positioned beside the second sidebar. 
        </para>
        <para>Paragraph 5. Here is another main text. These main text do not intrude in the sidebar region because the
            TAG literallayout is used in the second sidebar.  
        </para>         
        <para>Paragraph 6. Here is another main text again. This is a big paragraph. A big paragraph. A big paragraph. 
            A big paragraph. A big paragraph. A big paragraph. A big paragraph. 
            They intrude in sidebar region. The height of the second sidebar is not high enough. Not high enough. 
            The height of the second sidebar is not high enough. Not high enough. They intrude in sidebar region. 
            The height of the second sidebar is not high enough. Not high enough. 
            The height of the second sidebar is not high enough. Not high enough.
        </para>         
        
        <sidebar>
            <?dbfo sidebar-width="1.2in"?><?dbfo float-type="outside"?>
            <para>
                third sidebar text. it begins when the 7th paragraph begins.
            </para>            
        </sidebar>
        
        <para>Paragraph 7. Here is the main text. They should positioned beside the second sidebar. 
            Here is the main text. They should positioned beside the second sidebar. 
        </para>
        </chapter>
    </book>


-- 
Psssst! Schon vom neuen GMX MultiMessenger gehört? Der kann`s mit allen: http://www.gmx.net/de/go/multimessenger


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]