Pages: 1
Print
Author Topic: TOPLEAF: Unchecking Balance Columns setting has no effect  (Read 2536 times)
tv
Member

Posts: 7


« on: March 22, 2012, 11:57:48 AM »

I've unchecked TopLeaf's Format > Options > Balance columns setting in an effort to let TopLeaf allocate column widths proportionately instead of equally (balanced). It seems to make no difference. My five columns are identical widths with or without the check box checked.

To test, I added a CALS table using XMetaL's Table > Normal Table (1 row, 5 columns, has header).  Columns one, two, and five have one word in each cell. Columns three and four have a short paragraph each. The header text is the same word for each column.

Am I missing something basic?
Logged
gjn2066
Member

Posts: 60


WWW
« Reply #1 on: March 26, 2012, 02:55:59 AM »

I may have completely misunderstood, but you seem to be talking about allocating proportional width to table columns. The Balance columns option you refer to means to allocate roughly equal content to each text column in a double (or more) column page. This is a vertical setting which has no effect on tables. We should modify the documentation to make this clearer.

Anyway, if I've understood correctly you are asking how to make table column width proportional to the amount of material in that column. This is a feature quite deliberately excluded from TopLeaf for several reasons. Dynamic width allocation is great for web pages, where the width of the view is subject to change without notice, and page breaks are not an issue. For hard print/PDF output it's not so good, because the addition of a small amount of material to one column slightly reduces the width of the remaining columns. This in turn can have a substantial effect on page breaks and the ripples can continue for many pages. TopLeaf is aimed primarily at the "set and forget" model, where a well designed stylesheet ensures that you get good output, and small corrections can be made without having to re-proof large volumes of output.

So, what do you do in your situation? What we normally advise is to allocate proportional column widths. As well as explicit widths (eg. 15mm, 1.2in), TopLeaf also supports both percentage (20%) and proportional (2.5*) widths in both CALS and HTML modes. The * widths work as follows: once fixed and percentage widths have been allocated, remaining columns receive a proportion of the remaining space. So a width 4* column receives twice as much as a 2* column. The default is 1* (ie. all columns equal width).

The advantage of * over % is that the * values don't have to add up to 100 (or anything else). So if you want a column just a tiny bit wider you can (say) increase from 2* to 2.1* without changing anything else. You set widths using <col/> in HTML or <colspec/> in CALS. Note that * widths are non-standard in HTML tables but fully supported by TopLeaf.

There are other methods, such as defining specific named table styles with pre-allocated widths. But these require much more setup.

Hope this explanation helps. Let me know if you need any other info.

Geoff

« Last Edit: March 26, 2012, 03:05:37 AM by gjn2066 » Logged
tv
Member

Posts: 7


« Reply #2 on: July 03, 2012, 05:38:06 PM »

Thank you for the explanation. I intended to reply way back when!
Logged
Pages: 1
Print
Jump to: