From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/16029 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 12:36:06 +0200 Organization: chaos Sender: ntg-context-bounces@ntg.nl Message-ID: References: <41188A2F.9060601@bo.imm.cnr.it> <4118B77E.5080604@bo.imm.cnr.it> <4119EC7E.9050406@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 1092220684 4647 80.91.224.253 (11 Aug 2004 10:38:04 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 11 Aug 2004 10:38:04 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Wed Aug 11 12:37:56 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 1BuqUW-0005Mu-00 for ; Wed, 11 Aug 2004 12:37:56 +0200 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 289A91276B; Wed, 11 Aug 2004 12:37:56 +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 09501-02; Wed, 11 Aug 2004 12:37:56 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 15F6E1276D; Wed, 11 Aug 2004 12:36:13 +0200 (CEST) Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 3F6A71276D for ; Wed, 11 Aug 2004 12:36:11 +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 09501-01 for ; Wed, 11 Aug 2004 12:36:10 +0200 (CEST) Original-Received: from lilly.ping.de (unknown [83.97.42.2]) by ronja.ntg.nl (Postfix) with SMTP id 73BBF1276B for ; Wed, 11 Aug 2004 12:36:10 +0200 (CEST) Original-Received: (qmail 347 invoked from network); 11 Aug 2004 10:36:09 -0000 Original-Received: (ofmipd 83.97.40.251); 11 Aug 2004 10:35:47 -0000 Original-Received: from schnee.local. (localhost [127.0.0.1]) by schnee.local (8.12.9/8.12.9) with ESMTP id i7BAaBZ5006698 for ; Wed, 11 Aug 2004 12:36:11 +0200 (CEST) Original-Received: (from pg@localhost) by schnee.local. (8.12.9/8.12.2/Submit) id i7BAa94H006697; Wed, 11 Aug 2004 12:36:09 +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: <4119EC7E.9050406@bo.imm.cnr.it> (Eros Albertazzi's message of "Wed, 11 Aug 2004 11:53:02 +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:16029 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:16029 Hello, [...] > hope this back and forth will not be just a waste, but something out > of which we can both/all learned to improuve. I think so, too. It has been a long time since I used ConTeXt. So I have to refresh my rusty knowledge :-) > "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 Right, but I'd guess that the default command is quite tricky. All ConTeXt commands are quite tricky. > \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? There is no horizontal "space" command between #1 (number) and #2 (title). But "space" is not just a simple " ". It can be many things. I don't know if there is any good reading about these kind of spaces, but let me show you a few: ( ) regular space is pretty small, but can be stretched \enspace fixed space 0.5em \enskip space .5em (so called "skip") \quad space 1em " \qquad space 2em " \kern xx space xx \hfil, \hfill "very long" and "very very long" space > Moving your howto overlay example, indeed very useful, from subject to > chapter seems to me more subtle than just changing section names It is more a matter of section numbers/no section numbers. Patrick -- ConTeXt wiki: http://contextgarden.net texshow-web: http://texshow.contextgarden.net List archive: http://archive.contextgarden.net