From: Eric S Fraga <e.fraga@ucl.ac.uk>
To: Yu <yu_icq@gmx.at>
Cc: org-mode mailing list <emacs-orgmode@gnu.org>
Subject: Re: Marking specific elements for folding?
Date: Fri, 27 Jan 2012 17:02:35 +0000 [thread overview]
Message-ID: <87bopp5b9w.fsf@ucl.ac.uk> (raw)
In-Reply-To: <CANtbJLEUzDppq8Ntu6DcnURcupc5c=-+a-0bpLUCNtaZ-5_a4A@mail.gmail.com> (Yu's message of "Thu, 26 Jan 2012 21:11:17 +0100")
[-- Attachment #1: Type: text/plain, Size: 1162 bytes --]
Yu <yu_icq@gmx.at> writes:
> Hello!
>
> I was wondering, if there is a way to mark specific elements for
> staying folded unless explicitly shown. Reading the manual I only
> found possibilities to control the global folding of sections and
> blocks in general.
>
> However, what I want to do is:
> - Embed a table of numerical data in my org-mode file.
> - Perform calculations on the data, using the spread sheet capabilities.
> - Plot the data, preferably using a (probably lengthy) gnuplot script.
> - Export only the result graph.
>
> However, the calculations are usually not wanted to be seen, when
> looking at the file, so I'd like to specify, that this specific table
> and this specific gnuplot code block are to be folded by default.
>
> Is there some way to achieve this?
If you are not planning on exporting the data and code, you can put them
into a subheading and "COMMENT" it out. I do this frequently. See the
attached file for a simple example. The really nice thing, for me, is
that you can have the results appearing *before* the data and
code... This is not necessarily so long as you can put the results in
some other heading, say.
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: simple example --]
[-- Type: text/org, Size: 436 bytes --]
#+OPTIONS: H:3 num:nil toc:nil \n:nil @:t ::t |:t ^:t -:t f:t *:t <:t
#+OPTIONS: TeX:t LaTeX:t skip:nil d:nil todo:t pri:nil tags:not-in-toc
* Results
Our analysis gives us these results:
#+results: generate-results
: 6
*** COMMENT code and data
#+name: datatable
| 1 |
| 2 |
| 3 |
#+name: generate-results
#+begin_src octave :export results :results value :var x=datatable
sum(x)
#+end_src
[-- Attachment #3: Type: text/plain, Size: 137 bytes --]
HTH,
eric
--
: Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 24.0.92.1
: using Org-mode version 7.8.03 (release_7.8.03.243.g0e7f)
next prev parent reply other threads:[~2012-01-27 17:57 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-01-26 20:11 Marking specific elements for folding? Yu
2012-01-26 20:36 ` Achim Gratz
2012-01-27 13:43 ` Sebastien Vauban
2012-01-27 17:02 ` Eric S Fraga [this message]
2012-01-28 14:24 ` Yu
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=87bopp5b9w.fsf@ucl.ac.uk \
--to=e.fraga@ucl.ac.uk \
--cc=emacs-orgmode@gnu.org \
--cc=yu_icq@gmx.at \
/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).