当我使用 org-toggle-inline-images
切换内嵌图像时显示图像。然而,当图像太大时,它会溢出编辑器的框架(见下面的截图)。
如何使图像具有响应性,这意味着图像的最大尺寸不应超过窗口尺寸的宽度。
当然,我可以使用下面的代码来修复图像的大小。但我真正想要的是某种响应式图像显示。
(setq org-mode-actual-width 600)
感谢您抽出时间查看这个问题。
最佳答案
来自 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/