11

The org-mode manual says that it's possible to export property drawers, but trying with

 #+OPTIONS: d:t

does not export any :PROPERTIES: blocks like it used to.

Reading the Drawers chapter it seems it is indeed not possible anymore, at least with the latest org-mode version:

You can select the name of the drawers which should be exported with org-export-with-drawers. In that case, drawer contents will appear in export output. Property drawers are not affected by this variable and are never exported.

Is there any tweak to regain that functionality, i.e. having #+OPTIONS: d:t export the whole :PROPERTIES: block, short of manually changing the .org file before export time?

  • 2
    You can't export the whole block, but you can use this code to export specific properties. – erikstokes Mar 30 '15 at 0:47
  • Thank you, that is helpful, but if one needs to have all of PROPERTIES, it would be nice to have an option to just expose all of them at publish time, in whatever export format one would need. For now, I have a small function that wraps the PROPERTIES block inside a #+BEGIN_EXAMPLE block, but that solution if far from pleasing. – gsl Mar 30 '15 at 7:51
8

It seems you can use #+OPTIONS: prop:t instead.

From 12.3 Export settings:

prop: Toggle inclusion of property drawers, or list properties to include (org-export-with-properties).

  • Wonderful, that switch must have appeared in org-mode 8.3.x. Thank you. – gsl Oct 16 '15 at 7:40

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.