From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marcin Borkowski Subject: How to extract header arguments of a special block? Date: Tue, 20 Jan 2015 01:27:26 +0100 Message-ID: <877fwigutt.fsf@wmi.amu.edu.pl> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:50690) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YDMfa-0003in-0E for emacs-orgmode@gnu.org; Mon, 19 Jan 2015 19:27:46 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YDMfW-0007Vl-Le for emacs-orgmode@gnu.org; Mon, 19 Jan 2015 19:27:45 -0500 Received: from msg.wmi.amu.edu.pl ([2001:808:114:2::50]:33192) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YDMfW-0007VX-FJ for emacs-orgmode@gnu.org; Mon, 19 Jan 2015 19:27:42 -0500 Received: from localhost (localhost [127.0.0.1]) by msg.wmi.amu.edu.pl (Postfix) with ESMTP id 8F7B2481D5 for ; Tue, 20 Jan 2015 01:27:39 +0100 (CET) Received: from msg.wmi.amu.edu.pl ([127.0.0.1]) by localhost (msg.wmi.amu.edu.pl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 7sMoN0huW56f for ; Tue, 20 Jan 2015 01:27:39 +0100 (CET) Received: from localhost (117-116.echostar.pl [213.156.117.116]) by msg.wmi.amu.edu.pl (Postfix) with ESMTPSA id 4A7EC481C4 for ; Tue, 20 Jan 2015 01:27:39 +0100 (CET) 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: Org-Mode mailing list Hello Orgers, assume that I have this in my Org file: #+BEGIN_FOO :bar baz qux whatever #+END_FOO and I want to extract the value of the header argument "bar" (i.e., the string "baz qux" in this case). How do I do it? (I'm writing =E2=80=93 = still =E2=80=93 the custom exporter, and would like to be able to set something spearately for each special block of some kind.) BTW, a shameless plug: while Org-edu-HTML (https://github.com/mbork/org-edu-html) is not yet production-ready, it was nevertheless used for a real life project, and it seems to be working (despite some rough edges). Let me remind you that it is an HTML exporter for educational materials (currently: single and multiple choice tests, cloze tests and =E2=80=9Cshow the answer=E2=80=9D buttons).= In case any of you finds this interesting, all feedback is welcome. TIA, --=20 Marcin Borkowski http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski Faculty of Mathematics and Computer Science Adam Mickiewicz University