From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/16025 Path: main.gmane.org!not-for-mail From: "Patrick Gundlach" Newsgroups: gmane.comp.tex.context Subject: Re: howto overlayers on section head Date: 11 Aug 2004 00:37:39 +0200 Organization: chaos Sender: ntg-context-bounces@ntg.nl Message-ID: 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 X-Trace: sea.gmane.org 1092177483 19875 80.91.224.253 (10 Aug 2004 22:38:03 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 10 Aug 2004 22:38:03 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Wed Aug 11 00:37:53 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 1BufFh-0004cY-00 for ; Wed, 11 Aug 2004 00:37:53 +0200 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 1AC721277E; Wed, 11 Aug 2004 00:37:53 +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 06562-02; Wed, 11 Aug 2004 00:37:49 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 2720912771; Wed, 11 Aug 2004 00:37:49 +0200 (CEST) Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 524E712771 for ; Wed, 11 Aug 2004 00:37:47 +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 06470-04 for ; Wed, 11 Aug 2004 00:37:46 +0200 (CEST) Original-Received: from lilly.ping.de (unknown [83.97.42.2]) by ronja.ntg.nl (Postfix) with SMTP id 2EF881276D for ; Wed, 11 Aug 2004 00:37:46 +0200 (CEST) Original-Received: (qmail 7362 invoked from network); 10 Aug 2004 22:37:43 -0000 Original-Received: (ofmipd 83.97.40.186); 10 Aug 2004 22:37:21 -0000 Original-Received: from schnee.local. (localhost [127.0.0.1]) by schnee.local (8.12.9/8.12.9) with ESMTP id i7AMbiZ5006617 for ; Wed, 11 Aug 2004 00:37:44 +0200 (CEST) Original-Received: (from pg@localhost) by schnee.local. (8.12.9/8.12.2/Submit) id i7AMbgWV006616; Wed, 11 Aug 2004 00:37:42 +0200 (CEST) Original-To: ntg-context@ntg.nl X-Authentication-Warning: schnee.local.: pg set sender to patrick@gundla.ch using -f X-Lieblings-Musik: the_capricorns In-Reply-To: <4118B77E.5080604@bo.imm.cnr.it> (Eros Albertazzi's message of "Tue, 10 Aug 2004 13:54:38 +0200") User-Agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3.50 (darwin) 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:16025 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:16025 Hello, [...] > I have experimented with some other graphics but if I use "chapter" > instead of "subject" as section heading the result is different. > I believe it depends on your Here is the important stuff: > \def\HeadTitle#1#2{% .... > \framed[background=myhead]{#1#2}} (which is the command without spacing) > tighted to the latter heading and not to the former . > Am I right? you should use something like \setuphead[chpater][command=\HeadTitle] > Deeply down to low level TeX at this point? This is partly high level ConTeXt (\framed, background) and low level TeX (hfill,...). > Is just a question to redefine a command adding > background=something-of-mine ? background has to be a color or an overlay or ... > Then where these command are discribed? They should be described in the main manual or the metafun manual. 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=...]. Patrick -- ConTeXt wiki: http://contextgarden.net texshow-web: http://texshow.contextgarden.net List archive: http://archive.contextgarden.net