【问题标题】:How to make formule bigger in org-mode of Emacs?如何在 Emacs 的 org-mode 中使公式变大?
【发布时间】:2012-06-30 07:14:11
【问题描述】:

我发现 Org-mode + LaTeX 是一个非常棒的工具。如何更改公式的比例?目前它对我来说太小了。我知道如何缩放 Emacs 字体(C-x+),但这不适用于 LaTeX 公式。

如何在 Org 模式下让 LaTeX 公式变大?

修改了一些参数已经很累了,但问题依然存在。

感谢您的耐心等待!

【问题讨论】:

    标签: emacs latex org-mode


    【解决方案1】:

    根据 documentation

    (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))
    

    【讨论】:

    • 别忘了提前(require 'org)
    • 但这会影响内联和显示方程。有没有办法为内联和显示方程设置单独的设置?
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-01-24
    • 2015-01-23
    相关资源
    最近更新 更多