From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/60308 Path: news.gmane.org!not-for-mail From: Andreas Harder Newsgroups: gmane.comp.tex.context Subject: Textbackgrounds Date: Thu, 22 Jul 2010 15:50:42 +0200 Message-ID: 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 1279806653 29272 80.91.229.12 (22 Jul 2010 13:50:53 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 22 Jul 2010 13:50:53 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Jul 22 15:50:51 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 1ObwAk-0004ax-UZ for gctc-ntg-context-518@m.gmane.org; Thu, 22 Jul 2010 15:50:51 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 26482C9C8F; Thu, 22 Jul 2010 15:50:50 +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 nCbqbrRZiITT; Thu, 22 Jul 2010 15:50:46 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 1A3E4C9B87; Thu, 22 Jul 2010 15:50:46 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id B1834C9B87 for ; Thu, 22 Jul 2010 15:50:45 +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 61VM-N8G38-u for ; Thu, 22 Jul 2010 15:50:43 +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 7906DC9AF5 for ; Thu, 22 Jul 2010 15:50:43 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by deliver.uni-koblenz.de (Postfix) with ESMTP id 38BFA7897E99 for ; Thu, 22 Jul 2010 15:50:43 +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 12970-04 for ; Thu, 22 Jul 2010 15:50:42 +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 C8FF87897E14 for ; Thu, 22 Jul 2010 15:50:42 +0200 (CEST) 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:60308 Archived-At: Hi all, I've played with text backgrounds. Please have a look at the following exam= ple. \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 There is a nasty little space between the two backgrounds. How can I avoid = it? Further the left borders of the frame are not aligned. I appreciate your help. 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 ___________________________________________________________________________= ________