From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/16028 Path: main.gmane.org!not-for-mail From: Eros Albertazzi Newsgroups: gmane.comp.tex.context Subject: Re: Re: howto overlayers on section head Date: Wed, 11 Aug 2004 11:53:02 +0200 Sender: ntg-context-bounces@ntg.nl Message-ID: <4119EC7E.9050406@bo.imm.cnr.it> References: <41188A2F.9060601@bo.imm.cnr.it> <4118B77E.5080604@bo.imm.cnr.it> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1092218099 28974 80.91.224.253 (11 Aug 2004 09:54:59 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 11 Aug 2004 09:54:59 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Wed Aug 11 11:54:49 2004 Return-path: Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1Bupon-0002l0-00 for ; Wed, 11 Aug 2004 11:54:49 +0200 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id A0EAC1276B; Wed, 11 Aug 2004 11:54:48 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (ronja.vet.uu.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 09003-08; Wed, 11 Aug 2004 11:54:48 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 7B50C1276D; Wed, 11 Aug 2004 11:53:05 +0200 (CEST) Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 856F11276D for ; Wed, 11 Aug 2004 11:53:03 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (ronja.vet.uu.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 09003-07 for ; Wed, 11 Aug 2004 11:53:03 +0200 (CEST) Original-Received: from lotto.bo.imm.cnr.it (unknown [192.167.170.7]) by ronja.ntg.nl (Postfix) with ESMTP id EEFBA1276B for ; Wed, 11 Aug 2004 11:53:02 +0200 (CEST) Original-Received: from [192.167.170.15] (psyche.bo.imm.cnr.it [192.167.170.15]) by lotto.bo.imm.cnr.it (Postfix) with ESMTP id BFF6E66001E; Wed, 11 Aug 2004 11:53:02 +0200 (CEST) User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7) Gecko/20040616 X-Accept-Language: en-us, en Original-To: mailing list for ConTeXt users In-Reply-To: X-Virus-Scanned: by amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.5 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: by amavisd-new at ntg.nl Xref: main.gmane.org gmane.comp.tex.context:16028 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:16028 thanks again for the summary. hope this back and forth will not be just a waste, but something out of which we can both/all learned to improuve. Patrick Gundlach wrote: > This is partly high level ConTeXt (\framed, background) and low level > TeX (hfill,...). "partially high and low"... Here laid my question not easy to untungle for a beginner (and believe me I have read the docs, although I do not claim to remember or understand all) > > Summary: define a metapost graphic, use \defineoverlay to access > the mp graphic and use \framed{} to access the overlay > (background=...) and use \setuphead (command=somecommand) to define > your own command that acesses the \framed[background=...]. "define your own command" , but you have to know THE (default) command fist, otherwise it is hard to obtain a result (.pdf) from something that is not just a copy of someonelse .tex let me start basic, ex-1 \starttext \chapter{ciao} \stoptext let me remove \framed from your command, ex-2 \def\HeadTitle#1#2{\hbox to \hsize% {\hfil% {#1#2}\hfil}} \setuphead [chapter] [command=\HeadTitle] \starttext \chapter{ciao} \stoptext the two ex-s are not the same , because spacing between the number and the title and allignment, why? Moving your howto overlay example, indeed very useful, from subject to chapter seems to me more subtle than just changing section names