From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/74177 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: bug with headcommand=type in definedescription? Date: Sun, 29 Jan 2012 19:09:59 +0100 Message-ID: <2EA0ECE5-07AA-46AF-9663-BDAA4BAD689C@googlemail.com> 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> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Apple Message framework v1251.1) Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1327860622 8594 80.91.229.3 (29 Jan 2012 18:10:22 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 29 Jan 2012 18:10:22 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sun Jan 29 19:10:22 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 1RrZCj-0006RO-6g for gctc-ntg-context-518@m.gmane.org; Sun, 29 Jan 2012 19:10:17 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 82C69CB21A; Sun, 29 Jan 2012 19:10:16 +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 8WUUDSKWvsI7; Sun, 29 Jan 2012 19:10:14 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id E4E8ECB20C; Sun, 29 Jan 2012 19:10:13 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 48C4DCB20C for ; Sun, 29 Jan 2012 19:10:13 +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 cF-OKcyThclG for ; Sun, 29 Jan 2012 19:10:02 +0100 (CET) Original-Received: from filter4-til.mf.surf.net (filter4-til.mf.surf.net [194.171.167.220]) by balder.ntg.nl (Postfix) with ESMTP id 679CECB20B for ; Sun, 29 Jan 2012 19:10:02 +0100 (CET) Original-Received: from mail-ey0-f169.google.com (mail-ey0-f169.google.com [209.85.215.169]) by filter4-til.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id q0TIA0Ka014372 for ; Sun, 29 Jan 2012 19:10:01 +0100 Original-Received: by eaaa11 with SMTP id a11so1365406eaa.14 for ; Sun, 29 Jan 2012 10:10:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer; bh=XeeD5CSBhGZ+yUn7zUlSqL5M59EzuJXJQwvWx+MxfKg=; b=XDadJnIfhbenYxE9DTzf8fxQNF0rymXOLPIoWJo0g7Xx8r7gozzDggVwSL33RNJx2S Lgd7ZB7VChbgvc4VH3+EluG4nPjXhXOQnznqsNjmzty8GNTaowdHCKJQEYEJFtU+4rsE cl5FWbogVHHp9j6ZqCHVKhBRKMapA6rCZOwFg= Original-Received: by 10.213.4.206 with SMTP id 14mr2379601ebs.96.1327860600860; Sun, 29 Jan 2012 10:10:00 -0800 (PST) Original-Received: from [192.168.2.35] (p57AF9E63.dip.t-dialin.net. [87.175.158.99]) by mx.google.com with ESMTPS id o49sm12917906eeb.7.2012.01.29.10.09.58 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 29 Jan 2012 10:09:59 -0800 (PST) In-Reply-To: <4F258506.2080601@web.de> X-Mailer: Apple Mail (2.1251.1) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.215.169; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 05Grua1MQ - 74bb376f2738 - 20120129 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.216 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:74177 Archived-At: Am 29.01.2012 um 18:42 schrieb Pablo Rodr=EDguez: > On 01/29/2012 06:24 PM, Wolfgang Schuster wrote: >> = >> [...] >> = >> I tested it now myself and what you want doesn=92t work in this way. As = you can see >> in the example below =93headcommand=3D\tex=94 does work when you also use >> =93location=3Dcommand=94 but only with some limitations, e.g. the font i= s wrong and >> you loose also the option the change the location of the title. > = > Thanks for your reply, Wolfgang. > = > 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=3Dcommand,command=3D\AbcCommand] \starttext %\abc{starttext}{This is a description for \tex{starttext}} \abc[title=3Dstarttext]{This is a description for \tex{starttext}} \startabc[title=3Dstarttext]This is a description for \tex{starttext}\stopa= bc \stoptext Wolfgang ___________________________________________________________________________= ________ If your question is of interest to others as well, please add an entry to t= he Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-cont= ext webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________= ________