Function: org-latex-publish-to-pdf

org-latex-publish-to-pdf is an autoloaded and byte-compiled function defined in ox-latex.el.gz.

Signature

(org-latex-publish-to-pdf PLIST FILENAME PUB-DIR)

Documentation

Publish an Org file to PDF (via LaTeX).

FILENAME is the filename of the Org file to be published. PLIST is the property list for the given project. PUB-DIR is the publishing directory.

Return output file name.

Source Code

;; Defined in /usr/src/emacs/lisp/org/ox-latex.el.gz
;;;###autoload
(defun org-latex-publish-to-pdf (plist filename pub-dir)
  "Publish an Org file to PDF (via LaTeX).

FILENAME is the filename of the Org file to be published.  PLIST
is the property list for the given project.  PUB-DIR is the
publishing directory.

Return output file name."
  ;; Unlike to `org-latex-publish-to-latex', PDF file is generated
  ;; in working directory and then moved to publishing directory.
  (org-publish-attachment
   plist
   ;; Default directory could be anywhere when this function is
   ;; called.  We ensure it is set to source file directory during
   ;; compilation so as to not break links to external documents.
   (let ((default-directory (file-name-directory filename)))
     (org-latex-compile
      (org-publish-org-to
       'latex filename ".tex" plist (file-name-directory filename))))
   pub-dir))