X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=emacs_el%2Fconfiguration%2Forg-mode-configuration.el;h=0af973acbf05482bd1202a46a2c3612f346618f4;hb=9fc89af6c7a27cff07b3c25fa5a29497d799305f;hp=4cc28134efb64fca9cfd48ceb0ae7e399f3e6f37;hpb=cc8e80076cb8c3203bd17b1ab4e148683826f2e3;p=lib.git diff --git a/emacs_el/configuration/org-mode-configuration.el b/emacs_el/configuration/org-mode-configuration.el index 4cc2813..0af973a 100644 --- a/emacs_el/configuration/org-mode-configuration.el +++ b/emacs_el/configuration/org-mode-configuration.el @@ -580,11 +580,13 @@ Maildir, or by Message-ID." ;; Originally taken from Bruno Tavernier: http://thread.gmane.org/gmane.emacs.orgmode/31150/focus=31432 ;; but adapted to use latexmk 4.22 or higher. -(setq org-latex-pdf-process '("latexmk -pdflatex=xelatex -bibtex -use-make -pdf %f")) +(setq org-latex-pdf-process '("latexmk -f -pdflatex=xelatex -bibtex -use-make -pdf %f")) ;; Default packages included in /every/ tex file, latex, pdflatex or xelatex (setq org-latex-default-packages-alist - '(("" "amsmath" t))) + '(("" "amsmath" t) + ("" "unicode-math" t) + )) (setq org-latex-packages-alist '(("" "graphicx" t) ("" "fontspec" t) @@ -1053,6 +1055,22 @@ same directory as the org-buffer and insert a link to this file." (add-hook 'org-babel-after-execute-hook 'my/fix-inline-images) +;; use xelatex to preview with imagemagick +(add-to-list 'org-preview-latex-process-alist + '(xelateximagemagick + :programs ("xelatex" "convert") + :description "pdf > png" + :message "you need to install xelatex and imagemagick" + :use-xcolor t + :image-input-type "pdf" + :image-output-type "png" + :image-size-adjust (1.0 . 1.0) + :latex-compiler ("xelatex -interaction nonstopmode -output-directory %o %f") + :image-converter ("convert -density %D -trim -antialias %f -quality 100 %O")) + ) +;; use xelatex by default +(setq org-preview-latex-default-process 'xelateximagemagick) + ; from http://orgmode.org/Changes.html (defun my/org-repair-property-drawers () "Fix properties drawers in current buffer. @@ -1084,4 +1102,16 @@ same directory as the org-buffer and insert a link to this file." (min (1+ (match-end 0)) end))) (unless (bolp) (insert "\n")))))))))))) +; from https://emacs.stackexchange.com/questions/909/how-can-i-have-an-agenda-timeline-view-of-multiple-files +(defun org-agenda-timeline-all (&optional arg) + (interactive "P") + (with-temp-buffer + (dolist (org-agenda-file org-agenda-files) + (insert-file-contents org-agenda-file nil) + (end-of-buffer) + (newline)) + (write-file "/tmp/timeline.org") + (org-agenda arg "L"))) +(define-key org-mode-map (kbd "C-c t") 'org-agenda-timeline-all) + (provide 'org-mode-configuration)