From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/29584 Path: news.gmane.org!not-for-mail From: Hubertus Schmidt Newsgroups: gmane.comp.tex.context Subject: setuphead and command Date: Fri, 21 Jul 2006 23:45:02 +0200 Message-ID: <20060721214502.GA22061@shahin.dnsalias.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1153551212 15539 80.91.229.2 (22 Jul 2006 06:53:32 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 22 Jul 2006 06:53:32 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Sat Jul 22 08:53:30 2006 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by ciao.gmane.org with esmtp (Exim 4.43) id 1G4BMd-0005Es-1i for gctc-ntg-context-518@m.gmane.org; Sat, 22 Jul 2006 08:53:27 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 8A726128C5; Sat, 22 Jul 2006 08:53:25 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 27416-06; Sat, 22 Jul 2006 08:53:05 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 9778B127A0; Sat, 22 Jul 2006 08:53:00 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 6CB1012780 for ; Fri, 21 Jul 2006 23:45:22 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 05167-05-2 for ; Fri, 21 Jul 2006 23:45:14 +0200 (CEST) Original-Received: from p15097509.pureserver.info (p15097509.pureserver.info [217.160.128.79]) by ronja.ntg.nl (Postfix) with SMTP id 4CB421277C for ; Fri, 21 Jul 2006 23:45:13 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by localhost (Postfix) with ESMTP id 4ED2248DBB2 for ; Fri, 21 Jul 2006 23:45:12 +0200 (CEST) Original-Received: from p15097509.pureserver.info ([127.0.0.1]) by localhost (p15097509 [127.0.0.1]) (amavisd-new, port 10024) with SMTP id 05016-06 for ; Fri, 21 Jul 2006 23:45:05 +0200 (CEST) Original-Received: from shahin.dnsalias.com (pD9507076.dip0.t-ipconnect.de [217.80.112.118]) by p15097509.pureserver.info (Postfix) with ESMTP id 0F32848DBB6 for ; Fri, 21 Jul 2006 23:45:05 +0200 (CEST) Original-Received: by shahin.dnsalias.com (Postfix, from userid 1000) id 462161A3E427; Fri, 21 Jul 2006 23:45:03 +0200 (CEST) Original-To: ntg-context@ntg.nl Content-Disposition: inline X-OS: Linux 2.6.16-1-686 i686 X-PGP-Fingerprint: 7AE9 0C5E 26DE 0104 C430 C11E E560 910B FAEC DB02 X-PGP-keyID: EA384FF9 X-Fun: wer schaut denn schon in den mail-header? User-Agent: Mutt/1.5.12-2006-07-14 X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at p15097509.pureserver.info X-Virus-Scanned: amavisd-new at ntg.nl X-Mailman-Approved-At: Sat, 22 Jul 2006 08:52:51 +0200 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.7 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 X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:29584 Archived-At: Hi all, I'm stuck. I try to something like this: \def\CommandHeader#1#2#3{ {\framed[frame=off,bottomframe=on, topframe=on,align=right,width=\textwidth] {\tbox{\hskip14pt\indent{\type{#2}}\index{#2}\hskip3cm{\it #3} }} } \definehead[Command][subject] \setuphead[Command][command=\CommandHeader] \starttext \Command{{def}{Define Variable}} \Command{{tsolve}{solve differential equation}} \stoptext It's supposed to look like ------------------------------------------------------------------------------ def Define Variable ------------------------------------------------------------------------------ whereas "def" should be indexed and "Define Variable" should be indented... The document is supposed to become a program manual and I wanted it to look like this one: http://cran.r-project.org/doc/manuals/fullrefman.pdf How would you do the alphabetic sorting of the commands? Manually like the solution above or with something like "definesorting"? Is there a good way doing this? Thanks a lot Hubertus