From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/87163 Path: news.gmane.org!not-for-mail From: Fabrice Newsgroups: gmane.comp.tex.context Subject: Use a predefined command in a new environment Date: Tue, 29 Apr 2014 20:16:44 +0200 Message-ID: <535FEC8C.9020308@wanadoo.fr> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1"; Format="flowed" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1398795431 14414 80.91.229.3 (29 Apr 2014 18:17:11 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 29 Apr 2014 18:17:11 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Tue Apr 29 20:17:06 2014 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([5.39.185.229]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1WfCaY-000720-BT for gctc-ntg-context-518@m.gmane.org; Tue, 29 Apr 2014 20:17:06 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id D97D41023D for ; Tue, 29 Apr 2014 20:17:05 +0200 (CEST) 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 CYunLF7JQZrp for ; Tue, 29 Apr 2014 20:17:05 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 4ADD410201 for ; Tue, 29 Apr 2014 20:17:02 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 90AB3101E7 for ; Tue, 29 Apr 2014 20:16:58 +0200 (CEST) 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 S2-FIaN44sKJ for ; Tue, 29 Apr 2014 20:16:54 +0200 (CEST) Original-Received: from filter2-til.mf.surf.net (filter2-til.mf.surf.net [194.171.167.218]) by balder.ntg.nl (Postfix) with ESMTP id C0AA9101E1 for ; Tue, 29 Apr 2014 20:16:46 +0200 (CEST) Original-Received: from smtp.smtpout.orange.fr (smtp02.smtpout.orange.fr [80.12.242.124]) by filter2-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id s3TIGjAk013804 for ; Tue, 29 Apr 2014 20:16:45 +0200 Original-Received: from [192.168.1.10] ([90.34.138.187]) by mwinf5d55 with ME id vuGk1n00Q42mdpE03uGkuc; Tue, 29 Apr 2014 20:16:45 +0200 X-ME-Helo: [192.168.1.10] X-ME-Auth: Y291dnJldXIuZmFicmljZUB3YW5hZG9vLmZy X-ME-Date: Tue, 29 Apr 2014 20:16:45 +0200 X-ME-IP: 90.34.138.187 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Icedove/24.4.0 X-Bayes-Prob: 0.0001 (Score 0, tokens from: ntg-context@ntg.nl, base:default, @@RPTN) X-CanIt-Geo: ip=80.12.242.124; country=FR; latitude=48.8600; longitude=2.3500; http://maps.google.com/maps?q=48.8600,2.3500&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0TLTSgJy9 - bb307f316254 - 20140429 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.218 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:87163 Archived-At: Hello, Further to the discussion topic "Numbering in a frame with a new = environment" I want to use ACFRAME (thanks Wolfgang) command in a new environment. Is this the best way to achieve this ? thank you, Fabrice > \defineframed > [ACFRAME] > [frame=3Doff, > width=3Dfit, > align=3Dflushleft, > location=3Dlow, > background=3Dcolor, > backgroundcolor=3Dlightgray] > > > \setupbodyfont[pagella,11pt] > > \definetextbackground > [definitionframe] > [command=3D\ACFRAME, > backgroundoffset=3D.25cm, > offset=3D.5cm, > frame=3Doff, > location=3Dparagraph, > frame=3Doff,] > > > > \defineenumeration > [defi] > [text=3DD=E9finition, > before=3D{\startdefinitionframe}, > after=3D{\stopdefinitionframe}, > style=3Ditalic, > stopper=3D, > ] > \starttext > > \startdefi > \input knuth > \stopdefi > \stoptext ___________________________________________________________________________= ________ 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 ___________________________________________________________________________= ________