4

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?

Runei
  • 51
  • 2
  • 5
    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 '19 at 22:17
  • 1
    Probably related: https://emacs.stackexchange.com/a/58591/5422 – koddo May 19 '20 at 11:40

1 Answers1

0

I had a similar issue, which was fixed by setting a concrete value to :scale. I was under the impression I had already done this, but apparently I was only applying solutions in How to enlarge latex fragments in org mode at the same time as the buffer text? without setting an initial value.

If you are still having this problem, can you please post the relevant parts of your configuration?

stites
  • 101
  • 1