如何在Emacs的org-mode中扩大公式的大小?

25

我发现Org-mode + LaTeX是一个非常好用的工具。如何改变公式的大小?目前对我来说太小了。我知道如何调整Emacs字体(C-x+),但这对LaTeX公式无效。

如何在Org-mode中让LaTeX公式变大?

我尝试更改一些参数,但问题仍然存在。

感谢您的耐心!

1个回答

36
根据文档或者(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.

快速按下C-hvorg-format-latex-optionsRET,我们得到了:

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]
例如,要将比例设置为2.0
(setq org-format-latex-options (plist-put org-format-latex-options :scale 2.0))

3
请务必提前调用(require 'org) - Wouter Beek
2
但这会影响行内和展示公式。有没有一种方法可以为行内和展示公式设置单独的设置? - a06e
如果我想要更改每个文件的比例或仅更改片段的比例怎么办? - Love Grover

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接