From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/43278 Path: news.gmane.org!not-for-mail From: "Wolfgang Schuster" Newsgroups: gmane.comp.tex.context Subject: Re: inframed : makes a newline Date: Thu, 21 Aug 2008 11:48:07 +0200 Message-ID: <115224fb0808210248t7ede9800t1c5704eae4a2857@mail.gmail.com> References: <870A54AF-87F3-4163-B489-D186F69DAD33@mac.com> <48ABF64B.7050102@gmx.net> <20080820183247.GA6260@gaston.couberia.bzh> <115224fb0808210029y582f9f1dr3ee68c8c63ccb4e4@mail.gmail.com> <20080821092327.GA21130@gaston.couberia.bzh> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1219313665 14836 80.91.229.12 (21 Aug 2008 10:14:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 21 Aug 2008 10:14:25 +0000 (UTC) To: "mailing list for ConTeXt users" Original-X-From: ntg-context-bounces@ntg.nl Thu Aug 21 12:15:17 2008 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by lo.gmane.org with esmtp (Exim 4.50) id 1KW7CB-00084q-4F for gctc-ntg-context-518@m.gmane.org; Thu, 21 Aug 2008 12:15:11 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 7A4F31FB95; Thu, 21 Aug 2008 12:14:10 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 20736-01-2; Thu, 21 Aug 2008 12:13:33 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id C84D31FC78; Thu, 21 Aug 2008 11:48:54 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 9A8321FC78 for ; Thu, 21 Aug 2008 11:48:49 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 09416-02-20 for ; Thu, 21 Aug 2008 11:48:10 +0200 (CEST) Original-Received: from yx-out-1718.google.com (yx-out-1718.google.com [74.125.44.156]) by ronja.ntg.nl (Postfix) with ESMTP id 31D3E1FB6D for ; Thu, 21 Aug 2008 11:48:09 +0200 (CEST) Original-Received: by yx-out-1718.google.com with SMTP id 3so627799yxi.74 for ; Thu, 21 Aug 2008 02:48:08 -0700 (PDT) Original-Received: by 10.150.204.12 with SMTP id b12mr1863366ybg.34.1219312088093; Thu, 21 Aug 2008 02:48:08 -0700 (PDT) Original-Received: by 10.151.103.21 with HTTP; Thu, 21 Aug 2008 02:48:07 -0700 (PDT) In-Reply-To: <20080821092327.GA21130@gaston.couberia.bzh> Content-Disposition: inline X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.9 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 X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:43278 Archived-At: On Thu, Aug 21, 2008 at 11:23 AM, Peter M=FCnster wrote: > On Thu, Aug 21 2008, Wolfgang Schuster wrote: > >> > For beginners (especially former LaTeX users), this is a real headache: >> > \framed, \externalfigure and so on start sometimes a new paragraph, and >> > sometimes not. In my opinion, these commands should behave like a simp= le >> > hbox. >> >> But this is exactly what \framed does. >> >> \starttext >> \framed{text} >> \framed{text} >> \hbox{text} >> \hbox{text} >> \stoptext > > Oh, you're right, I was pretty sure, that \hbox behaved like a normal > letter... AFAIK this was also in one of the exercises in the TeXbook, a \hbox in vertical let you remain in vertical mode. > Ok, then I would rather like to compare this with \parbox and > \includegraphics from LaTeX: they behave like normal letters. > Perhaps I've just spent too much of my life-time with LaTeX... :( > > >> What you want produce also unwanted results in other commands. >> >> \starttext >> \placefigure >> {Centered?} >> {\dontleavehmode\framed{No!}} >> \stoptext > > I don't know, why this is not centred, but I would say, that > \placefigure{Centred?}{\framed{test}} > and > \placefigure{Centred?}{test} > should behave the same way. In this yes but in my example the \dontleavehmodein front of \framed forced TeX to go in horizontal mode and to use \hsize as width for the float box. \starttext \ruledvbox{\hbox{text}} \ruledvbox{\dontleavehmode\hbox{text}} \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 / http://www.ntg.nl/mailman/listinfo/ntg-cont= ext webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________= ________