From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/56214 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: Example markup Date: Fri, 12 Feb 2010 19:15:07 +0100 Message-ID: <4B759AAB.6040303@googlemail.com> References: <4B7587E6.3080207@gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1265998528 21463 80.91.229.12 (12 Feb 2010 18:15:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 12 Feb 2010 18:15:28 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Feb 12 19:15:25 2010 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Ng02z-0004S1-QB for gctc-ntg-context-518@m.gmane.org; Fri, 12 Feb 2010 19:15:21 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 0A8B0C9E37; Fri, 12 Feb 2010 19:17:17 +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 grq-cuMi8PS6; Fri, 12 Feb 2010 19:17:13 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 0FC7AC9D0A; Fri, 12 Feb 2010 19:17:13 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id DEFB4C9D0A for ; Fri, 12 Feb 2010 19:17:11 +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 pM73Bmpq8kG2 for ; Fri, 12 Feb 2010 19:17:09 +0100 (CET) Original-Received: from mail-bw0-f213.google.com (mail-bw0-f213.google.com [209.85.218.213]) by balder.ntg.nl (Postfix) with ESMTP id AC0D0C9D04 for ; Fri, 12 Feb 2010 19:17:09 +0100 (CET) Original-Received: by bwz5 with SMTP id 5so2262405bwz.3 for ; Fri, 12 Feb 2010 10:15:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=xxPDmPB7dac7yLmVUEd+4u8bqvbs4NHtrXlFLSB2wMQ=; b=LbAN0LqeHU9hxJWQfPaTFg6PbscVSxlDOBNaEas92S5+xUX2AnktE1WFgpHyUGW9C5 XLIAqpd/ycmgYHhfe2tH+8sGTSHEoSoAF47TIuqE8IPzhbsNzGdZA6kXAq6hLKFqJSL0 jlwqp7ieVrWR0HUb0YK8kDE3bV6YMWqwAH8b0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; b=mIB1+OLGSNLGQ/WRGlMLxjqEo/EX3Ittj3JdvV8UnPAH4DIuA9m3NAMGjqGCes1laO XkZ1iAwnIkP6/UUDzSI7TfzCULTU37rFEczTtKqcwaggTA+RHmn5T9HgfENXm94W4GXx VrduulCD58Kpx8NEh4WdeoN3+HB/O9p3wcVy4= Original-Received: by 10.204.9.134 with SMTP id l6mr1065302bkl.83.1265998510848; Fri, 12 Feb 2010 10:15:10 -0800 (PST) Original-Received: from ?192.168.2.23? (p5B293FBF.dip.t-dialin.net [91.41.63.191]) by mx.google.com with ESMTPS id 15sm1652429bwz.12.2010.02.12.10.15.08 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 12 Feb 2010 10:15:09 -0800 (PST) User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; de; rv:1.9.1.7) Gecko/20100111 Thunderbird/3.0.1 In-Reply-To: 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:56214 Archived-At: Am 12.02.10 18:59, schrieb Bernhard Rosensteiner: > maybe you mean something like that: > > \define[1]\example{\tfx#1\tfa} > brr, when you want to define it in this way you should use grouping, e.g. \define[1]\example{{\tfx#1}} a better solution is \define\example{\groupedcommand{\tfx}{}} because you can now write \example{...} and {\example ...} The best way is to use \definealternativestyle, e.g. \definealternativestyle [example] [\tfx] [\tfx] the command takes three arguments because you can set with the third argument a different behaviour in titles etc. A third way is \definestartstop, e.g. \definestartstop[example][style=\tfx] this creates not only the command \example but also a example environment where you get a smaller font. Wolfgang ___________________________________________________________________________________ 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 ___________________________________________________________________________________