From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Extending the Org syntax by a custom exporter - how to do it? Date: Sun, 16 Mar 2014 15:12:46 +0100 Message-ID: <87mwgqqlk1.fsf@gmail.com> 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> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:35341) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WPBnc-0004YG-Nj for emacs-orgmode@gnu.org; Sun, 16 Mar 2014 10:12:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WPBnX-0004L7-Uo for emacs-orgmode@gnu.org; Sun, 16 Mar 2014 10:12:24 -0400 Received: from mail-wg0-x232.google.com ([2a00:1450:400c:c00::232]:52098) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WPBnX-0004L1-Nr for emacs-orgmode@gnu.org; Sun, 16 Mar 2014 10:12:19 -0400 Received: by mail-wg0-f50.google.com with SMTP id x13so3648953wgg.33 for ; Sun, 16 Mar 2014 07:12:18 -0700 (PDT) In-Reply-To: <20140316143318.7de989b7@aga-netbook> (Marcin Borkowski's message of "Sun, 16 Mar 2014 14:33:18 +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: Marcin Borkowski Cc: emacs-orgmode@gnu.org Marcin Borkowski writes: > 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]];)) 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. 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: #+attr_qcm: :type mct - answer a - @@qcm:correct@@ answer b - answer c "ox-beamer.el" uses it to specify action overlays item wise. See `org-beamer-item' for an example. Regards, -- Nicolas Goaziou