From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/80409 Path: news.gmane.org!not-for-mail From: =?GB2312?B?zcGyt8Pz?= Newsgroups: gmane.comp.tex.context Subject: Re: What is the easiest way to have multi lines in some of the cells in a table? Date: Wed, 23 Jan 2013 16:26:26 +0800 Message-ID: References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0647447228==" X-Trace: ger.gmane.org 1358929594 31007 80.91.229.3 (23 Jan 2013 08:26:34 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 23 Jan 2013 08:26:34 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Jan 23 09:26:53 2013 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TxvfY-00043E-6K for gctc-ntg-context-518@m.gmane.org; Wed, 23 Jan 2013 09:26:52 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id E694110205; Wed, 23 Jan 2013 09:26:34 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 5jAYDmNsQvOK; Wed, 23 Jan 2013 09:26:33 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 28A42101FC; Wed, 23 Jan 2013 09:26:33 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 4123C101FC for ; Wed, 23 Jan 2013 09:26:31 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id EkcwoXfIOLKz for ; Wed, 23 Jan 2013 09:26:29 +0100 (CET) Original-Received: from filter5-til.mf.surf.net (filter5-til.mf.surf.net [194.171.167.221]) by balder.ntg.nl (Postfix) with ESMTP id BB22F101F5 for ; Wed, 23 Jan 2013 09:26:29 +0100 (CET) Original-Received: from mail-ia0-x234.google.com (ia-in-x0234.1e100.net [IPv6:2607:f8b0:4001:c02::234]) by filter5-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id r0N8FVgt011253 for ; Wed, 23 Jan 2013 09:15:31 +0100 Original-Received: by mail-ia0-f180.google.com with SMTP id f27so3791119iae.25 for ; Wed, 23 Jan 2013 00:26:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:content-type; bh=ixyFgy+dkZGKvR+/rTorUJUzxRb8U7H14/vUwoEAD7k=; b=B+UFtWfSQH2Zsbqg2jOGV/H7L8gMqgB+V3bmP03ZyzMha0p9NBSSMHIuNvPmLj3Ucg P9ginlUpTYkzxD0qu16CYbAjG/EObrsnhssjlpUrSAS1PUfYbpQ1TZv/9aOiUEqm7O+Q 4uLH6pEBhub+czriOsZMtVOLSNaebseJhXyICeomOKztoLU8mY3EsH/XPPHMqPQrtjkr 64PjlCk9lfbRyDkutl8cKNtqkU/EdLne4T+7dh3neHWK0F/kdU8Ce+J2cgA6dXcqDjWi MtpVVimGJHUMqNcFwOEfGab5qUWVuq7ej+fLEaiTWGveKxnWszxaAMpgcn4kER2ve6Hq 1SBQ== X-Received: by 10.43.114.4 with SMTP id ey4mr346282icc.27.1358929587057; Wed, 23 Jan 2013 00:26:27 -0800 (PST) Original-Received: by 10.64.141.49 with HTTP; Wed, 23 Jan 2013 00:26:26 -0800 (PST) In-Reply-To: X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=2607:f8b0:4001:c02::234; country=US X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0WIPkfvE4 - 8ac8b6fbf1ab - 20130123 X-Scanned-By: CanIt (www . roaringpenguin . com) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:80409 Archived-At: --===============0647447228== Content-Type: multipart/alternative; boundary=bcaec5171a474fb40704d3f0730d --bcaec5171a474fb40704d3f0730d Content-Type: text/plain; charset=GB2312 Content-Transfer-Encoding: quoted-printable hi, Wolfgang thanks! BEST REGARD! PengCZ 2013/1/23 Wolfgang Schuster > > Am 23.01.2013 um 04:29 schrieb =CD=C1=B2=B7=C3=F3 = : > > > hi=A3=ACall > > my question as title described=A3=ACNow I used the following method: > > > > \starttext > > \placetable[here][tab:multilinesinonecell]{Multi Lines in > > One Cell} > > \starttable[|c|c|c|][textwidth=3D8.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 2n= d > 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 =A1=B0p=A1=B1 column to have paragraphs in a columns. You can = also use > natural tables > which paragraphs aren=A1=AFt a problem. > > \starttext > > \placetable[here][tab:multilinesinonecell]{Multi Lines in One Cell} > {\starttable[|l|p(5cm)|][textwidth=3D8.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=3D3.3cm] > \setupTABLE[c][2][width=3D5.5cm] > \bTABLE[frame=3Doff,topframe=3Don,bottomframe=3Don] > \bTR[align=3Dmiddle] > \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 > > _________________________________________________________________________= __________ --bcaec5171a474fb40704d3f0730d Content-Type: text/html; charset=GB2312 Content-Transfer-Encoding: quoted-printable
hi, Wolfgang
   thanks!

BEST REGARD!
PengCZ


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

Am 23.01.2013 um 04:29 schrieb =CD=C1=B2=B7=C3=F3 <pengcz.nwpu@gmail.com>:

> hi=A3=ACall
>  my question as title described=A3=ACNow I used the following met= hod:
>
> \starttext
> \placetable[here][tab:multilinesinonecell]{Multi Lines in
>   One Cell}
> \starttable[|c|c|c|][textwidth=3D8.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 lin= e's 2nd col \NC\MR
> \NC                   &nb= sp;            \NC \JustLeft second line in s= econd 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 colum= ns. 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=3D8.8cm]
   \HL
   \NC \bf FIRST COL \NC  \JustCenter \bf SECOND COL \NC\SR<= br>    \HL
   \NC first line    \NC  one line in cell \NC\MR<= br>    \HL
   \NC second line   \NC  first line in second line'= ;s 2nd col  \par
                &= nbsp;         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=3D3.3cm]
   \setupTABLE[c][2][width=3D5.5cm]
   \bTABLE[frame=3Doff,topframe=3Don,bottomframe=3Don]
     \bTR[align=3Dmiddle]
       \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 &nb= sp;\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 t= he Wiki!

maillist : ntg-context@ntg.nl / <= a href=3D"http://www.ntg.nl/mailman/listinfo/ntg-context" target=3D"_blank"= >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
___________________________________________________________________________= ________

--bcaec5171a474fb40704d3f0730d-- --===============0647447228== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 ___________________________________________________________________________________ --===============0647447228==--