From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/11548 Path: main.gmane.org!not-for-mail From: Patrick Gundlach Newsgroups: gmane.comp.tex.context Subject: Re: setuphead(s), subject, alternative=inmargin Date: Fri, 21 Mar 2003 14:02:31 +0100 Organization: privat Sender: ntg-context-admin@ntg.nl Message-ID: <87adfo3mag.fsf@gundla.ch> References: <200303211156.h2LBu00m004798@mp.virtual-earth.de> Reply-To: ntg-context@ntg.nl NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1048251885 12328 80.91.224.249 (21 Mar 2003 13:04:45 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 21 Mar 2003 13:04:45 +0000 (UTC) Original-X-From: ntg-context-admin@ntg.nl Fri Mar 21 14:04:44 2003 Return-path: Original-Received: from ref.vet.uu.nl ([131.211.172.13] helo=ref.ntg.nl) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18wMCR-0003Ch-00 for ; Fri, 21 Mar 2003 14:04:43 +0100 Original-Received: from ref.ntg.nl (localhost.localdomain [127.0.0.1]) by ref.ntg.nl (Postfix) with ESMTP id B22C110B79; Fri, 21 Mar 2003 14:04:47 +0100 (MET) Original-Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.177]) by ref.ntg.nl (Postfix) with ESMTP id 9D19010B25 for ; Fri, 21 Mar 2003 14:02:47 +0100 (MET) Original-Received: from [212.227.126.205] (helo=mrelayng.kundenserver.de) by moutng.kundenserver.de with esmtp (Exim 3.35 #1) id 18wMAa-0007eU-00 for ntg-context@ntg.nl; Fri, 21 Mar 2003 14:02:48 +0100 Original-Received: from [129.217.137.186] (helo=levana) by mrelayng.kundenserver.de with asmtp (Exim 3.35 #1) id 18wMAa-00078w-00 for ntg-context@ntg.nl; Fri, 21 Mar 2003 14:02:48 +0100 Original-Received: from pg by levana with local (Exim 3.12 #1 (Debian)) id 18wMAK-0000VS-00 for ; Fri, 21 Mar 2003 14:02:32 +0100 Original-To: ntg-context@ntg.nl X-Lieblings-Musik: a.c. In-Reply-To: <200303211156.h2LBu00m004798@mp.virtual-earth.de> (Mathias.Picker@virtual-earth.de's message of "Fri, 21 Mar 2003 12:56:00 +0100 (CET)") Original-Lines: 32 User-Agent: Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.3.50 (i586-pc-linux-gnu) Errors-To: ntg-context-admin@ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.0.13 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.comp.tex.context:11548 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:11548 Mathias.Picker@virtual-earth.de writes: > Is this supposed to work?? It is working. What do you mean by this? It is putting the number of the head in the margin. > How do I put a subject in the margin, Try this one: ================================================== % taken from core-sec.tex \def\MyHead#1#2% {\vbox {\localheadsetup \begstrut % use one \strut here! \llap{\hbox {\ifheadnumbercontent#1 \fi #2\hskip\localheadskip\hskip\linkermargeafstand}}}} \showframe \starttext \setuphead[section][alternative=command,command=\MyHead] \section{some} \setuphead[section][alternative=command,command=\MyHead,number=no] \section{some} \stoptext ================================================== Probably Hans comes up with some magic, but this might work as well. Patrick