From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/79826 Path: news.gmane.org!not-for-mail From: reviczky@caesar.elte.hu Newsgroups: gmane.comp.tex.context Subject: Re: setuphead command changes? Date: Sun, 09 Dec 2012 12:22:19 +0100 Message-ID: <20121209122219.18804ainkvyar88b@webmail.caesar.elte.hu> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed"; DelSp="Yes" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1355052148 12873 80.91.229.3 (9 Dec 2012 11:22:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 9 Dec 2012 11:22:28 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Sun Dec 09 12:22:41 2012 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1They1-0003Jq-7b for gctc-ntg-context-518@m.gmane.org; Sun, 09 Dec 2012 12:22:41 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 1D29A101E9; Sun, 9 Dec 2012 12:22:28 +0100 (CET) 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 3EZj9zKHoz5x; Sun, 9 Dec 2012 12:22:26 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id C4231101FD; Sun, 9 Dec 2012 12:22:25 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 52701101FD for ; Sun, 9 Dec 2012 12:22:24 +0100 (CET) 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 7WxMgMOrs95H for ; Sun, 9 Dec 2012 12:22:23 +0100 (CET) Original-Received: from filter3-til.mf.surf.net (filter3-til.mf.surf.net [194.171.167.219]) by balder.ntg.nl (Postfix) with ESMTP id 64F28101E9 for ; Sun, 9 Dec 2012 12:22:23 +0100 (CET) Original-Received: from mx3.mail.elte.hu (mx3.mail.elte.hu [157.181.1.138]) by filter3-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id qB9BMMDT011097 for ; Sun, 9 Dec 2012 12:22:22 +0100 Original-Received: from mailbox1.caesar.elte.hu ([157.181.151.157]) by mx3.mail.elte.hu with esmtp (Exim) id 1Thexf-0004NH-Qx from for ; Sun, 09 Dec 2012 12:22:21 +0100 Original-Received: from webmail.caesar.elte.hu ([157.181.151.223]:58923 helo=webmail.elte.hu) by mailbox1.caesar.elte.hu with esmtp (Exim 4.72) (envelope-from ) id 1Thexf-0007wa-J8 for ntg-context@ntg.nl; Sun, 09 Dec 2012 12:22:19 +0100 Original-Received: from localhost ([127.0.0.1] helo=webmail.caesar.elte.hu) by webmail.elte.hu with esmtp (Exim 4.72) (envelope-from ) id 1Thexf-0008SF-Ic for ntg-context@ntg.nl; Sun, 09 Dec 2012 12:22:19 +0100 Original-Received: from ip-87-82-207-196.easynet.co.uk (ip-87-82-207-196.easynet.co.uk [87.82.207.196]) by webmail.caesar.elte.hu (Horde Framework) with HTTP; Sun, 09 Dec 2012 12:22:19 +0100 Content-Disposition: inline User-Agent: Internet Messaging Program (IMP) H3 (4.3.7) X-Originating-IP: 87.82.207.196 X-ELTE-Username: reviczky X-ELTE-SpamScore: -2.0 X-ELTE-SpamLevel: X-ELTE-SpamCheck: no X-ELTE-SpamVersion: ELTE 2.0 X-ELTE-SpamCheck-Details: score=-2.0 required=5.9 tests=BAYES_00 autolearn=no SpamAssassin version=3.3.1 -2.0 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=157.181.1.138; country=HU; latitude=47.0000; longitude=20.0000; http://maps.google.com/maps?q=47.0000,20.0000&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 06Ixnmm9h - 8e07ede0c84e - 20121209 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.219 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 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 Original-Sender: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:79826 Archived-At: > Am 09.12.2012 um 02:35 schrieb reviczky@caesar.elte.hu: > > > Hi, > > > > The following minimal example works on live.contextgarden.net but > with the latest beta the command parameter doesn't seem work (the > "TEST" does not appear in the margin). > > > > \showframe > > \starttext > > \define[2]\cmd{\inmargin{TEST}} > > \startsubject[title=Title,command=\cmd] > > \input knuth > > \stopsubject > > \stoptext > > > > Can someone confirm this? > > > You have to use “alternative=command” before you can > apply a command: > > \define[2]\SubjectCommand > {\inmargin{TEST}} > > \setuphead > [subject] > [alternative=command, > command=\SubjectCommand] > > \showframe > > \starttext > \startsubject[title=Title] > \input knuth > \stopsubject > \stoptext Thanks. I only apply commands for certain headings, so is there a way to have that working within the startsubject or is it not inheriting from setupheads? \define[2]\SubjectCommand {\inmargin{TEST}} \showframe \starttext \startsubject[title=Intro] \input knuth \stopsubject \startsubject[title=Title,alternative=command,command=\SubjectCommand] \input knuth \stopsubject \stoptext This still doesn't show me the margin-text, whereas your example is fine. > When you want more control about the layout of your header use > \defineheadalternative to create it: > > \defineheadalternative > [Subject] > [alternative=horizontal, > renderingsetup=Subject] > > \startsetups[Subject] > \headsetupspacing > \inmargin{TEST} > \stopsetups > > \setuphead > [subject] > [alternative=Subject, > distance=0pt] > > \showframe > > \starttext > \startsubject[title=Title]% > \input knuth > \stopsubject > \stoptext That is great, thanks! Adam ___________________________________________________________________________________ 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 ___________________________________________________________________________________