Hi, three questions: - How can I control horizontal spacing of columns in natural tables? - What about vertical spacing? - How can I insert material after/before each cell, something like \setuptable[row][first][before=bla bla] ? Thanks, -- Eckhart
On Wed, 13 Apr 2005 at 10:09:11+0200, Eckhart Guthöhrlein wrote:
- How can I control horizontal spacing of columns in natural tables? - What about vertical spacing? - How can I insert material after/before each cell, something like \setuptable[row][first][before=bla bla] ?
Does anybody know an answer to one of these questions? I can't get it done. If I have missed something in the docs, please point it out to me. I have an additional question: Is there a way to do something with an entry in natural tables, analogously to the h (hook) column specifier of tabulate? I really need to get along with this table stuff, so once again thanks for any help. -- Eckhart
On Wed, Apr 13, 2005 at 10:09:11AM +0200, Eckhart Guthöhrlein wrote:
Hi,
three questions: - How can I control horizontal spacing of columns in natural tables? - What about vertical spacing? - How can I insert material after/before each cell, something like \setuptable[row][first][before=bla bla] ?
Thanks,
Hi Eckhart, I think you might find some of the answers here: http://getfo.sourceforge.net/context_xml/page5.html#id2258730 setupTABLE[r][1][heigth=24pt] setupTABLE[c][odd][width=12pt] % the page gives more examples Sorry if this is not what you are looking for. Paul -- ************************ *Paul Tremblay * *phthenry@iglou.com * ************************
On Tue, 19 Apr 2005 at 10:04:09-0400, Paul Tremblay wrote:
On Wed, Apr 13, 2005 at 10:09:11AM +0200, Eckhart Guthöhrlein wrote:
Hi,
three questions: - How can I control horizontal spacing of columns in natural tables? - What about vertical spacing? - How can I insert material after/before each cell, something like \setuptable[row][first][before=bla bla] ?
Thanks,
Hi Eckhart,
I think you might find some of the answers here:
http://getfo.sourceforge.net/context_xml/page5.html#id2258730
Nice overview, Paul. I had a quick glance, but I'm afraid the questions above are not addressed. Correct me if I'm wrong.
setupTABLE[r][1][heigth=24pt] setupTABLE[c][odd][width=12pt] % the page gives more examples
Sorry if this is not what you are looking for.
Well, not exactly. By default, a column has the width of its widest entry. Using width=5cm, I can only define the absolute width of a column. But what I want is to increase the separation of adjectant columns. Whether this is achieved by adding space between columns or by setting their width to a certain amount wider than their natural width doesn't matter to me. You have already experienced the absence of a desirable feature yourself, but let me point out once again that this cannot be achieved by setting the rulethickness of the cell frame, since it is not possible to change left/right thickness from the top/bottom one, and frames are invisible but still take space if you deactivate them via e.g. topframe=off. Thanks for your page - it's surely of help, especially for newcomers, since tables (and the many different possibilities to produce them) are cumbersome in context. Greetings, -- Eckhart
On Tue, Apr 19, 2005 at 05:15:04PM +0200, Eckhart Guthöhrlein wrote:
From: Eckhart Guthöhrlein
To: mailing list for ConTeXt users Date: Tue, 19 Apr 2005 17:15:04 +0200 Subject: Re: [NTG-context] TABLE: spacing, before/after User-Agent: Mutt/1.4.1i On Tue, 19 Apr 2005 at 10:04:09-0400, Paul Tremblay wrote:
On Wed, Apr 13, 2005 at 10:09:11AM +0200, Eckhart Guthöhrlein wrote:
Hi,
three questions: - How can I control horizontal spacing of columns in natural tables? - What about vertical spacing? - How can I insert material after/before each cell, something like \setuptable[row][first][before=bla bla] ?
Thanks,
Hi Eckhart,
I think you might find some of the answers here:
http://getfo.sourceforge.net/context_xml/page5.html#id2258730
Nice overview, Paul. I had a quick glance, but I'm afraid the questions above are not addressed. Correct me if I'm wrong.
setupTABLE[r][1][heigth=24pt] setupTABLE[c][odd][width=12pt] % the page gives more examples
Sorry if this is not what you are looking for.
Well, not exactly. By default, a column has the width of its widest entry. Using width=5cm, I can only define the absolute width of a column. But what I want is to increase the separation of adjectant columns. Whether this is achieved by adding space between columns or by setting their width to a certain amount wider than their natural width doesn't matter to me. You have already experienced the absence of a desirable feature yourself, but let me point out once again that this cannot be achieved by setting the rulethickness of the cell frame, since it is not possible to change left/right thickness from the top/bottom one, and frames are invisible but still take space if you deactivate them via e.g. topframe=off. Thanks for your page - it's surely of help, especially for newcomers, since tables (and the many different possibilities to produce them) are cumbersome in context.
Greetings,
Yes, I agree with the limitations of the TABLE module. Sorry I couldn't provide any better answer. When I get a chance, I'll put something on the page stating that a limitation of TABLE is the inability to set the space between columns. (Is it possible to set the space between columns using the more standard table module? I realize I didn't document this at all.) Paul -- ************************ *Paul Tremblay * *phthenry@iglou.com * ************************
On Tue, 19 Apr 2005 at 12:19:28-0400, Paul Tremblay wrote:
Yes, I agree with the limitations of the TABLE module. Sorry I couldn't provide any better answer.
When I get a chance, I'll put something on the page stating that a limitation of TABLE is the inability to set the space between columns.
Well, maybe it will be possible for Hans to include support for the missing features in a future release. To sum it up once again, what I am missing: - control over column and row spacing - material before/after a cell, e.g. \setupTABLE[row][first][before=bla] - command hooks like \setupTABLE[1][3][hook=\dowithentry]
(Is it possible to set the space between columns using the more standard table module? I realize I didn't document this at all.)
I have never tried it, but I think so. At the beginning of core-tbl, column modifiers i, j and k are claimed to do this. Since tabulate uses the same column specifiers as table, they should work with both. Untested ;-) -- Eckhart
On Tue, Apr 19, 2005 at 08:56:58PM +0200, Eckhart Guthöhrlein wrote:
On Tue, 19 Apr 2005 at 12:19:28-0400, Paul Tremblay wrote:
Yes, I agree with the limitations of the TABLE module. Sorry I couldn't provide any better answer.
When I get a chance, I'll put something on the page stating that a limitation of TABLE is the inability to set the space between columns.
Well, maybe it will be possible for Hans to include support for the missing features in a future release. To sum it up once again, what I am missing: - control over column and row spacing - material before/after a cell, e.g. \setupTABLE[row][first][before=bla] - command hooks like \setupTABLE[1][3][hook=\dowithentry]
I'm not sure what hooks are! I assume the before could be something like \blankspace?
(Is it possible to set the space between columns using the more standard table module? I realize I didn't document this at all.)
I have never tried it, but I think so. At the beginning of core-tbl, column modifiers i, j and k are claimed to do this. Since tabulate uses the same column specifiers as table, they should work with both. Untested ;-)
I need to start thinking before I type! I have this in my tutorial. I guess I assumed you get the same result with TABLE by simple making a column very wide (width=25cm). Paul -- ************************ *Paul Tremblay * *phthenry@iglou.com * ************************
On Tue, 19 Apr 2005 at 15:43:57-0400, Paul Tremblay wrote:
Well, maybe it will be possible for Hans to include support for the missing features in a future release. To sum it up once again, what I am missing: - control over column and row spacing - material before/after a cell, e.g. \setupTABLE[row][first][before=bla] - command hooks like \setupTABLE[1][3][hook=\dowithentry]
I'm not sure what hooks are! I assume the before could be something like \blankspace?
Hook means that the table cell contents are passed to the specified command as an argument. You could use \uppercased for example to capitalize an entry. And indeed, I was thinking of controlling horizontal spacing by saying something like before=\hskip1em. I really do hope that natural tables will be further developed, since these are the only things I can see that are available only using the older mechanisms. And natural tables can do so many additional cool things that I don't want to use anything else. -- Eckhart
participants (2)
-
Eckhart Guthöhrlein
-
Paul Tremblay