2012-06-30 36 views
13

Tôi thấy Org-mode + LaTeX là một công cụ tuyệt vời. Làm thế nào tôi có thể thay đổi quy mô của công thức? Hiện tại nó quá nhỏ đối với tôi. Tôi biết cách quy mô phông chữ Emacs (C-x+), nhưng điều này không hiệu quả đối với công thức LaTeX.Làm thế nào để làm cho formule lớn hơn trong chế độ org của Emacs?

Làm thế nào để công thức LaTeX có thể lớn hơn trong chế độ Org?

Tôi đã mệt mỏi khi thay đổi một số tham số, nhưng vấn đề vẫn còn.

Cảm ơn sự kiên nhẫn của bạn!

Trả lời

19

Theo documentation

hoặc (info "(org) Previewing LaTeX fragments")

You can customize the variable `org-format-latex-options' to 
influence some aspects of the preview. In particular, the `:scale' 
(and for HTML export, `:html-scale') property can be used to 
adjust the size of the preview images. 

Một nhanh chóng C-hvorg-format-latex-optionsRET cho chúng ta:

org-format-latex-options is a variable defined in `org.el'. 
Its value is (:foreground default :background default :scale 1.0 :html-foreground "Black" :html-background "Transparent" :html-scale 1.0 :matchers 
      ("begin" "$1" "$" "$$" "\\(" "\\[")) 


Documentation: 
Options for creating images from LaTeX fragments. 
[snip] 
:scale  a scaling factor for the size of the images, to get more pixels 
[snip] 

Ví dụ, để thiết lập các quy mô để 2.0:

(setq org-format-latex-options (plist-put org-format-latex-options :scale 2.0)) 
+0

nó là tuyệt vời! rất cảm ơn sự giúp đỡ của bạn! –

+0

Đừng quên '(yêu cầu 'org)' trước. –

Các vấn đề liên quan