ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Table Column Width
@ 2011-06-18  5:33 Kip Warner
  2011-06-18  7:12 ` Pontus Lurcock
  2011-06-18  9:27 ` Hans Hagen
  0 siblings, 2 replies; 5+ messages in thread
From: Kip Warner @ 2011-06-18  5:33 UTC (permalink / raw)
  To: ntg-context


[-- Attachment #1.1: Type: text/plain, Size: 525 bytes --]

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

[-- Attachment #1.2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

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

* Re: Table Column Width
  2011-06-18  5:33 Table Column Width Kip Warner
@ 2011-06-18  7:12 ` Pontus Lurcock
  2011-06-18 23:24   ` Kip Warner
  2011-06-18  9:27 ` Hans Hagen
  1 sibling, 1 reply; 5+ messages in thread
From: Pontus Lurcock @ 2011-06-18  7:12 UTC (permalink / raw)
  To: ntg-context

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
___________________________________________________________________________________
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
___________________________________________________________________________________

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

* Re: Table Column Width
  2011-06-18  5:33 Table Column Width Kip Warner
  2011-06-18  7:12 ` Pontus Lurcock
@ 2011-06-18  9:27 ` Hans Hagen
  2011-06-18 23:45   ` Kip Warner
  1 sibling, 1 reply; 5+ messages in thread
From: Hans Hagen @ 2011-06-18  9:27 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Kip Warner

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
-----------------------------------------------------------------
___________________________________________________________________________________
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
___________________________________________________________________________________


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

* Re: Table Column Width
  2011-06-18  7:12 ` Pontus Lurcock
@ 2011-06-18 23:24   ` Kip Warner
  0 siblings, 0 replies; 5+ messages in thread
From: Kip Warner @ 2011-06-18 23:24 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 246 bytes --]

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

[-- Attachment #1.2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

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

* Re: Table Column Width
  2011-06-18  9:27 ` Hans Hagen
@ 2011-06-18 23:45   ` Kip Warner
  0 siblings, 0 replies; 5+ messages in thread
From: Kip Warner @ 2011-06-18 23:45 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Hans Hagen


[-- Attachment #1.1: Type: text/plain, Size: 253 bytes --]

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

[-- Attachment #1.2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

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

end of thread, other threads:[~2011-06-18 23:45 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-06-18  5:33 Table Column Width Kip Warner
2011-06-18  7:12 ` Pontus Lurcock
2011-06-18 23:24   ` Kip Warner
2011-06-18  9:27 ` Hans Hagen
2011-06-18 23:45   ` Kip Warner

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).