From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/74178 Path: news.gmane.org!not-for-mail From: =?windows-1252?Q?Pablo_Rodr=EDguez?= Newsgroups: gmane.comp.tex.context Subject: Re: bug with headcommand=type in definedescription? Date: Sun, 29 Jan 2012 19:19:38 +0100 Message-ID: <4F258DBA.5040404@web.de> References: <4F253003.5050509@web.de> <41E26CE9-7779-4E1F-8791-23F59D54E44D@googlemail.com> <4F2562F4.2030904@web.de> <73F2FD0C-0EF4-4375-8D14-FC4F098B7474@googlemail.com> <4F258506.2080601@web.de> <2EA0ECE5-07AA-46AF-9663-BDAA4BAD689C@googlemail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1327861203 12208 80.91.229.3 (29 Jan 2012 18:20:03 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 29 Jan 2012 18:20:03 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sun Jan 29 19:20:01 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 1RrZM7-0001xs-GU for gctc-ntg-context-518@m.gmane.org; Sun, 29 Jan 2012 19:19:59 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 9C751CB21B; Sun, 29 Jan 2012 19:19:58 +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 lrTqyBkKOxWk; Sun, 29 Jan 2012 19:19:56 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 31C54CB20C; Sun, 29 Jan 2012 19:19:56 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 747B3CB20D for ; Sun, 29 Jan 2012 19:19:54 +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 ho8GQxOkdVuQ for ; Sun, 29 Jan 2012 19:19:43 +0100 (CET) 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 9049BCB208 for ; Sun, 29 Jan 2012 19:19:43 +0100 (CET) Original-Received: from fmmailgate02.web.de (fmmailgate02.web.de [217.72.192.227]) by filter4-nij.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id q0TIJgxS002511 for ; Sun, 29 Jan 2012 19:19:42 +0100 Original-Received: from moweb001.kundenserver.de (moweb001.kundenserver.de [172.19.20.114]) by fmmailgate02.web.de (Postfix) with ESMTP id 808141C088606 for ; Sun, 29 Jan 2012 19:19:42 +0100 (CET) Original-Received: from [192.168.1.33] ([88.7.29.173]) by smtp.web.de (mrweb002) with ESMTPA (Nemesis) id 0MWirL-1S7M8M40RH-00XQkZ; Sun, 29 Jan 2012 19:19:42 +0100 User-Agent: Mozilla/5.0 (X11; Linux i686; rv:9.0) Gecko/20111222 Thunderbird/9.0 In-Reply-To: <2EA0ECE5-07AA-46AF-9663-BDAA4BAD689C@googlemail.com> X-Provags-ID: V02:K0:oFayu1d5zNqVZnrkDDFaE8bny9b55rcempTU0fsiQt7 eW/XHuWi5wbeB/ourdkBGqs4zCgnS0VaM4lAl1r+uicbdrEJAo l7ni7oiUQv7mzA5FE01E1JVKKrraXTjIQvMQq267AGUuiWckN3 J+cbjEDeP0+RPFkt7ahICtzR1dtGMhAF8zOClV2cvV2vGQJHXL 48iN+IF9fzxM4kiNbszLQ== X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=217.72.192.227; country=DE; latitude=51.0000; longitude=9.0000; http://maps.google.com/maps?q=51.0000,9.0000&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 04GrujGzm - 40f4a0d067b8 - 20120129 (trained as not-spam) 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:74178 Archived-At: On 01/29/2012 07:09 PM, Wolfgang Schuster wrote: >> >> The font can be fixed using headstyle, but the location of the title is >> important for the document. > > You can use a two step mechanism where the commands you use in the document > pass the content to a internal description environment. > > \usemodule[annotation] > > \definedescription[abcdescription] > > \define[2]\AbcCommand > {\startabcdescription{\tex{\placeannotationtitle}}% > \placeannotationcontent > \stopabcdescription} > > \defineannotation[abc][alternative=command,command=\AbcCommand] > > \starttext > > %\abc{starttext}{This is a description for \tex{starttext}} > > \abc[title=starttext]{This is a description for \tex{starttext}} > > \startabc[title=starttext]This is a description for \tex{starttext}\stopabc > > \stoptext Thanks for the fix, Wolfgang. Pablo -- http://www.oudeis.tk ___________________________________________________________________________________ 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 ___________________________________________________________________________________