Hello,

On Tue, 04 Sep 2012 05:02:01 +0200, Rogers, Michael K <mrog...@emory.edu> wrote:

That's what I was afraid.  It's just I had the same problem last week, and a 
deadline made me settle for the ad hoc approach.

I was trying to solve the same situation several week ago.

Finally, I measured what the "fit" option of the first column mean in real 
units (cm) and I altered widths of remaining columns to get \textwidth in total, which is 
ugly and non-systematic solution.

So it seems that there is a task for natural TABLEs:

"
Suppose one or more columns have "fit" width, so the width is computed at 
run-time.
Suppose the total width of the table is defined, too.
How to specify width of other columns to have a specified ratio?
"

E.g.:

col1.width="fit" -> will be a concrete value at run-time, 'col1.width.real'
col2.width="fit" -> will be a concrete value at run-time, 'col2.width.real'
TABLE.tot.width=\textwidth
col3.width."weight"=1
col4.width."weight"=2

should give

col3.width =
  (TABLE.tot.width - col1.width.real - col2.width.real) / (col3.width."weight" + 
col4.width."weight") * col3.width."weight"

col4.width =
  (TABLE.tot.width - col1.width.real - col2.width.real) / (col3.width."weight" + 
col4.width."weight") * col4.width."weight"

Best regards,

Lukas


--
Ing. Lukáš Procházka [mailto:l...@pontex.cz]
Pontex s. r. o.      [mailto:pon...@pontex.cz] [http://www.pontex.cz]
Bezová 1658
147 14 Praha 4

Tel: +420 244 062 238
Fax: +420 244 461 038

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to