emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] Extending the Org syntax by a custom exporter - how to do it?


From: Nicolas Goaziou
Subject: Re: [O] Extending the Org syntax by a custom exporter - how to do it?
Date: Sun, 16 Mar 2014 15:12:46 +0100

Marcin Borkowski <address@hidden> 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]