From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/81113 Path: news.gmane.org!not-for-mail From: Aditya Mahajan Newsgroups: gmane.comp.tex.context Subject: Re: reStructuredText module Date: Tue, 12 Mar 2013 19:21:05 -0400 (EDT) Message-ID: References: <513E68B9.4040608@meahan.net> <20130312003116.GA7509@phlegethon> <513F1F60.4020003@meahan.net> <20130312202355.GA8066@phlegethon> <20130312214225.GA11494@phlegethon> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="8323328-843877508-1363130466=:28048" X-Trace: ger.gmane.org 1363130485 21235 80.91.229.3 (12 Mar 2013 23:21:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 12 Mar 2013 23:21:25 +0000 (UTC) Cc: Hans Hagen To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Mar 13 00:21:46 2013 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 1UFYVt-0004HD-Nc for gctc-ntg-context-518@m.gmane.org; Wed, 13 Mar 2013 00:21:45 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id E2F7E101EA; Wed, 13 Mar 2013 00:21:22 +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 neUQkYw6+5x7; Wed, 13 Mar 2013 00:21:20 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id E9D5E101E3; Wed, 13 Mar 2013 00:21:19 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id D8030101E3 for ; Wed, 13 Mar 2013 00:21: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 se5vJJjewJCU for ; Wed, 13 Mar 2013 00:21:14 +0100 (CET) Original-Received: from filter5-til.mf.surf.net (filter5-til.mf.surf.net [194.171.167.221]) by balder.ntg.nl (Postfix) with ESMTP id 97B6A101E2 for ; Wed, 13 Mar 2013 00:21:14 +0100 (CET) Original-Received: from hellskitchen.mr.itd.umich.edu (smtp.mail.umich.edu [141.211.14.82]) by filter5-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id r2CN6pwl011039 for ; Wed, 13 Mar 2013 00:06:54 +0100 Original-Received: FROM Decentralized.ECE.McGill.CA (Decentralized.ECE.McGill.CA [132.206.69.142]) By hellskitchen.mr.itd.umich.edu ID 513FB862.6D650.18044 ; Authuser adityam; 12 Mar 2013 19:21:06 EDT In-Reply-To: <20130312214225.GA11494@phlegethon> User-Agent: Alpine 2.02 (LNX 1266 2009-07-14) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=141.211.14.82; country=US; region=MI; city=Ann Arbor; postalcode=48109; latitude=42.2923; longitude=-83.7145; metrocode=505; areacode=734; http://maps.google.com/maps?q=42.2923,-83.7145&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0WJaL6P19 - b6b609d4d4a8 - 20130313 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.221 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:81113 Archived-At: This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --8323328-843877508-1363130466=:28048 Content-Type: TEXT/PLAIN; charset=utf-8; format=flowed Content-Transfer-Encoding: QUOTED-PRINTABLE On Tue, 12 Mar 2013, Philipp Gesang wrote: > =C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7 > >> On Tue, 12 Mar 2013, Philipp Gesang wrote: >> >> A better way to handle this is to provide macros \startRSTcontainer >> ... \stopRSTcontainer and translate the above to > > I considered adding a generator \defineRSTcontainer with the > usual interface (e.g. [command=3D\framed,frame=3Don]). This won=E2=80=99t > work because the output is supposed to be a self-contained > document. The goal is for the output to consist of ordinary > Context macros only so it can be imported without loading further > code. (I=E2=80=99m undecided regarding the requirement of the =E2=80=9C\R= ST...=E2=80=9D > prefix, though.) Personally, I think that it is reasonable to expect the users to import a= =20 module. > Honestly, I have no idea. Depending on the style sheet a div can > be a float or aligned or have a shaded background. The current > approach leaves the implementation to the user. Another option is to change the generated output to \start[xyzzy] .... \stop When the environment xyzzy exists, this is (supposed to be, see below)=20 equivalent to \startxyzzy .... \stopxyzzy otherwise, this is equivalent to \bgroup .... \egroup This way, you maintain your goal of having output that runs out of the=20 box, but at the same time generate readable code. It can then be left upto= =20 the user to define the xyzzy environment (Of course, this method does not= =20 support passing arguments to environment, but then neither does your=20 proposed solution). @Hans, there is a bug in core-sys.mkiv: There is a missing \expandafter, an= d currentstartstop should be changed to m_syst_start_stop. \def\syst_start_yes[#1]% {\edef\m_syst_start_stop{#1}% \ifx\m_syst_start_stop\empty \let\syst_stop_indeed\donothing \else\ifcsname\e!start\m_syst_start_stop\endcsname \expandafter\let\expandafter\syst_stop_indeed\csname\e!stop\m_syst_st= art_stop\endcsname \csname\e!start\m_syst_start_stop\expandafter\expandafter\expandafter= \endcsname \else \let\syst_stop_indeed\donothing \fi\fi} Aditya --8323328-843877508-1363130466=:28048 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 ___________________________________________________________________________________ --8323328-843877508-1363130466=:28048--