Rudy’s OBTF Rudolf Adamkovič

Home / Emacs / Org / Key bindings / Links


LaTeX/Org configuration

Note: No CDLaTeX mode here because it adds too much magic for too little gain.

Render LaTeX using SVG and at \(2 \times\) scale.

Note: TikZ previews do not work with dvisvgm. The previews do work with imagemagick, but they render at \(1 \times\) scale and thus become blurred.

(with-eval-after-load 'org
  (setopt org-preview-latex-default-process 'dvisvgm)
  ;; "Transparent" to go with the `org-block' face.
  (plist-put org-format-latex-options :background "Transparent")
  (plist-put org-format-latex-options :scale 2))

Preview PDF files inside of Emacs.

(with-eval-after-load 'org
  (add-to-list 'org-file-apps '("\\.pdf\\'" . emacs)))

Do not pollute the file system with LaTeX image previews (ltximg).

(with-eval-after-load 'org
  (setopt org-preview-latex-image-directory
          (file-name-concat org-directory
                            (file-name-as-directory "tex"))))

© 2025 Rudolf Adamkovič under GNU General Public License version 3.
Made with Emacs and secret alien technologies of yesteryear.