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: Marcin Borkowski
Subject: Re: [O] Extending the Org syntax by a custom exporter - how to do it?
Date: Mon, 17 Mar 2014 16:43:47 +0100

Dnia 2014-03-16, o godz. 15:12:46
Nicolas Goaziou <address@hidden> napisaƂ(a):

> 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.

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:
> 
>   #+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.

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!

-- 
Marcin Borkowski
room B3-46, phone no +48 61 829 5375
http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski
Adam Mickiewicz University
-- 
Marcin Borkowski
http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski
Adam Mickiewicz University



reply via email to

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