From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/68233 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: How to create a breakable text box inside math equation? Date: Fri, 6 May 2011 22:33:37 +0200 Message-ID: <97768DA2-07B4-4E0C-A0B9-F870161E85ED@googlemail.com> References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1304714047 10198 80.91.229.12 (6 May 2011 20:34:07 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 6 May 2011 20:34:07 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri May 06 22:34:02 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 1QIRir-0006bQ-SW for gctc-ntg-context-518@m.gmane.org; Fri, 06 May 2011 22:34:01 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 090C3CACAC; Fri, 6 May 2011 22:34:01 +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 RTVRc6GLdIFI; Fri, 6 May 2011 22:34:00 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 4AA50CACA8; Fri, 6 May 2011 22:33:58 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 530F5CACA8 for ; Fri, 6 May 2011 22:33:57 +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 ctTcv03ToOoE for ; Fri, 6 May 2011 22:33:43 +0200 (CEST) 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 3607BCABB6 for ; Fri, 6 May 2011 22:33:43 +0200 (CEST) Original-Received: from mail-fx0-f41.google.com (mail-fx0-f41.google.com [209.85.161.41]) by filter5-til.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p46KXfr2004655 for ; Fri, 6 May 2011 22:33:42 +0200 Original-Received: by fxm18 with SMTP id 18so3750652fxm.14 for ; Fri, 06 May 2011 13:33:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:content-type:mime-version:subject:from :in-reply-to:date:content-transfer-encoding:message-id:references:to :x-mailer; bh=gk7HWwmpCjA7N49NBtH9qGv39iEb8y1CY3CmjJbOJnc=; b=xJW3X5tMAYutTRIIdZwZhOwXzZtl2s2ksf1xggB66AwhqTujBY6RFjYLFIo2zxIXlC M87x+IOpsAeRMDS6EE8eFgRbgLsZkno5XBdzcrND4ZLqiSTGu4ltabFBN71cz1EIFqkb VX+lnXNTSylxvDc81r7/LI2yWT7SJvQr5NEDk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer; b=pAZAWnvpOZ6lSjC2mlY9ad8p/2/CelS2TAAoo9FVof+hTpmTs4IHOHHsCZD/IzG0Jx nIpyVXr6w/LvluYPnMPIPocCkB44UmuyunsJ1OJJJ1/FA8elLTgSy4YXL7ai1dBNkNnF n7xC4ufAJC0aWzaCwoucWz4d0Hg9cBt92xj0w= Original-Received: by 10.223.159.14 with SMTP id h14mr1515484fax.20.1304714021447; Fri, 06 May 2011 13:33:41 -0700 (PDT) Original-Received: from [192.168.2.34] (p5B293D06.dip.t-dialin.net [91.41.61.6]) by mx.google.com with ESMTPS id p16sm1187903fax.45.2011.05.06.13.33.39 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 06 May 2011 13:33:40 -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.41; 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: 0xEEkxFTf - c8f8bd4b9fc2 - 20110506 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.221 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:68233 Archived-At: Am 06.05.2011 um 16:50 schrieb Mojca Miklavec: > Hello, > > This is probably a very trivial question, but I'm not sure how TeX > works in that respect. I'm used to use a macro > \def\unit#1{{\rm\ #1} > in constructs such as $1\unit{cm^2} \times 2\unit{cm}$. However I > figured out that the contents of \unit{} cannot be broken accross > lines, most probably because this becomes an hbox. > > Is there any simple workaround? \def\unit{\groupedcommand{\rm\ }{}} or \def\unit#1{\bgroup\rm\ #1\egroup} { and } are same as \begingroup and \endgroup in math mode and prevent and a line break of the content. 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 ___________________________________________________________________________________