From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/67576 Path: news.gmane.org!not-for-mail From: Nicola Newsgroups: gmane.comp.tex.context Subject: Re: Need help with \setuphead and spacing Date: Sat, 02 Apr 2011 15:30:07 +0200 Organization: --- Message-ID: References: <20110402135950.0a07eef4@glyph> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1301751048 12105 80.91.229.12 (2 Apr 2011 13:30:48 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 2 Apr 2011 13:30:48 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Sat Apr 02 15:30:42 2011 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 1Q60uX-0002uK-RU for gctc-ntg-context-518@m.gmane.org; Sat, 02 Apr 2011 15:30:41 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 8BBD1CAB77; Sat, 2 Apr 2011 15:30:11 +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 GLHb+4i9DyJb; Sat, 2 Apr 2011 15:30:08 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 5D64FCAB6C; Sat, 2 Apr 2011 15:30:08 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id E7791CAB6C for ; Sat, 2 Apr 2011 15:30:06 +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 5KnrIJf-MEx3 for ; Sat, 2 Apr 2011 15:29:56 +0200 (CEST) Original-Received: from filter4-nij.mf.surf.net (filter4-nij.mf.surf.net [195.169.124.155]) by balder.ntg.nl (Postfix) with ESMTP id 22903CAB68 for ; Sat, 2 Apr 2011 15:29:56 +0200 (CEST) Original-Received: from lo.gmane.org (lo.gmane.org [80.91.229.12]) by filter4-nij.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p32DUOEq012107 for ; Sat, 2 Apr 2011 15:30:24 +0200 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1Q60uB-0001nx-P3 for ntg-context@ntg.nl; Sat, 02 Apr 2011 15:30:19 +0200 Original-Received: from 93.37.243.161 ([93.37.243.161]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 02 Apr 2011 15:30:19 +0200 Original-Received: from nvitacolonna by 93.37.243.161 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 02 Apr 2011 15:30:19 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 43 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 93.37.243.161 User-Agent: MT-NewsWatcher/3.5.3b3 (Intel Mac OS X) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=80.91.229.12; country=NO; latitude=62.0000; longitude=10.0000; http://maps.google.com/maps?q=62.0000,10.0000&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 04EqBuoJw - 653a62a1f392 - 20110402 X-Scanned-By: CanIt (www . roaringpenguin . com) on 195.169.124.155 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:67576 Archived-At: In article <20110402135950.0a07eef4@glyph>, Marco wrote: > On 2011-04-02 Nicola wrote: > > > 1) I need to shift the title 12pt below the top margin. > > This is my command now: > > > > \definefont[TitleStyle][SerifBold at 14pt] > > \setuphead[title][ > > style=TitleStyle, > > align=middle, > > textstyle=WORD, > > before={\blank[12pt,force]}, > > > after={\blank[3pt]} > > ] > > > > But 'before' does not seem to have any effect. My document starts with > > \starttext\title{...}. > > > > 2) I need (sub)section titles indented by .75cm, regardless of the section > > number, so that in: > > > > 1 First Section > > 1.1 First Subsection > > 100 Another Section Title > > 100.1 Another subsection > > > > \setuphead [chapter,section] [command=\myseccmd] > \def\myseccmd#1#2{\hbox to .75cm{#1}#2} That works great! I must say that, looking backwards, the choice of using ConTeXt for my paper (as opposed to LaTeX) has turned out to be a winning one, although at the beginning I was a little afraid of using a typesetting system that is still under active development. With the help of the people from this list I have been able to easily solve many layout and typographical challenges (at least, challenges for me). So, thank you! Nicola ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________