From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric S Fraga Subject: Re: Marking specific elements for folding? Date: Fri, 27 Jan 2012 17:02:35 +0000 Message-ID: <87bopp5b9w.fsf@ucl.ac.uk> References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([140.186.70.92]:47283) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rqq3X-0001pn-H6 for emacs-orgmode@gnu.org; Fri, 27 Jan 2012 12:57:48 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Rqq3W-00021A-3Y for emacs-orgmode@gnu.org; Fri, 27 Jan 2012 12:57:47 -0500 Received: from vscane-b.ucl.ac.uk ([144.82.108.141]:43881) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rqq3V-00020Y-Vb for emacs-orgmode@gnu.org; Fri, 27 Jan 2012 12:57:46 -0500 In-Reply-To: (Yu's message of "Thu, 26 Jan 2012 21:11:17 +0100") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Yu Cc: org-mode mailing list --=-=-= Content-Type: text/plain Yu 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. --=-=-= Content-Type: text/org Content-Disposition: attachment; filename=t.org Content-Description: simple example #+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 --=-=-= Content-Type: text/plain 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) --=-=-=--