Perry Smith <[email protected]> writes:
> It appears that if the conditional text is itself a call to a macro, the 
> output gets confused.  For example:
>
> #+MACRO: bold +$1+
> #+MACRO: device1
> {{{device1({{{bold(blah)}}})}}}
>
> results in the tailing )}}} being emitted.

This is because you haven't defined the device1 macro. You need to add
the argument.

 #+MACRO: device1 $1

For conditional snippets that are separate paragraphs (or bigger), you
can use drawers. Selecting which to include/exclude is straightforward.

  :DEVICE1:
  Text relevant to device 1.
  :END:

  :DEVICE2:
  Text relevant to device 2.
  :END:

To export only the drawers for device 2, use

  #+OPTIONS: d:("DEVICE2")

Regards,
Christian

Reply via email to