123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- ;; publish.el --- Publish org-mode project on Gitlab Pages
- ;; Author: Rasmus
- (package-initialize)
- (require 'org)
- (require 'ox-publish)
- (require 'ox-extra)
- (ox-extras-activate '(latex-header-blocks ignore-headlines))
- (setq org-publish-use-timestamps-flag nil)
- (setq user-full-name "Samuel W. Flint")
- (setq user-mail-address "swflint@flintfam.org")
- (setq org-export-with-smart-quotes t
- org-export-with-toc t
- org-export-with-todo-keywords t)
- (setf org-latex-image-default-width ""
- org-latex-table-scientific-notation "%s\\times10^{%s}"
- org-latex-prefer-user-labels t
- org-export-latex-hyperref-format "\\hyperref{%s}"
- org-latex-listings t
- org-latex-packages-alist '(("" "lmodern" nil)
- ("" "natbib" nil)
- ("" "csquotes" nil)
- ("" "color" nil)
- ("" "listings" nil)
- ("" "color" nil)
- ("UTF8" "inputenc" nil))
- org-latex-pdf-process '("pdflatex -shell-escape -interaction nonstopmode -output-directory %o %f"
- "bibtex %b"
- "pdflatex -shell-escape -interaction nonstopmode -output-directory %o %f"
- "pdflatex -shell-escape -interaction nonstopmode -output-directory %o %f"))
- (defvar site-attachments
- (regexp-opt '("jpg" "jpeg" "gif" "png" "svg"
- "ico" "cur" "css" "js" "woff" "html" "pdf")))
- (setq org-publish-project-alist
- (list
- (list "site-org"
- :base-directory "."
- :base-extension "org"
- :recursive t
- :publishing-function '(org-latex-publish-to-pdf)
- :publishing-directory "./public"
- :exclude (regexp-opt '("README" "draft")))
- (list "site" :components '("site-org"))))
- (setf org-confirm-babel-evaluate
- (lambda (lang body)
- (declare (ignorable lang body))
- nil))
|