natural tables to extreme tables
Hi, for my experimenting with tables: is there a way to set up individual columns in xtables? Maybe I'm thick tonight, but I couldn't find anything in the manual or the source. If I have this setup \setupTABLE [frame=on,split=repeat] \setupTABLE [column] [1] [width=0.7cm,align=left] \setupTABLE [column] [2] [width=0.5cm,align=left] \setupTABLE [column] [3] [width=6cm,align={normal,verytolerant,stretch}] \setupTABLE [column] [4] [width=8cm,align={normal,verytolerant,stretch}] \setupTABLE [column] [5] [width=1cm,align={normal,verytolerant,stretch}] how would this translate into \setupxtable? Thomas
On 2/28/2018 10:28 PM, Thomas A. Schmitz wrote:
Hi,
for my experimenting with tables: is there a way to set up individual columns in xtables? Maybe I'm thick tonight, but I couldn't find anything in the manual or the source. If I have this setup
\setupTABLE [frame=on,split=repeat] \setupTABLE [column] [1] [width=0.7cm,align=left] \setupTABLE [column] [2] [width=0.5cm,align=left] \setupTABLE [column] [3] [width=6cm,align={normal,verytolerant,stretch}] \setupTABLE [column] [4] [width=8cm,align={normal,verytolerant,stretch}] \setupTABLE [column] [5] [width=1cm,align={normal,verytolerant,stretch}]
how would this translate into \setupxtable?
page 26 of the xtable manual ... you define tagged settings and can use these tag for cells and rows ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl -----------------------------------------------------------------
On 02/28/2018 11:35 PM, Hans Hagen wrote:
page 26 of the xtable manual ... you define tagged settings and can use these tag for cells and rows
OK Hans, I see that, thanks a lot! But it still means I have to tag the cells/rows? As always, I'm playing with xml and Lua and am trying to write some universal code that allows me to try out different table mechanisms. Just to explain (don't spend time on this, I'm just playing around): I collect my table settings like this: \startsetups section_table \setupframedtablecolumn [1] [width=0.7cm,align=left] \setupTABLE [column] [1] [width=0.7cm,align=left] \stopsetups In my Lua file, I start tables like this: starttable() startrow() startcell() etc. and can switch from one mechanism to another by having these aliases: starttable = context.startframedtable starttable = context.bTABLE starttable = context.startembeddedxtable and commenting out the mechanisms that I don't need. But it looks like the xtable needs additional arguments to work... Thanks, and all best Thomas
participants (2)
-
Hans Hagen
-
Thomas A. Schmitz