Mentions légales du service

Skip to content
Snippets Groups Projects
Commit e266df43 authored by FELŠÖCI Marek's avatar FELŠÖCI Marek
Browse files

Add remove-from-org-latex-packages-alist also to latex-publish.el

parent 06e96d4b
No related branches found
No related tags found
No related merge requests found
...@@ -18,6 +18,17 @@ undesirable behavior." ...@@ -18,6 +18,17 @@ undesirable behavior."
(add-to-list 'output pkg t))) (add-to-list 'output pkg t)))
(setq org-latex-default-packages-alist output))) (setq org-latex-default-packages-alist output)))
(defun remove-from-org-latex-packages-alist (package)
"Removes `package' from the list of packages that are included by default when
exporting from Org to LaTeX, i.e. from `org-latex-packages-alist'. This is
useful for controlling the order in which some of the packages are loaded in
order to prevent conflicts or other undesirable behavior."
(let ((output '()))
(dolist (pkg org-latex-packages-alist)
(unless (string= package (nth 1 pkg))
(add-to-list 'output pkg t)))
(setq org-latex-packages-alist output)))
;; Custom publishing function for LaTeX files. This is useful when we need to ;; Custom publishing function for LaTeX files. This is useful when we need to
;; publish a manually written LaTeX file to PDF (e. g. a poster). ;; publish a manually written LaTeX file to PDF (e. g. a poster).
(defun latex-publish-to-pdf (plist filename pub-dir) (defun latex-publish-to-pdf (plist filename pub-dir)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment