Skip to content

Instantly share code, notes, and snippets.

@jm2dev
Created January 14, 2013 22:55
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jm2dev/4534326 to your computer and use it in GitHub Desktop.
Save jm2dev/4534326 to your computer and use it in GitHub Desktop.
Settings to allow emacs org-mode export a pdf file via xslt (saxon) fo (fop) toolchain in OSX.
(require 'org-docbook)
;;
(setq org-export-docbook-xsl-fo-proc-command "/usr/local/bin/fop \"%i\" \"%o\"")
(setq org-export-docbook-xslt-proc-command "/usr/local/bin/saxon -o:\"%o\" -s:\"%i\" -xsl:\"%s\"")
(setq org-export-docbook-xslt-stylesheet "/usr/local/Cellar/docbook/5.0/docbook/xsl-ns/1.77.1/fo/docbook.xsl")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment