From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/56215 Path: news.gmane.org!not-for-mail From: Bernhard Rosensteiner Newsgroups: gmane.comp.tex.context Subject: Re: Example markup Date: Fri, 12 Feb 2010 19:28:58 +0100 Message-ID: References: <4B7587E6.3080207@gmail.com> <4B759AAB.6040303@googlemail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1077) Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1265999350 24236 80.91.229.12 (12 Feb 2010 18:29:10 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 12 Feb 2010 18:29:10 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Feb 12 19:29:08 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 1Ng0GJ-0006yr-MP for gctc-ntg-context-518@m.gmane.org; Fri, 12 Feb 2010 19:29:07 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 965F9C9E28; Fri, 12 Feb 2010 19:31:05 +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 MDzn9rokVdNF; Fri, 12 Feb 2010 19:31:02 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id AE359C9D0A; Fri, 12 Feb 2010 19:31:02 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 23310C9D0A for ; Fri, 12 Feb 2010 19:31:01 +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 Spw4d3-ERit0 for ; Fri, 12 Feb 2010 19:30:58 +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 BEBECC9D04 for ; Fri, 12 Feb 2010 19:30:58 +0100 (CET) Original-Received: by bwz5 with SMTP id 5so2272427bwz.3 for ; Fri, 12 Feb 2010 10:29:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:content-type:mime-version :subject:from:in-reply-to:date:content-transfer-encoding:message-id :references:to:x-mailer; bh=Cq0jZyxMCRsuYFJgmVasKhAnQ9A8eIcSDtiEHNrCmLo=; b=YzJbqWseJbOcLcnf1EoG2g324l0SPRVnGitP4HyNR1xDvVr+CEZHoaPVm1PyAUHIEc 1MwC2lgUAfwodZ1Tuil5J83yQPbxziPWNod2Jzi8AWrYetLbgpC2UT4XHQZOTghUwkHx xmP76K0a95lq6ffTS5gOOPFMQChpWm2JohigY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer; b=R18dkexGjM/QKLhA2DudMI9IPn21XXlbJu7IQaX0QLn7m7OeQn7HVQlUvGUZJnZIQ9 QMSct0tcCVfypU/D7Q+9cDb0Cur3uqOom6oT/KiGhOcQKFYhxP2fYmAWxNIkVp/sRDVF e+vYuuCPr6bpqRW8QFT6Eua0iJHU3dOX5O4yI= Original-Received: by 10.204.15.139 with SMTP id k11mr1017209bka.207.1265999339857; Fri, 12 Feb 2010 10:28:59 -0800 (PST) Original-Received: from ?78.142.86.196? ([78.142.86.196]) by mx.google.com with ESMTPS id 15sm1663232bwz.0.2010.02.12.10.28.59 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 12 Feb 2010 10:28:59 -0800 (PST) In-Reply-To: <4B759AAB.6040303@googlemail.com> X-Mailer: Apple Mail (2.1077) 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:56215 Archived-At: Am 12.02.2010 um 19:15 schrieb Wolfgang Schuster: > 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=3D\tfx] > = > this creates not only the command \example but also a example > environment where you get a smaller font. posting amateur solutions brings always the pro=B4s on the scene ;-) thanks for your solutions best regards Bernhard ___________________________________________________________________________= ________ 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 ___________________________________________________________________________= ________