[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[AUCTeX] Embedded previews in high-DPI?

From: Spencer Michaels
Subject: [AUCTeX] Embedded previews in high-DPI?
Date: Fri, 12 Feb 2016 20:11:19 -0800


I'm using AucTeX 11.89.1 + Emacs 24.5 + OSX 10.11.3 on a Retina Macbook, which has a high DPI display. When I generate previews to embed in the TeX document (C-c C-p C-s then C-c C-l), the preview images are rendered at 1/4th the resolution of the surrounding text (their size relative to it is, however, correct). I don't think this is a bug, exactly — it's probably because the parameters passed to Ghostscript take the number of points on the screen (essentially the simulated resolution) as the physical resolution. The way OSX generally handles this is to render images at a multiple of their normal size, usually 2x, then scales the images down to the right physical size. If I specify the right DPI of 227x227 using "preview-resolution," images are twice as big as they should be but have the right overall number of pixels — can AucTeX render images at a particular DPI but scale them down in size before embedding them in the document? This would support high DPI on the Retina display, I think. I've looked through some of the source but am very new to ELisp, so I haven't found a way so far.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]