← Prev in month ← Prev in thread

Tables stop flowing with text

From
Watkins, Peter <>
Date
2008-10-20T21:20:51+00:00
ID
Thread
Tables stop flowing with text
I'm using dblatex 
and pdflatex to make PDFs from a docbook file.The problem I'm running into is 
that if I put many small tables on a page, eventually the tables will separate 
from the paragraphs they're in and they'll end up on one page with the paragraph 
text on another.

 

Here's my docbook 
file:

 

<?xml 
version="1.0" encoding="UTF-8" ?>
<!DOCTYPE book PUBLIC "-//OASIS//DTD 
DocBook XML V4.4//EN" 
"/usr/share/sgml/docbook/xml-dtd-4.3-1.0-25/docbookx.dtd">

 

<book>

 

<chapter>
<title>Introduction</title>
<para>
Here 
is a paragraph of text.

 

<table><title>Sample</title><tgroup 
cols='2'><colspec colname='c1'/><colspec 
colname='c2'/>
<thead><row><entry>Column 
1</entry><entry>Column 
2</entry></row></thead>
<tbody>
<row>
  
<entry>data 1</entry>
  <entry>data 
2</entry>
</row>
</tbody></tgroup></table>
</para>
<para>
Here 
is a paragraph of text.

 

<table><title>Sample</title><tgroup 
cols='2'><colspec colname='c1'/><colspec 
colname='c2'/>
<thead><row><entry>Column 
1</entry><entry>Column 
2</entry></row></thead>
<tbody>
<row>
  
<entry>data 1</entry>
  <entry>data 
2</entry>
</row>
</tbody></tgroup></table>
</para>

 

<para>
Here 
is a paragraph of text.

 

<table><title>Sample</title><tgroup 
cols='2'><colspec colname='c1'/><colspec 
colname='c2'/>
<thead><row><entry>Column 
1</entry><entry>Column 
2</entry></row></thead>
<tbody>
<row>
  
<entry>data 1</entry>
  <entry>data 
2</entry>
</row>
</tbody></tgroup></table>
</para>

 

<para>
Here 
is a paragraph of text.

 

<table><title>Sample</title><tgroup 
cols='2'><colspec colname='c1'/><colspec 
colname='c2'/>
<thead><row><entry>Column 
1</entry><entry>Column 
2</entry></row></thead>
<tbody>
<row>
  
<entry>data 1</entry>
  <entry>data 
2</entry>
</row>
</tbody></tgroup></table>
</para>

 

<para>
Here 
is a paragraph of text.

 

<table><title>Sample</title><tgroup 
cols='2'><colspec colname='c1'/><colspec 
colname='c2'/>
<thead><row><entry>Column 
1</entry><entry>Column 
2</entry></row></thead>
<tbody>
<row>
  
<entry>data 1</entry>
  <entry>data 
2</entry>
</row>
</tbody></tgroup></table>
</para>

 

<para>
Here 
is a paragraph of text.

 

<table><title>Sample</title><tgroup 
cols='2'><colspec colname='c1'/><colspec 
colname='c2'/>
<thead><row><entry>Column 
1</entry><entry>Column 
2</entry></row></thead>
<tbody>
<row>
  
<entry>data 1</entry>
  <entry>data 
2</entry>
</row>
</tbody></tgroup></table>
</para>

 

<para>
Here 
is a paragraph of text.

 

<table><title>Sample</title><tgroup 
cols='2'><colspec colname='c1'/><colspec 
colname='c2'/>
<thead><row><entry>Column 
1</entry><entry>Column 
2</entry></row></thead>
<tbody>
<row>
  
<entry>data 1</entry>
  <entry>data 
2</entry>
</row>
</tbody></tgroup></table>
</para>

 

 

 

</chapter>

 

</book>

 

 

This results in one 
page with three tables each with a line above that says, "This is a paragraph of 
text." Then there are four lines right on top of each other that say, "This is a 
paragraph of text." On the next page are four tables without any paragraph text 
above them. How do I get the paragraph text to stay with the tables in all 
cases, and why does the behavior of docbook change after three 
tables?

 

Peter
← Prev in month ← Prev in thread