emacs - 如何在组织模式下使内联图像响应?

标签 emacs org-mode

当我使用 org-toggle-inline-images 切换内嵌图像时显示图像。然而,当图像太大时,它会溢出编辑器的框架(见下面的截图)。
enter image description here
如何使图像具有响应性,这意味着图像的最大尺寸不应超过窗口尺寸的宽度。
当然,我可以使用下面的代码来修复图像的大小。但我真正想要的是某种响应式图像显示。

(setq org-mode-actual-width 600)
enter image description here
感谢您抽出时间查看这个问题。

最佳答案

来自 org-image-actual-width 的文档:

Documentation:
Should we use the actual width of images when inlining them?

When set to t, always use the image width.

When set to a number, use imagemagick (when available) to set
the image's width to this value.

When set to a number in a list, try to get the width from any
#+ATTR.* keyword if it matches a width specification like

  #+ATTR_HTML: :width 300px

and fall back on that number if none is found.

When set to nil, try to get the width from an #+ATTR.* keyword
and fall back on the original width if none is found.

所以你可以使用属性 #+ATTR_HTML 来指定宽度。但是必须手动指定。这是否足够响应?

关于emacs - 如何在组织模式下使内联图像响应?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36465878/

相关文章:

emacs - GNU Emacs 中的公司后端

emacs - 如何在emacs org-mode中将子标题移动到其他标题下

emacs - 以不同样式导出 org-mode 代码块和结果

emacs - 如何使用默认的组织模式电子表格自动求和行为?

regex - emacs 无法打开加载文件 make-regexp

emacs - 开发 Sweave 文档的建议

macos - Emacs Haskell 模式 - Speedbar 未更新

即使更改 .emacs 后,Emacs 也会自动添加换行符

emacs - 使用 org-mode 的 `org-edit-special' 编辑 HTML 中嵌入的 javascript/css

emacs - org-mode 和 yasnippet 之间的冲突