ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Line break in a cell of a table
@ 2013-04-17  5:55 "H. Özoguz"
  2013-04-17  6:03 ` Aditya Mahajan
  0 siblings, 1 reply; 2+ messages in thread
From: "H. Özoguz" @ 2013-04-17  5:55 UTC (permalink / raw)
  To: ntg-context


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

Good morning together,

I want this:


\starttext

\starttable[|l|l|]

\HL

\NC First Entry \\ (Explanation) \VL Second Entry \AR

\HL

\stoptable

\stoptext


That is, line break after "First Entry", but without leaving the first 
cell (first row, first column). The code does not work, how to?


Thanks.
Huseyin



[-- Attachment #1.2: Type: text/html, Size: 2137 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] 2+ messages in thread

* Re: Line break in a cell of a table
  2013-04-17  5:55 Line break in a cell of a table "H. Özoguz"
@ 2013-04-17  6:03 ` Aditya Mahajan
  0 siblings, 0 replies; 2+ messages in thread
From: Aditya Mahajan @ 2013-04-17  6:03 UTC (permalink / raw)
  To: mailing list for ConTeXt users

[-- Attachment #1: Type: TEXT/PLAIN, Size: 787 bytes --]

On Wed, 17 Apr 2013, "H. Özoguz" wrote:

> Good morning together,
>
> I want this:
>
>
> \starttext
>
> \starttable[|l|l|]
>
> \HL
>
> \NC First Entry \\ (Explanation) \VL Second Entry \AR

(Unrelated, but you are using a wrong syntax. Each row should be:

\NC .... \NC ... \NC \AR)

> \HL
>
> \stoptable
>
> \stoptext
>
>
> That is, line break after "First Entry", but without leaving the first cell 
> (first row, first column). The code does not work, how to?

Use p column instead of l column

\starttable[|p|l|]
...
\stoptable

BTW, I think that it is better to use Natural Table or tabulate instead of 
table environment. For example, you can write:

\startTABLE
\NC First Entry \\ (Explanation) \NC Second Entry \NC \NR
\stopTABLE

Aditya

[-- 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] 2+ messages in thread

end of thread, other threads:[~2013-04-17  6:03 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-04-17  5:55 Line break in a cell of a table "H. Özoguz"
2013-04-17  6:03 ` Aditya Mahajan

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