Skip to content

Commit

Permalink
tweak(org): dynamically set latex fragments scale
Browse files Browse the repository at this point in the history
  • Loading branch information
abougouffa committed Mar 23, 2023
1 parent d818ab6 commit 26f1fd9
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions modules/extras/me-org-extras.el
Original file line number Diff line number Diff line change
Expand Up @@ -263,8 +263,14 @@ Example: \"#+TITLE\" -> \"#+title\"
(plist-put org-format-latex-options :background "Transparent"))

(unless (+emacs-features-p 'pgtk) ;; PGTK not need extra up-scaling
(setq org-format-latex-options
(plist-put org-format-latex-options :scale 1.5))))
(add-hook
'org-mode-hook
(defun +org--set-format-latex-scale ()
(setq-local
org-format-latex-options
(plist-put
org-format-latex-options
:scale (/ (float (or (face-attribute 'default :height) 100)) 100.0)))))))

(defun +org-extras-lower-case-keywords-and-properties-setup ()
(add-hook
Expand Down

0 comments on commit 26f1fd9

Please sign in to comment.