From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Eric Schulte" Subject: Re: Sage Math - Maybe some inspiration for org-babel Date: Thu, 22 Oct 2009 08:23:07 -0600 Message-ID: References: <4adce61d.0508d00a.3475.2d8d@mx.google.com> <4adfede5.0f0bca0a.2c6c.131e@mx.google.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N0yZR-0000rU-Pg for emacs-orgmode@gnu.org; Thu, 22 Oct 2009 10:23:17 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N0yZN-0000pH-QH for emacs-orgmode@gnu.org; Thu, 22 Oct 2009 10:23:17 -0400 Received: from [199.232.76.173] (port=56200 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N0yZN-0000pC-NF for emacs-orgmode@gnu.org; Thu, 22 Oct 2009 10:23:13 -0400 Received: from mail-pw0-f47.google.com ([209.85.160.47]:34589) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1N0yZN-0004nn-BI for emacs-orgmode@gnu.org; Thu, 22 Oct 2009 10:23:13 -0400 Received: by pwj10 with SMTP id 10so1532588pwj.26 for ; Thu, 22 Oct 2009 07:23:12 -0700 (PDT) In-Reply-To: <4adfede5.0f0bca0a.2c6c.131e@mx.google.com> (Darlan Cavalcante Moreira's message of "Thu, 22 Oct 2009 02:30:07 -0300") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Darlan Cavalcante Moreira Cc: org-mode Mailinglist Darlan Cavalcante Moreira writes: > Hi Eric, > > My comments are also inline > > At Wed, 21 Oct 2009 09:11:50 -0600, > Eric Schulte wrote: [...] >> what behavior would you suggest results from a :hide header argument? > > My suggestion is that if a source block has the :hide header argument it should > be closed by default as if the user had pressed tab. The user could then press > tab at the "#BEGIN_SRC ..." line to show the content of the block and, maybe, > the block could be closed again if the cursor leaves the block. This can be > useful for other blocks as well. > That seems very reasonable. I'll pop this onto the TODO stack for org-babel (meaning hopefully something will happen at some time). > > Let me use the sage as inspiration again. In sage when you put the cursor above > the text-area a blue line is showed. If you click on this line a new text-area > is created above the current one but the really nice trick is that shift+click > creates an HTML text-area (with a tool-bar with bold, italic, centralized > buttons, etc). Then you can create a worksheet in sage such as > +-----------------------+ > | Some HTML text | > | describing a problem | > | Use jsMath for | > | nice equations | > | with latex syntax | > +-----------------------+ > |%hide | > | some hidden code that | > | generates some output | > +-----------------------+ > | solution of the | > | problem that was | > |calculated by the code | > +-----------------------+ > > That is, when you are only interested in the output and not in the code itself > you use the %hide comment. I'm not sure what is the best way to handle the :hide > argument when exporting. Maybe it is better to use it simple for folding in the > org buffer and use another option to control export of the block. yes, I would agree that we should restrict the :hide argument to folding in the org-mode buffer. Currently there is an :exports header argument which takes the self-explanatory values of - none - code - results - both > For example, a ":noexport" option in addition to ":hide" and a buffer > option "don't export hidden bocks" in case the user wants to avoid > exporting all blocks with the :hide option. > > >> >> > >> > That's my two cents. It is really amazing what you can do with org-mode and >> > org-babel and I'm not saying in that org-babel should became more similar to >> > sage. I only think that getting some inspiration from sage could be nice. >> > >> >> I agree completely, I'm sure that there are lessons to be learned from a >> project with such similarities. Now it's just a matter of getting to >> know a little bit more about Sage. >> >> Thanks -- Eric >> >> > >> > Regards, >> > >> > Darlan >> > >> > >> > _______________________________________________ >> > Emacs-orgmode mailing list >> > Remember: use `Reply All' to send replies to the list. >> > Emacs-orgmode@gnu.org >> > http://lists.gnu.org/mailman/listinfo/emacs-orgmode > > Regards, > > Darlan