From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/91835 Path: news.gmane.org!not-for-mail From: luigi scarso Newsgroups: gmane.comp.tex.context Subject: Re: Environments Date: Tue, 7 Jul 2015 11:05:34 +0200 Message-ID: References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0836903367==" X-Trace: ger.gmane.org 1436260044 25629 80.91.229.3 (7 Jul 2015 09:07:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 7 Jul 2015 09:07:24 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Jul 07 11:07:10 2015 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 1ZCOqL-0003Rv-Kk for gctc-ntg-context-518@m.gmane.org; Tue, 07 Jul 2015 11:07:09 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id B1DF010245 for ; Tue, 7 Jul 2015 11:07:08 +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 hUKD6AO0SVMb for ; Tue, 7 Jul 2015 11:07:07 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id BEBD710263 for ; Tue, 7 Jul 2015 11:06:06 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id E434E10220 for ; Tue, 7 Jul 2015 11:06:02 +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 jf-3PvWlH8HQ for ; Tue, 7 Jul 2015 11:06:01 +0200 (CEST) Original-Received: from filter4-ams.mf.surf.net (filter4-ams.mf.surf.net [192.87.102.72]) by balder.ntg.nl (Postfix) with ESMTP id 4A0E0101F6 for ; Tue, 7 Jul 2015 11:06:00 +0200 (CEST) Original-Received: from mail-wg0-x22c.google.com (mail-wg0-x22c.google.com [IPv6:2a00:1450:400c:c00::22c]) by filter4-ams.mf.surf.net (8.14.4/8.14.4/Debian-4) with ESMTP id t6795ZwC020585 (version=TLSv1/SSLv3 cipher=AES128-GCM-SHA256 bits=128 verify=NOT) for ; Tue, 7 Jul 2015 11:05:40 +0200 Original-Received: by wgck11 with SMTP id k11so161893160wgc.0 for ; Tue, 07 Jul 2015 02:05:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=AVQjxMAHFNoC0+efL9V/j+P28YPgAhfnS6fE9Qq7Ztg=; b=beRt4kOhsa0S2jzkPBtPogu/bIJH4zYE2v10Pb6KwL4Vr0yoxET7Ae3qPSe7BloZzg BZtbKp41fxVwZJFnSTa9j+Z6LRATfpQ9gAnwyyuJe52Vf3v0LA7t2SFIN9XNVT3ITr3v erfwUYytVEKZ1nFt9IEKkNAIP5yLXgYE/iENkFMHkHxO77qfJ7I/XAWMDNWRYix4pwN/ /b12A8ZPVifoMfytHtzMz96Ulv9/Vd4iP5Y/yZ9VuqkcnstsoLAc8o1ej6l2o9f2MGQP qBfkh5gRiuA/6hMhWN5dn2TQsX59jvQXSeWypHOsi1RoRHa16BMNSuDtroNSwa1ErU87 Kpug== X-Received: by 10.181.25.234 with SMTP id it10mr98539390wid.41.1436259934887; Tue, 07 Jul 2015 02:05:34 -0700 (PDT) Original-Received: by 10.194.200.106 with HTTP; Tue, 7 Jul 2015 02:05:34 -0700 (PDT) In-Reply-To: X-Bayes-Prob: 0.0001 (Score 0, tokens from: ntg-context@ntg.nl, base:default, @@RPTN) X-CanIt-Geo: ip=2a00:1450:400c:c00::22c; country=BE; region=Brussels Capital; city=Brussels; latitude=50.8466; longitude=4.3528; http://maps.google.com/maps?q=50.8466,4.3528&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 01ONl5zPy - 24a78a75fc15 - 20150707 (trained as not-spam) Received-SPF: pass (filter4-ams.mf.surf.net: domain of luigi.scarso@gmail.com designates 2a00:1450:400c:c00::22c as permitted sender) receiver=filter4-ams.mf.surf.net; client-ip=2a00:1450:400c:c00::22c; envelope-from=; helo=mail-wg0-x22c.google.com; identity=mailfrom X-Scanned-By: CanIt (www . roaringpenguin . com) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.16 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" Xref: news.gmane.org gmane.comp.tex.context:91835 Archived-At: --===============0836903367== Content-Type: multipart/alternative; boundary=001a1136cbd8396433051a45537d --001a1136cbd8396433051a45537d Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Tue, Jul 7, 2015 at 10:49 AM, Hans Aberg wrote: > ConTeXt does not seem to have LaTeX style environments. FYI, for the > latter, I developed [1] a long time ago more advanced ones: > > The environments admit hooks, i.e., code executed before and after the > local group. The name can be omitted in the closing, which works also whe= n > using one environment to define a new. And a more compact syntax. > > > 1. > https://secure2.storegate.com/Shares/Home.aspx?ShareID=3Ddb8465b3-112f-41= 94-8909-1d42ff149e32 > > Compile 'lualatex test0.tex=E2=80=99. > > > > _________________________________________________________________________= __________ > 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 > > _________________________________________________________________________= __________ For "LaTeX style environments" do you mean e.g. https://it.sharelatex.com/learn/Environments ? (just to be sure ) In this case context has the \define commands as for example http://wiki.contextgarden.net/Command/definetyping Context has also http://wiki.contextgarden.net/Command/startenvironment but I suppose it's not what you mean. --=20 luigi --001a1136cbd8396433051a45537d Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable


On Tue, Jul 7, 2015 at 10:49 AM, Hans Aberg <haberg-1@telia.com&g= t; wrote:
ConTeXt does not seem to have LaTeX st= yle environments. FYI, for the latter, I developed [1] a long time ago more= advanced ones:

The environments admit hooks, i.e., code executed before and after the loca= l group. The name can be omitted in the closing, which works also when usin= g one environment to define a new. And a more compact syntax.


1. http= s://secure2.storegate.com/Shares/Home.aspx?ShareID=3Ddb8465b3-112f-4194-890= 9-1d42ff149e32

Compile 'lualatex test0.tex=E2=80=99.


___________________________________________________________________________= ________
If your question is of interest to others as well, please add an entry to t= he Wiki!

maillist : ntg-context@ntg.nl / <= a href=3D"http://www.ntg.nl/mailman/listinfo/ntg-context" rel=3D"noreferrer= " target=3D"_blank">http://www.ntg.nl/mailman/listinfo/ntg-context
webpage=C2=A0 : http://www.pragma-ade.nl / http://tex.aanhet.net
archive=C2=A0 : http://foundry.supelec.fr/projects/con= textrev/
wiki=C2=A0 =C2=A0 =C2=A0: http://contextgarden.net
___________________________________________________________________________= ________



For =C2=A0"LaTeX style environments" do you mean=
e.g.
https://it.sharelatex.com/learn/Environments
? =C2=A0(just to be sure )

In this case =C2=A0context has the \define<something> commands as f= or example

Context has also=C2=A0
but I suppos= e it's not what you mean.

--= =C2=A0
luigi=
--001a1136cbd8396433051a45537d-- --===============0836903367== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly90ZXguYWFuaGV0Lm5ldAphcmNoaXZlICA6IGh0dHA6Ly9mb3VuZHJ5LnN1cGVsZWMu ZnIvcHJvamVjdHMvY29udGV4dHJldi8Kd2lraSAgICAgOiBodHRwOi8vY29udGV4dGdhcmRlbi5u ZXQKX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX18= --===============0836903367==--