DocBook 5 customization layer - formatting columns
-
- Posts: 11
- Joined: Mon Mar 25, 2013 9:52 pm
DocBook 5 customization layer - formatting columns
Hi everyone
I am currently creating a customization layer for output to PDF and my document has to have two columns. I have created the columns, but am wondering how to control the text flow. I actually need two blocks of text to be in the left column and two in the right column. At the moment it flows naturally so that only the fourth block of text is in the right column. Can anyone advise on the best way to achieve equal columns? Perhaps putting the content in an informaltable (or each text block in a different informaltable)?
Thank you very much.
Best wishes,
Helen
I am currently creating a customization layer for output to PDF and my document has to have two columns. I have created the columns, but am wondering how to control the text flow. I actually need two blocks of text to be in the left column and two in the right column. At the moment it flows naturally so that only the fourth block of text is in the right column. Can anyone advise on the best way to achieve equal columns? Perhaps putting the content in an informaltable (or each text block in a different informaltable)?
Thank you very much.
Best wishes,
Helen
-
- Posts: 4141
- Joined: Fri Mar 28, 2003 2:12 pm
Re: DocBook 5 customization layer - formatting columns
Post by sorin_ristache »
Hi Helen,
You can do that without a customization layer. Did you try a table with no caption, no border lines displayed, two rows and two columns? It does not matter if one table cell contains just a few words and other cell contains a hundred words, the table cells will still be aligned in two rows and two columns. For example:
Maybe it looks better if the table has only one row, with two paragraphs in each cell:
Regards,
Sorin
You can do that without a customization layer. Did you try a table with no caption, no border lines displayed, two rows and two columns? It does not matter if one table cell contains just a few words and other cell contains a hundred words, the table cells will still be aligned in two rows and two columns. For example:
Code: Select all
<informaltable frame="void">
<tbody>
<tr>
<td>para1</td>
<td>para3</td>
</tr>
<tr>
<td>para2</td>
<td>para4</td>
</tr>
</tbody>
</informaltable>
Maybe it looks better if the table has only one row, with two paragraphs in each cell:
Code: Select all
<informaltable frame="void">
<tbody>
<tr>
<td>
<para>para1<para/>
<para>para2<para/>
</td>
<td>
<para>para3<para/>
<para>para4<para/>
</td>
</tr>
</tbody>
</informaltable>
Regards,
Sorin
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service