3

When using the inline latex preview in org-mode, I have discovered that it seems the size of the preview images is dependent on the display size.

While at work, I have my laptop connected to a dock, with an external display. I have then configured the preview with the :scale property in my init.el file. The scale is set to 1.2.

As I got home, I continued work on my laptop, and when I wrote a new expression in latex and toggled the preview of the expression, the size was significantly larger (see image).

Size different

Is there a simple way I can fix this and get the size to be equivalent (relative to my text) on all screens?

  • 4
    Instead of setting the scale to a number (1.2), you can set it to a function (i.e., preview-scale-from-face). That should cause the preview to be scaled to match preview-reference-face, and you can customize that face to set it to a relative size. I can't test that at the moment, but it sounds like it should be a portable solution. – Tyler Aug 15 '18 at 15:58
  • @Tyler: I hope you can test that and make it an answer. I'll certainly upvote it! – NickD Aug 15 '18 at 16:28
  • Any updates on this? – Guilherme Salomé Jul 12 at 22:17

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.