From mboxrd@z Thu Jan 1 00:00:00 1970 From: Yu Subject: Re: Marking specific elements for folding? Date: Sat, 28 Jan 2012 15:24:35 +0100 Message-ID: References: <87bopp5b9w.fsf@ucl.ac.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([140.186.70.92]:40384) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rr9DJ-0007hW-QG for emacs-orgmode@gnu.org; Sat, 28 Jan 2012 09:25:10 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Rr9DI-0003Jn-AO for emacs-orgmode@gnu.org; Sat, 28 Jan 2012 09:25:09 -0500 Received: from mailout-de.gmx.net ([213.165.64.23]:41225) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1Rr9DH-0003I7-Vw for emacs-orgmode@gnu.org; Sat, 28 Jan 2012 09:25:08 -0500 Received: by lbbgg6 with SMTP id gg6so179652lbb.0 for ; Sat, 28 Jan 2012 06:25:05 -0800 (PST) In-Reply-To: <87bopp5b9w.fsf@ucl.ac.uk> 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 , org-mode mailing list Hello! Thanks for the suggestion, but sadly it doesn't entirely fit my intention; The subheadings in particular kill the purpose of hiding, because it makes something, of which I want only a "here is something folded" indication in a full text view show up in the content view and forces me to introduce subheadings, were I'd rather not have any (after all, overstructuring is as much a diversion from the actual workflow as understructuring). As an alternative (and when the stuff is too unimportant for the main document but still should be exportable as a separate pdf), outsourcing parts to an external org file would be okay too, but there I did not yet find a possibility to refer to a table in a totally different file, e.g. * There is a data table in the main file. * In a child file I want to do some processing using Babel (in particular with gnuplot, but maybe also python, elisp... depending on the case). Here I want to avoid having to copy the tables back and forth, but would rather directly use the data from the main file in the child file (in order to avoid having outdated data in the child file). HOWEVER: For the case where I really just want to hide parts of the documents, that will never be exported as a document and usually shouldn't be visible while editing, I found a solution right now, using the /drawers/ functionality. : # .. Must add PROPERTIES drawer, because otherwise : # .. tree local property definitions will be exported as text. : #+DRAWERS: PROPERTIES HIDDEN : : * Hello World : : #+TBLNAME: hello-world-table : | This is a data table | : : # .. This block is folded to just : # .. :HIDDEN:... : # .. unless explicitly unfolded. : :HIDDEN: : #+BEGIN_SRC gnuplot :var data=3Dhello-world-table :file foo.pdf :<"fold that block" header argument> : set term pdfcairo mono : plot data using 1:2 blablabla : #+END_SRC : :END: : : And this table looks like [[foo.pdf]] when folded. king regards, Yu 2012/1/27 Eric S Fraga : > 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. =C2=A0I do this frequently. =C2= =A0See the > attached file for a simple example. =C2=A0The really nice thing, for me, = is > that you can have the results appearing *before* the data and > code... =C2=A0This is not necessarily so long as you can put the results = in > some other heading, say. > > > > 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) >