bug-texinfo
[Top][All Lists]
Advanced

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

Re: math as image in Info INFO_MATH_IMAGES


From: Gavin Smith
Subject: Re: math as image in Info INFO_MATH_IMAGES
Date: Thu, 2 Jan 2025 15:22:25 +0000

On Thu, Jan 02, 2025 at 01:49:44PM +0100, pertusus@free.fr wrote:
> On Thu, Jan 02, 2025 at 12:57:43AM +0000, Gavin Smith wrote:
> > If texi2any generates the images with a given DPI (dots per inch) setting
> > to dvips (-d argument) (say 200), then it seems that all Emacs would need
> > is a variable to specify the DPI of the Info images.  The image size
> > would then be scaled according to the size of the font used to display
> > the text in the Info buffer.  Suppose this is a nominal 10pt (10/72.27 in).
> 
> My point is that it is not possible to distinguish images coming from
> regular @image commands, and images coming from @math or @displaymath
> converted to images.  The scale relative to the image should only apply
> to the images coming from @math or @displaymath converted to images, but
> I can't see a way to separate those images from output of @image.

We could add an extra attribute to the image tag.  The syntax of the
image tag could be:
  
      <image> =
  ^@^H[image src="<image file>"
              (text="<txt file contents>")?
              (alt="<alt text>")?
              (dpi="<dots per inch>")?
  ^@^H]

(Edited from Info node "(texinfo)Info Format Image".)

We could check with Emacs developers if they could make use of such an
attribute or if some other solution would be preferred.



reply via email to

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