From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/69713 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: Fwd: Newlines in a table cel Date: Mon, 4 Jul 2011 15:32:25 +0200 Message-ID: <924003E9-6D6B-4594-AB79-81A0DD170A43@googlemail.com> References: <4E118FDA.70804@wxs.nl> <526BE2C0-FE23-4BDB-93B2-6EB78B03C43C@googlemail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: multipart/mixed; boundary="===============0989180809==" X-Trace: dough.gmane.org 1309786367 23578 80.91.229.12 (4 Jul 2011 13:32:47 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 4 Jul 2011 13:32:47 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Jul 04 15:32:41 2011 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QdjGS-0004Fn-TU for gctc-ntg-context-518@m.gmane.org; Mon, 04 Jul 2011 15:32:40 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id DBA33CADE0; Mon, 4 Jul 2011 15:32:39 +0200 (CEST) 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 pPps-5xJWnDT; Mon, 4 Jul 2011 15:32:37 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id E6B3CCADD4; Mon, 4 Jul 2011 15:32:36 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id BE75ACADD4 for ; Mon, 4 Jul 2011 15:32:35 +0200 (CEST) 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 64O6n6Xb1hWR for ; Mon, 4 Jul 2011 15:32:30 +0200 (CEST) Original-Received: from filter1-ams.mf.surf.net (filter1-ams.mf.surf.net [192.87.102.69]) by balder.ntg.nl (Postfix) with ESMTP id 826F5CADD1 for ; Mon, 4 Jul 2011 15:32:30 +0200 (CEST) Original-Received: from mail-fx0-f42.google.com (mail-fx0-f42.google.com [209.85.161.42]) by filter1-ams.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p64DWTR2006893 for ; Mon, 4 Jul 2011 15:32:30 +0200 Original-Received: by fxe23 with SMTP id 23so4895887fxe.15 for ; Mon, 04 Jul 2011 06:32:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=from:mime-version:content-type:subject:date:in-reply-to:to :references:message-id:x-mailer; bh=Mimv3enaawCAKkA2EudxV8CD0YG1Pw1thu36XNLddIU=; b=pdE7h92ChmXkYXl9Cb51HjmaLBo9NmNGiKaraS+fnJYnWgdJ9mjZXP6QooNCwhjtyx 9k2gs6kMcD2CaDCiKR206fkzDv1fwQ4Ju1VcQMW1rk4Dtitg5ZbuNJjBRGGPbMR1IJVd qecUubzn70230FNW5xrEkJCjzfWcdYf18jwts= Original-Received: by 10.223.36.89 with SMTP id s25mr41268fad.9.1309786349806; Mon, 04 Jul 2011 06:32:29 -0700 (PDT) Original-Received: from [192.168.2.34] (p5B0EF214.dip.t-dialin.net [91.14.242.20]) by mx.google.com with ESMTPS id 21sm4418173fay.21.2011.07.04.06.32.27 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 04 Jul 2011 06:32:28 -0700 (PDT) In-Reply-To: X-Mailer: Apple Mail (2.1084) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.161.42; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 06F3NwuAj - 92785e8540d4 - 20110704 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.69 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:69713 Archived-At: --===============0989180809== Content-Type: multipart/alternative; boundary=Apple-Mail-8-766664129 --Apple-Mail-8-766664129 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=windows-1252 Am 04.07.2011 um 14:58 schrieb Cecil Westerhof: > 2011/7/4 Cecil Westerhof > 2011/7/4 Wolfgang Schuster > > Attached a tex and a pdf file. It shows the original and your = solution, but also the preferred solution. (But hard coded, not with a = macro.) Would it be possible to get the preferred solution in a macro? >=20 > Tell ConTeXt where is should break the line with =93\\=94. >=20 > \MVCa{usedmodel}{firstViewFromSeveral\\ secondViewFromSeveral\\ = thirthViewFromSeveral\\ fourthViewFromSeveral}{usedController} >=20 > Thanks. In the dummy.tex it works. In my own document it does not. = Looks like I changed something in my environment. Have to find out what.=20= >=20 > It is not in my environment. The use of \completecontent wreck havoc = on this. See the attachments. This is *not* a minimal working example, neither it=92s minimal nor it=92s= working. You can fix this by replacing the \\ with \crlf to add a linebreak in = the entries: \define[3]\MVC {\starttabulate[|l|lp|] \NC Model: \NC #1 \NC\NR \NC View: \NC #2 \NC\NR \NC Controller: \NC #3 \NC\NR \stoptabulate} \starttext \MVC{usedmodel}{firstViewFromSeveral\crlf secondViewFromSeveral\crlf = thirthViewFromSeveral\crlf fourthViewFromSeveral}{usedController} \completecontent \MVC{usedmodel}{firstViewFromSeveral\crlf secondViewFromSeveral\crlf = thirthViewFromSeveral\crlf fourthViewFromSeveral}{usedController} \stoptext Wolfgang= --Apple-Mail-8-766664129 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=windows-1252
2011/7/4 Cecil Westerhof <cldwesterhof@gmail.com>
2011/7/4 Wolfgang Schuster = <schuster.wolfgang@googlemail.com>
> Attached a tex and a pdf file. It shows the original and your = solution, but also the preferred solution. (But hard coded, not with a = macro.) Would it be possible to get the preferred solution in a = macro?

Tell ConTeXt where is should break the line with =93\\=94.

\MVCa{usedmodel}{firstViewFromSeveral\\ secondViewFromSeveral\\ = thirthViewFromSeveral\\ = fourthViewFromSeveral}{usedController}

Than= ks. In the dummy.tex it works. In my own document it does not. Looks = like I changed something in my environment. Have to find out what.

It is not in my environment. The use = of \completecontent wreck havoc on this. See the = attachments.

This is *not* a = minimal working example, neither it=92s minimal nor it=92s = working.

You can fix this by replacing the \\ = with \crlf to add a linebreak in the = entries:

\define[3]\MVC
 &nbs= p;{\starttabulate[|l|lp|]
   \NC Model:   =    \NC #1 \NC\NR
   \NC View:   =     \NC #2 \NC\NR
   \NC Controller: \NC = #3 \NC\NR
   = \stoptabulate}

\starttext

\MVC{usedmodel}{firstViewFromSeveral\crlf secondViewFromSeveral\crlf = thirthViewFromSeveral\crlf = fourthViewFromSeveral}{usedController}

\completec= ontent

\MVC{usedmodel}{firstViewFromSeveral\crlf = secondViewFromSeveral\crlf thirthViewFromSeveral\crlf = fourthViewFromSeveral}{usedController}

\stoptext<= /div>

Wolfgang
= --Apple-Mail-8-766664129-- --===============0989180809== 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 ___________________________________________________________________________________ --===============0989180809==--