Next: , Previous: DocBook export, Up: DocBook export

12.7.1 DocBook export commands

C-c C-e D     (org-export-as-docbook)
Export as a DocBook file. For an Org file, myfile.org, the DocBook XML file will be myfile.xml. The file will be overwritten without warning. If there is an active region1, only the region will be exported. If the selected region is a single tree2, the tree head will become the document title. If the tree head entry has, or inherits, an EXPORT_FILE_NAME property, that name will be used for the export.
C-c C-e V     (org-export-as-docbook-pdf-and-open)
Export as a DocBook file, process to PDF, then open the resulting PDF file.

Note that, in order to produce PDF output based on an exported DocBook file, you need to have XSLT processor and XSL-FO processor software installed on your system. Check variables org-export-docbook-xslt-proc-command and org-export-docbook-xsl-fo-proc-command.

The stylesheet argument %s in variable org-export-docbook-xslt-proc-command is replaced by the value of variable org-export-docbook-xslt-stylesheet, which needs to be set by the user. You can also overrule this global setting on a per-file basis by adding an in-buffer setting #+XSLT: to the Org file.


C-c C-e v D
Export only the visible part of the document.

Footnotes

[1] This requires transient-mark-mode to be turned on

[2] To select the current subtree, use C-c @.