From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/37600 Path: news.gmane.org!not-for-mail From: "Wolfgang Schuster" Newsgroups: gmane.comp.tex.context Subject: Re: inline-graphics and unwanted line-break Date: Thu, 29 Nov 2007 16:47:08 +0100 Message-ID: <115224fb0711290747y142ad7dfqdb8a91e761ca042d@mail.gmail.com> References: <200711291351.34908.tralalas@freenet.de> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1196351251 27348 80.91.229.12 (29 Nov 2007 15:47:31 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 29 Nov 2007 15:47:31 +0000 (UTC) To: tralalas@freenet.de, "mailing list for ConTeXt users" Original-X-From: ntg-context-bounces@ntg.nl Thu Nov 29 16:47:38 2007 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 1Ixlc2-0004py-1A for gctc-ntg-context-518@m.gmane.org; Thu, 29 Nov 2007 16:47:38 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 1C6811FB64; Thu, 29 Nov 2007 16:47:21 +0100 (CET) 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 06841-05-3; Thu, 29 Nov 2007 16:47:13 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id E44D21FB14; Thu, 29 Nov 2007 16:47:12 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 410621FB14 for ; Thu, 29 Nov 2007 16:47:12 +0100 (CET) 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 06841-05-2 for ; Thu, 29 Nov 2007 16:47:08 +0100 (CET) Original-Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.172]) by ronja.ntg.nl (Postfix) with ESMTP id A87AE1FB0E for ; Thu, 29 Nov 2007 16:47:08 +0100 (CET) Original-Received: by ug-out-1314.google.com with SMTP id q2so730845uge for ; Thu, 29 Nov 2007 07:47:08 -0800 (PST) Original-Received: by 10.67.106.19 with SMTP id i19mr926916ugm.1196351228395; Thu, 29 Nov 2007 07:47:08 -0800 (PST) Original-Received: by 10.67.122.17 with HTTP; Thu, 29 Nov 2007 07:47:08 -0800 (PST) In-Reply-To: <200711291351.34908.tralalas@freenet.de> 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:37600 Archived-At: 2007/11/29, Peter Schorsch : > Hi, > > I have a small metapost graphic I like to use inline. But the arragement > behaves a little bit "unpractically". As soon there is no character in front > of the graphic context will break the line after the graphic - but as soon > there is a character in front of the graphic, context does not adding a > linebreak after the graphic. > > Does anyone know how to prevent the line-break after the graphic if the > graphic is the first inline? > > Thanks, P. > > example-file: > > \startuseMPgraphic{zo} > color schwarz ; schwarz := (.0,.0,.0) ; > draw > (0pt,0pt)--(0pt,8pt)--(5pt,12pt)--(10pt,8pt)--(10pt,0pt)--(0pt,0pt)--cycle > withcolor schwarz ; > \stopuseMPgraphic > > \starttext > > \hbox{\useMPgraphic{zo}} test text - why a line-break? How to prevent this? write \dontleavehmode\hbox{...}, this is normal TeX bahaviour and has nothing special to do with ConTeXt. > a \hbox{\useMPgraphic{zo}} test text - this is fine: no line-break! the "a" starts horizontal mode but a \hbox did not and this can be sometimes usefull > \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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________