From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/60338 Path: news.gmane.org!not-for-mail From: Andreas Harder Newsgroups: gmane.comp.tex.context Subject: Re: Textbackgrounds Date: Thu, 22 Jul 2010 20:34:19 +0200 Message-ID: <89749136-005F-4B77-AC1A-C89565A5FE47@rz-online.de> References: <4C485795.5060809@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1081) Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1279823673 30703 80.91.229.12 (22 Jul 2010 18:34:33 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 22 Jul 2010 18:34:33 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Jul 22 20:34:32 2010 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 1Oc0bE-0003nE-0D for gctc-ntg-context-518@m.gmane.org; Thu, 22 Jul 2010 20:34:28 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 531C0C9B41; Thu, 22 Jul 2010 20:34:27 +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 tixdSbH6m9kb; Thu, 22 Jul 2010 20:34:24 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id DEF02C9CCB; Thu, 22 Jul 2010 20:34:23 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 2295CC9CCB for ; Thu, 22 Jul 2010 20:34:22 +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 m6c0RHfkYSIK for ; Thu, 22 Jul 2010 20:34:20 +0200 (CEST) Original-Received: from deliver.uni-koblenz.de (deliver.uni-koblenz.de [141.26.64.15]) by balder.ntg.nl (Postfix) with ESMTP id 217EEC9B41 for ; Thu, 22 Jul 2010 20:34:20 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by deliver.uni-koblenz.de (Postfix) with ESMTP id ED6BC781D133 for ; Thu, 22 Jul 2010 20:34:19 +0200 (CEST) Original-Received: from deliver.uni-koblenz.de ([127.0.0.1]) by localhost (deliver.uni-koblenz.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 16746-04 for ; Thu, 22 Jul 2010 20:34:19 +0200 (CEST) X-CHKRCPT: Envelopesender noch andreas.harder@rz-online.de Original-Received: from [192.168.1.112] (95-88-44-57-dynip.superkabel.de [95.88.44.57]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by deliver.uni-koblenz.de (Postfix) with ESMTP id 871A7781D130 for ; Thu, 22 Jul 2010 20:34:19 +0200 (CEST) In-Reply-To: <4C485795.5060809@wxs.nl> X-Mailer: Apple Mail (2.1081) X-Virus-Scanned: amavisd-new at uni-koblenz.de 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:60338 Archived-At: Am 22.07.2010 um 16:37 schrieb Hans Hagen: > On 22-7-2010 3:50, Andreas Harder wrote: >> \definetextbackground >> [test] >> [location=3Dparagraph, >> % frame=3Doff, % -> no round corners anymore >> corner=3Dround, % -> corner=3D1|2|3=85 would be nice >> leftoffset=3D.5\bodyfontsize, >> rightoffset=3D.5\bodyfontsize, >> topoffset=3D.5\bodyfontsize, >> bottomoffset=3D.5\bodyfontsize] >> = >> \setuphead >> [subject] >> [after=3D, >> command=3D\MyHead] >> = >> \def\MyHead#1#2% >> {\framed >> [background=3Dcolor, >> backgroundcolor=3Dgray, >> frame=3Doff, >> offset=3D.5\bodyfontsize, >> corner=3D3]{#1#2}} >> = >> \starttext >> \subject{Test} >> \starttest >> \input tufte >> \stoptest >> \stoptext >> = > \setuphead > [subject] > [after=3D\nointerlineskip, > command=3D\MyHead] Thank you Hans, that killed the space. Greeting, Andreas ___________________________________________________________________________= ________ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________= ________