From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Kitchin Subject: Re: headers on special blocks Date: Mon, 28 Mar 2016 12:25:09 -0400 Message-ID: References: <87k2kmrb36.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:35047) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1akZyc-0007Hj-FW for emacs-orgmode@gnu.org; Mon, 28 Mar 2016 12:25:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1akZyZ-0001QX-7x for emacs-orgmode@gnu.org; Mon, 28 Mar 2016 12:25:14 -0400 Received: from mail-qk0-x235.google.com ([2607:f8b0:400d:c09::235]:35970) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1akZyZ-0001QN-32 for emacs-orgmode@gnu.org; Mon, 28 Mar 2016 12:25:11 -0400 Received: by mail-qk0-x235.google.com with SMTP id i4so79360401qkc.3 for ; Mon, 28 Mar 2016 09:25:10 -0700 (PDT) In-reply-to: <87k2kmrb36.fsf@nicolasgoaziou.fr> 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: Nicolas Goaziou Cc: Org Mode Mailing List If anyone is interested, here is a way I am using headers on special blocks: http://kitchingroup.cheme.cmu.edu/blog/2016/03/28/Another-approach-to-embedded-molecular-data-in-org-mode/ The org-source can be found here: http://kitchingroup.cheme.cmu.edu/org/2016/03/28/Another-approach-to-embedded-molecular-data-in-org-mode.org It is kind of interesting I think. Nicolas Goaziou writes: > Hello, > > John Kitchin writes: > >> I am playing around with storing data in special blocks. For example, >> here is an example bit of "data" which is the CH4 (methane) molecule in >> SMILES format in a MOLECULE block. >> >> >> #+header: :format smiles >> #+name: methane-smiles >> #+BEGIN_MOLECULE >> C >> #+END_MOLECULE >> >> Is is legal syntax to put a header in like this? It works, as in it >> parses to >> >> (special-block >> (:type "MOLECULE" :begin 240 :end 323 :hiddenp nil >> :contents-begin 305 :contents-end 307 :post-blank 1 >> :post-affiliated 288 :header >> (":format smiles") >> :name "methane-smiles" :parent nil)) >> >> >> but I haven't seen any documentation for headers on a special block. > > Almost all elements accept HEADER affiliated keywords. They work the > same in every type of element but ATM, only source blocks make use of > them. > > In a nutshell, those locations are up for grabs. > > Regards, -- Professor John Kitchin Doherty Hall A207F Department of Chemical Engineering Carnegie Mellon University Pittsburgh, PA 15213 412-268-7803 @johnkitchin http://kitchingroup.cheme.cmu.edu