Skip to content

kawabata/ox-pandoc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

ox-pandoc

This is another exporter for Org 8.0 that outputs to various formats via Pandoc (version 1.12.4 or later).

Usage

Various exporters are available, include:

org-pandoc-export-as-html
Exports the HTML format to a buffer.
org-pandoc-export-to-beamer
Exports the Beamer LaTeX format to a file.

Customizations

Variables

org-pandoc-options
General Pandoc options.
org-pandoc-options-for-FORMAT
Format-specific options.
org-pandoc-epub-right
EPub Copyright Statement.

Document-specific options can be set to “#+PANDOC_OPTIONS:” in the document. Latter options will override former options.

Below are examples:

;; default options for all output formats
(setq org-pandoc-options '((standalone . t)))

:

;; cancel above settings only for 'docx' format
(setq org-pandoc-options-for-docx '((standalone . nil)))

:

# following will only apply to specific document.
#+PANDOC_OPTIONS: standalone:t

In PANDOC_OPTIONS specification, if option value includes space, you can surround entire setting with quote. e.g.

#+PANDOC_OPTIONS: "epub-cover-image:/home/a/test file.png" standalone:nil

In-File Options

#+PANDOC_OPTIONS
Add command line options to the Pandoc process.
#+EPUB_RIGHTS:
copyright info to be embedded to ePub metadata.
#+EPUB_CHAPTER_LEVEL:
same as ‘epub-chapter-level’ PANDOC_OPTION.
#+EPUB_COVER:
same as ‘epub-cover-image’ PANDOC_OPTION.
#+EPUB_EMBED_FONT:
same as ‘epub-embed-font’ PANDOC_OPTION.
#+EPUB_METADATA:
same as ‘epub-metadata’ PANDOC_OPTION.
#+EPUB_STYLESHEET
same as ‘epub-stylesheet’ PANDOC_OPTION.
#+BIBLIOGRAPHY
same as ‘bibliography’ PANDOC_OPTION.

Note

This is based on org-pandoc, but entirely re-written.

TODO-list

  • Currently, citation style is [@num], rather than {\item}, so we may need some preprocessor to convert this.

About

Another org-mode exporter via pandoc.

Resources

Stars

Watchers

Forks

Packages

No packages published