13.2 Export Settings
Export options can be set: globally with variables; for an individual file by making variables buffer-local with in-buffer settings (see In-buffer Settings); by setting individual keywords or specifying them in compact form with the βOPTIONSβ keyword; or for a tree by setting properties (see Properties and Columns). Options set at a specific level override options set at a more general level.
In-buffer settings may appear anywhere in the file, either directly or indirectly through a file included using β#+SETUPFILE: filename or URLβ syntax. Option keyword sets tailored to a particular back-end can be inserted from the export dispatcher (see The Export Dispatcher) using the βInsert templateβ command by pressing #. To insert keywords individually, a good way to make sure the keyword is correct is to type β#+β and then to use M-TAB1 for completion.
The export keywords available for every back-end, and their equivalent global variables, include:
βAUTHORββ
The document author (user-full-name).
βCREATORββ
Entity responsible for output generation (org-export-creator-string).
βDATEββ
A date or a time-stamp2.
βEMAILββ
The email address (user-mail-address).
βLANGUAGEββ
Language to use for translating certain strings (org-export-default-language). With β#+LANGUAGE: frβ, for example, Org translates βTable of contentsβ to the French βTable des matiΓ¨resβ3.
βSELECT_TAGSββ
The default value is β("export")β. When a tree is tagged with βexportβ (org-export-select-tags), Org selects that tree and its sub-trees for export. Org excludes trees with βnoexportβ tags, see below. When selectively exporting files with βexportβ tags set, Org does not export any text that appears before the first headline.
βEXCLUDE_TAGSββ
The default value is β("noexport")β. When a tree is tagged with βnoexportβ (org-export-exclude-tags), Org excludes that tree and its sub-trees from export. Entries tagged with βnoexportβ are unconditionally excluded from the export, even if they have an βexportβ tag. Even if a sub-tree is not exported, Org executes any code blocks contained there.
βTITLEββ
Org displays this title. For long titles, use multiple β#+TITLEβ lines.
βEXPORT_FILE_NAMEββ
The name of the output file to be generated. Otherwise, Org generates the file name based on the buffer name and the extension based on the back-end format.
The βOPTIONSβ keyword is a compact form. To configure multiple options, use several βOPTIONSβ lines. βOPTIONSβ recognizes the following arguments.
'
Toggle smart quotes (org-export-with-smart-quotes). Depending on the language used, when activated, Org treats pairs of double quotes as primary quotes, pairs of single quotes as secondary quotes, and single quote marks as apostrophes.
*β
Toggle emphasized text (org-export-with-emphasize).
-β
Toggle conversion of special strings (org-export-with-special-strings).
:β
Toggle fixed-width sections (org-export-with-fixed-width).
<β
Toggle inclusion of time/date active/inactive stamps (org-export-with-timestamps).
\nβ
Toggles whether to preserve line breaks (org-export-preserve-breaks).
^β
Toggle TeX-like syntax for sub- and superscripts. If you write β^:{}β, βa_{b}β is interpreted, but the simple βa_bβ is left as it is (org-export-with-sub-superscripts).
archβ
Configure how archived trees are exported. When set to headline, the export process skips the contents and processes only the headlines (org-export-with-archived-trees).
authorβ
Toggle inclusion of author name into exported file (org-export-with-author).
broken-linksβ
Toggles if Org should continue exporting upon finding a broken internal link. When set to mark, Org clearly marks the problem link in the output (org-export-with-broken-links).
cβ
Toggle inclusion of βCLOCKβ keywords (org-export-with-clocks).
creatorβ
Toggle inclusion of creator information in the exported file (org-export-with-creator).
dβ
Toggles inclusion of drawers, or list of drawers to include, or list of drawers to exclude (org-export-with-drawers).
dateβ
Toggle inclusion of a date into exported file (org-export-with-date).
eβ
Toggle inclusion of entities (org-export-with-entities).
emailβ
Toggle inclusion of the authorβs e-mail into exported file (org-export-with-email).
fβ
Toggle the inclusion of footnotes (org-export-with-footnotes).
Hβ
Set the number of headline levels for export (org-export-headline-levels). Below that level, headlines are treated differently. In most back-ends, they become list items.
inlineβ
Toggle inclusion of inlinetasks (org-export-with-inlinetasks).
numβ
Toggle section-numbers (org-export-with-section-numbers). When set to number N, Org numbers only those headlines at level N or above. Set βUNNUMBEREDβ property to non-nil to disable numbering of heading and subheadings entirely. Moreover, when the value is βnotocβ the headline, and all its children, do not appear in the table of contents either (see Table of Contents).
pβ
Toggle export of planning information (org-export-with-planning). βPlanning information" comes from lines located right after the headline and contain any combination of these cookies: βSCHEDULEDβ, βDEADLINEβ, or βCLOSEDβ.
priβ
Toggle inclusion of priority cookies (org-export-with-priority).
propβ
Toggle inclusion of property drawers, or list the properties to include (org-export-with-properties).
statβ
Toggle inclusion of statistics cookies (org-export-with-statistics-cookies).
tagsβ
Toggle inclusion of tags, may also be not-in-toc (org-export-with-tags).
tasksβ
Toggle inclusion of tasks (TODO items); or nil to remove all tasks; or todo to remove done tasks; or list the keywords to keep (org-export-with-tasks).
texβ
nil does not export; t exports; verbatim keeps everything in verbatim (org-export-with-latex).
timestampβ
Toggle inclusion of the creation time in the exported file (org-export-time-stamp-file).
titleβ
Toggle inclusion of title (org-export-with-title).
tocβ
Toggle inclusion of the table of contents, or set the level limit (org-export-with-toc).
todoβ
Toggle inclusion of TODO keywords into exported text (org-export-with-todo-keywords).
|β
Toggle inclusion of tables (org-export-with-tables).
When exporting sub-trees, special node properties can override the above keywords. These properties have an βEXPORT_β prefix. For example, βDATEβ becomes, βEXPORT_DATEβ when used for a specific sub-tree. Except for βSETUPFILEβ, all other keywords listed above have an βEXPORT_β equivalent.
If org-export-allow-bind-keywords is non-nil, Emacs variables can become buffer-local during export by using the βBINDβ keyword. Its syntax is β#+BIND: variable valueβ. This is particularly useful for in-buffer settings that cannot be changed using keywords.