io12 / org-fragtog

Automatically toggle Org mode LaTeX fragment previews as the cursor enters and exits them
MIT License
397 stars 14 forks source link

How to increase font size? #44

Closed chookity-pokk closed 2 years ago

chookity-pokk commented 2 years ago

I am having an issue where the preview text is really small compared to my default text size. Below is an example of that. I was wondering if there is a way to change the default text size?

I tried adding (plist-put org-format-latex-options :scale 2), but that gives me the below error when launching emacs.

Debugger entered--Lisp error: (void-variable org-format-latex-options)
  (plist-put org-format-latex-options :scale 2)
  eval-buffer(#<buffer  *load*> nil "/home/hank/.emacs" nil t)  ; Reading at buffer position 3914
  load-with-code-conversion("/home/hank/.emacs" "/home/hank/.emacs" t t)
  load("~/.emacs" noerror nomessage)
  startup--load-user-init-file(#f(compiled-function () #<bytecode 0xc1956eca8e15ae2>) #f(compiled-function () #<bytecode -0x1f3c686ddc0cdc35>) t)
  command-line()
  normal-top-level()

I am using Emacs 28.2

image

chookity-pokk commented 2 years ago

Sorry for the issue, I ended up fixing it with help from this SO question.

https://stackoverflow.com/questions/70696117/how-to-get-rid-of-emacs-error-void-variable-org-format-latex-options