ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* What is the easiest way to have multi lines in some of the cells in a table?
@ 2013-01-23  3:29 土卜皿
  2013-01-23  7:36 ` Wolfgang Schuster
  0 siblings, 1 reply; 3+ messages in thread
From: 土卜皿 @ 2013-01-23  3:29 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

hi,all
 my question as title described,Now I used the following method:

\starttext
\placetable[here][tab:multilinesinonecell]{Multi Lines in
  One Cell}
\starttable[|c|c|c|][textwidth=8.8cm]
\HL
\NC \JustLeft FIRST COL \NC  \JustCenter \bf SECOND COL \NC\SR\HL
\NC \JustLeft first line      \NC  \JustLeft  one line in cell \NC\MR
\HL
\NC \JustLeft second line \NC  \JustLeft first line in second line's 2nd
col \NC\MR
\NC                                \NC \JustLeft second line in second
line's 2nd col \NC\MR
\HL
\NC \JustLeft third line     \NC \JustLeft third line's 2nd col \NC\LR
\HL
\stoptable
\stoptext

Thanks in advance!

BEST REGARDS
PengCZ

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

* Re: What is the easiest way to have multi lines in some of the cells in a table?
  2013-01-23  3:29 What is the easiest way to have multi lines in some of the cells in a table? 土卜皿
@ 2013-01-23  7:36 ` Wolfgang Schuster
  2013-01-23  8:26   ` 土卜皿
  0 siblings, 1 reply; 3+ messages in thread
From: Wolfgang Schuster @ 2013-01-23  7:36 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 23.01.2013 um 04:29 schrieb 土卜皿 <pengcz.nwpu@gmail.com>:

> hi,all 
>  my question as title described,Now I used the following method:
> 
> \starttext
> \placetable[here][tab:multilinesinonecell]{Multi Lines in
>   One Cell}
> \starttable[|c|c|c|][textwidth=8.8cm]
> \HL
> \NC \JustLeft FIRST COL \NC  \JustCenter \bf SECOND COL \NC\SR\HL
> \NC \JustLeft first line      \NC  \JustLeft  one line in cell \NC\MR
> \HL
> \NC \JustLeft second line \NC  \JustLeft first line in second line's 2nd col \NC\MR
> \NC                                \NC \JustLeft second line in second line's 2nd col \NC\MR
> \HL
> \NC \JustLeft third line     \NC \JustLeft third line's 2nd col \NC\LR
> \HL
> \stoptable
> \stoptext

You need a “p” column to have paragraphs in a columns. You can also use natural tables
which paragraphs aren’t a problem.

\starttext

\placetable[here][tab:multilinesinonecell]{Multi Lines in One Cell}
  {\starttable[|l|p(5cm)|][textwidth=8.8cm]
   \HL
   \NC \bf FIRST COL \NC  \JustCenter \bf SECOND COL \NC\SR
   \HL
   \NC first line    \NC  one line in cell \NC\MR
   \HL
   \NC second line   \NC  first line in second line's 2nd col  \par
                          second line in second line's 2nd col \NC\MR
   \HL
   \NC third line    \NC third line's 2nd col \NC\LR
   \HL
   \stoptable}

\placetable[here][tab:multilinesinonecell]{Multi Lines in One Cell}
  {\setupTABLE[c][1][width=3.3cm]
   \setupTABLE[c][2][width=5.5cm]
   \bTABLE[frame=off,topframe=on,bottomframe=on]
     \bTR[align=middle]
       \bTH FIRST COL \eTH
       \bTH SECOND COL \eTH
     \eTR
     \bTR
       \bTD first line \eTD
       \bTD one line in cell \eTD
     \eTR
     \bTR
       \bTD second line \eTD
       \bTD first line in second line's 2nd col  \par second line in second line's 2nd col \eTD
     \eTR
     \bTR
       \bTD third line \eTD
       \bTD third line's 2nd col \eTD
     \eTR
   \eTABLE}

\stoptext

Wolfgang

___________________________________________________________________________________
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] 3+ messages in thread

* Re: What is the easiest way to have multi lines in some of the cells in a table?
  2013-01-23  7:36 ` Wolfgang Schuster
@ 2013-01-23  8:26   ` 土卜皿
  0 siblings, 0 replies; 3+ messages in thread
From: 土卜皿 @ 2013-01-23  8:26 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

hi, Wolfgang
   thanks!

BEST REGARD!
PengCZ


2013/1/23 Wolfgang Schuster <wolfgang.schuster@gmail.com>

>
> Am 23.01.2013 um 04:29 schrieb 土卜皿 <pengcz.nwpu@gmail.com>:
>
> > hi,all
> >  my question as title described,Now I used the following method:
> >
> > \starttext
> > \placetable[here][tab:multilinesinonecell]{Multi Lines in
> >   One Cell}
> > \starttable[|c|c|c|][textwidth=8.8cm]
> > \HL
> > \NC \JustLeft FIRST COL \NC  \JustCenter \bf SECOND COL \NC\SR\HL
> > \NC \JustLeft first line      \NC  \JustLeft  one line in cell \NC\MR
> > \HL
> > \NC \JustLeft second line \NC  \JustLeft first line in second line's 2nd
> col \NC\MR
> > \NC                                \NC \JustLeft second line in second
> line's 2nd col \NC\MR
> > \HL
> > \NC \JustLeft third line     \NC \JustLeft third line's 2nd col \NC\LR
> > \HL
> > \stoptable
> > \stoptext
>
> You need a “p” column to have paragraphs in a columns. You can also use
> natural tables
> which paragraphs aren’t a problem.
>
> \starttext
>
> \placetable[here][tab:multilinesinonecell]{Multi Lines in One Cell}
>   {\starttable[|l|p(5cm)|][textwidth=8.8cm]
>    \HL
>    \NC \bf FIRST COL \NC  \JustCenter \bf SECOND COL \NC\SR
>    \HL
>    \NC first line    \NC  one line in cell \NC\MR
>    \HL
>    \NC second line   \NC  first line in second line's 2nd col  \par
>                           second line in second line's 2nd col \NC\MR
>    \HL
>    \NC third line    \NC third line's 2nd col \NC\LR
>    \HL
>    \stoptable}
>
> \placetable[here][tab:multilinesinonecell]{Multi Lines in One Cell}
>   {\setupTABLE[c][1][width=3.3cm]
>    \setupTABLE[c][2][width=5.5cm]
>    \bTABLE[frame=off,topframe=on,bottomframe=on]
>      \bTR[align=middle]
>        \bTH FIRST COL \eTH
>        \bTH SECOND COL \eTH
>      \eTR
>      \bTR
>        \bTD first line \eTD
>        \bTD one line in cell \eTD
>      \eTR
>      \bTR
>        \bTD second line \eTD
>        \bTD first line in second line's 2nd col  \par second line in
> second line's 2nd col \eTD
>      \eTR
>      \bTR
>        \bTD third line \eTD
>        \bTD third line's 2nd col \eTD
>      \eTR
>    \eTABLE}
>
> \stoptext
>
> Wolfgang
>
>
> ___________________________________________________________________________________
> 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
>
> ___________________________________________________________________________________

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

end of thread, other threads:[~2013-01-23  8:26 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-01-23  3:29 What is the easiest way to have multi lines in some of the cells in a table? 土卜皿
2013-01-23  7:36 ` Wolfgang Schuster
2013-01-23  8:26   ` 土卜皿

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