emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Eric Schulte" <schulte.eric@gmail.com>
To: Darlan Cavalcante Moreira <darcamo@gmail.com>
Cc: org-mode Mailinglist <emacs-orgmode@gnu.org>
Subject: Re: Sage Math - Maybe some inspiration for org-babel
Date: Thu, 22 Oct 2009 08:23:07 -0600	[thread overview]
Message-ID: <m2k4yna4ok.fsf@gmail.com> (raw)
In-Reply-To: <4adfede5.0f0bca0a.2c6c.131e@mx.google.com> (Darlan Cavalcante Moreira's message of "Thu, 22 Oct 2009 02:30:07 -0300")

Darlan Cavalcante Moreira <darcamo@gmail.com> 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

      reply	other threads:[~2009-10-22 14:23 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-10-19 22:20 Sage Math - Maybe some inspiration for org-babel Darlan Cavalcante Moreira
2009-10-21 15:11 ` Eric Schulte
2009-10-22  5:30   ` Darlan Cavalcante Moreira
2009-10-22 14:23     ` Eric Schulte [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m2k4yna4ok.fsf@gmail.com \
    --to=schulte.eric@gmail.com \
    --cc=darcamo@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).