Hey list, I have a table with four columns. The first three are fine as fixed width and fairly narrow, but I need the fourth one to be larger to accommodate text that can wrap for two or more lines. How would I go about doing this? I'm guessing something needs to said in the \starttable[|c|c|c|c|] last field, but I can't figure out what from the documentation. The syntax is a little elusive. Thanks, -- Kip Warner -- Software Engineer OpenPGP encrypted/signed mail preferred http://www.thevertigo.com
On Fri 17 Jun 2011, Kip Warner wrote:
I have a table with four columns. The first three are fine as fixed width and fairly narrow, but I need the fourth one to be larger to accommodate text that can wrap for two or more lines.
How would I go about doing this? I'm guessing something needs to said in the \starttable[|c|c|c|c|] last field, but I can't figure out what from the documentation. The syntax is a little elusive.
I'm afraid I can't help directly with the Table module you're using, but you may want to consider using one of ConTeXt's newer table modules: http://wiki.contextgarden.net/Tables_Overview lists the Table module as ‘deprecated’. I tend to use ‘natural tables’ ( http://wiki.contextgarden.net/TABLE ) for most things -- they're full-featured and well documented. There is also Tabulate -- fewer features and less documentation, but easier for quick jobs: \starttext \starttabulate[|l|p(5cm)|] \NC short \NC \raggedright A rather lengthier piece of text which will require more than one line when typeset within a narrow table column \NC\NR \stoptabulate \stoptext Hope this helps, Pont
On Sat, 2011-06-18 at 19:12 +1200, Pontus Lurcock wrote:
Hope this helps,
Pont
Thanks Pontus. Natural tables did the trick. -- Kip Warner -- Software Engineer OpenPGP encrypted/signed mail preferred http://www.thevertigo.com
On 18-6-2011 7:33, Kip Warner wrote:
Hey list,
I have a table with four columns. The first three are fine as fixed width and fairly narrow, but I need the fourth one to be larger to accommodate text that can wrap for two or more lines.
How would I go about doing this? I'm guessing something needs to said in the \starttable[|c|c|c|c|] last field, but I can't figure out what from the documentation. The syntax is a little elusive.
replace c by p(4cm) ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
On Sat, 2011-06-18 at 11:27 +0200, Hans Hagen wrote:
replace c by p(4cm)
Thanks Hans. I decided to migrate to the natural tables instead. -- Kip Warner -- Software Engineer OpenPGP encrypted/signed mail preferred http://www.thevertigo.com
participants (3)
-
Hans Hagen
-
Kip Warner
-
Pontus Lurcock