ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* natural tables to extreme tables
@ 2018-02-28 21:28 Thomas A. Schmitz
  2018-02-28 22:35 ` Hans Hagen
  0 siblings, 1 reply; 3+ messages in thread
From: Thomas A. Schmitz @ 2018-02-28 21:28 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: natural tables to extreme tables
  2018-02-28 21:28 natural tables to extreme tables Thomas A. Schmitz
@ 2018-02-28 22:35 ` Hans Hagen
  2018-02-28 23:02   ` Thomas A. Schmitz
  0 siblings, 1 reply; 3+ messages in thread
From: Hans Hagen @ 2018-02-28 22:35 UTC (permalink / raw)
  To: mailing list for ConTeXt users, Thomas A. Schmitz

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
-----------------------------------------------------------------
___________________________________________________________________________________
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: natural tables to extreme tables
  2018-02-28 22:35 ` Hans Hagen
@ 2018-02-28 23:02   ` Thomas A. Schmitz
  0 siblings, 0 replies; 3+ messages in thread
From: Thomas A. Schmitz @ 2018-02-28 23:02 UTC (permalink / raw)
  To: Hans Hagen, mailing list for ConTeXt users

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
___________________________________________________________________________________
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2018-02-28 23:02 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-02-28 21:28 natural tables to extreme tables Thomas A. Schmitz
2018-02-28 22:35 ` Hans Hagen
2018-02-28 23:02   ` Thomas A. Schmitz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).