* resize png in org-toggle-latex-fragment
@ 2015-10-29 13:07 Uwe Brauer
2015-10-29 13:18 ` Uwe Brauer
0 siblings, 1 reply; 2+ messages in thread
From: Uwe Brauer @ 2015-10-29 13:07 UTC (permalink / raw)
To: emacs-orgmode
Hello
I am using GNU emacs 25.0.50, and 8.3.1.
The png generated ny org-toggle-latex-fragment are too small for my
taste.
I found two solutions
http://emacs.stackexchange.com/questions/3387/how-to-enlarge-latex-fragments-in-org-mode-at-the-same-time-as-the-buffer-text
(defun update-org-latex-fragments ()
(org-toggle-latex-fragment '(16))
(plist-put org-format-latex-options :scale text-scale-mode-amount)
(org-toggle-latex-fragment '(16)))
(add-hook 'text-scale-mode-hook 'update-org-latex-fragments)
(defun update-org-latex-fragment-scale ()
(let ((text-scale-factor (expt text-scale-mode-step text-scale-mode-amount)))
(plist-put org-format-latex-options :scale (* 4.3 text-scale-factor))))
(add-hook 'text-scale-mode-hook 'update-org-latex-fragment-scale)
None of them worked for me.
Does somebody know a different one?
Thanks
Uwe Brauer
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: resize png in org-toggle-latex-fragment
2015-10-29 13:07 resize png in org-toggle-latex-fragment Uwe Brauer
@ 2015-10-29 13:18 ` Uwe Brauer
0 siblings, 0 replies; 2+ messages in thread
From: Uwe Brauer @ 2015-10-29 13:18 UTC (permalink / raw)
To: emacs-orgmode
>>> "Uwe" == Uwe Brauer <oub@mat.ucm.es> writes:
> Hello
> I am using GNU emacs 25.0.50, and 8.3.1.
> The png generated ny org-toggle-latex-fragment are too small for my
> taste.
> I found two solutions
> (defun update-org-latex-fragments ()
> (org-toggle-latex-fragment '(16))
> (plist-put org-format-latex-options :scale text-scale-mode-amount)
> (org-toggle-latex-fragment '(16)))
> (add-hook 'text-scale-mode-hook 'update-org-latex-fragments)
Upgrade, this solution works, but I found out that via
org-format-latex-options
I could have a solution which I like more.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-10-29 13:18 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-29 13:07 resize png in org-toggle-latex-fragment Uwe Brauer
2015-10-29 13:18 ` Uwe Brauer
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).