From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marcin Borkowski Subject: Re: Extending the Org syntax by a custom exporter - how to do it? Date: Mon, 17 Mar 2014 16:43:47 +0100 Message-ID: <20140317164347.317c2259@aga-netbook> References: <20140315111059.00d3b8e0@aga-netbook> <20140315222244.5eee2361@aga-netbook> <874n2ysb30.fsf@gmail.com> <20140316121832.2bc543c1@aga-netbook> <87zjkqqrsy.fsf@gmail.com> <20140316143318.7de989b7@aga-netbook> <87mwgqqlk1.fsf@gmail.com> 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]:47135) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WPZhl-00013z-10 for emacs-orgmode@gnu.org; Mon, 17 Mar 2014 11:44:01 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WPZhg-00009S-8S for emacs-orgmode@gnu.org; Mon, 17 Mar 2014 11:43:56 -0400 Received: from msg.wmi.amu.edu.pl ([2001:808:114:2::50]:34226) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WPZhg-000091-1q for emacs-orgmode@gnu.org; Mon, 17 Mar 2014 11:43:52 -0400 Received: from localhost (localhost [127.0.0.1]) by msg.wmi.amu.edu.pl (Postfix) with ESMTP id 4251942063 for ; Mon, 17 Mar 2014 16:43:49 +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 6sxnb9D8KGAO for ; Mon, 17 Mar 2014 16:43:49 +0100 (CET) Received: from aga-netbook (99-234.echostar.pl [213.156.99.234]) by msg.wmi.amu.edu.pl (Postfix) with ESMTPSA id 2079342062 for ; Mon, 17 Mar 2014 16:43:49 +0100 (CET) In-Reply-To: <87mwgqqlk1.fsf@gmail.com> 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: emacs-orgmode@gnu.org Dnia 2014-03-16, o godz. 15:12:46 Nicolas Goaziou napisa=C5=82(a): > Marcin Borkowski writes: >=20 > > So basically I can attach #+ATTR_WHATEVER attributes also to lists, > > paragraphs and other elements? Even list items? (This would mean > > that I could mark the "correct" answer using that syntax - but I > > think this would be too verbose. I can't see any harm in abusing > > checkboxes for that, though I [[http://xkcd.com/292/][might be > > mistaken]];)) >=20 > You can attach attributes (which is a subset of "affiliated keywords" > category) to any element excepted clock, headline, inlinetask, item, > planning, node-property, section and table-row types. I see. > So, plain lists can have attributes, but not items. There are > workarounds, though. For example, you can use an export snippet at the > beginning of the item to mark the correct answer. Hence, assuming > "qcm" is the name of your backend, you could use: >=20 > #+attr_qcm: :type mct > - answer a > - @@qcm:correct@@ answer b > - answer c >=20 > "ox-beamer.el" uses it to specify action overlays item wise. See > `org-beamer-item' for an example. Interesting, though I think I'll stick with checkboxes - esepcially that it is easy for the user/author to mark them on and off. > Regards, Thanks again! --=20 Marcin Borkowski room B3-46, phone no +48 61 829 5375 http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski Adam Mickiewicz University --=20 Marcin Borkowski http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski Adam Mickiewicz University