On Tue, Nov 10, 2026 at 02:41:54PM +0100, Patrice Dumas wrote:
> Switching to bug-texinfo
> 
> On Tue, Nov 10, 2026 at 02:40:49PM +0200, Eli Zaretskii wrote:
> > > Date: Tue, 10 Nov 2026 00:21:23 +0100
> > > From: Patrice Dumas <[email protected]>
> > > Cc: Heime <[email protected]>,
> > >  "[email protected]" <[email protected]>
> > > 
> > > On Mon, Nov 09, 2026 at 02:31:29PM +0100, Arsen Arsenović wrote:
> > > > Rendering equations as PNGs is also less than ideal (a vector format of
> > > > some sort would be preferable).
> > > 
> > > This should probably be relatively easy to use dvisvgm instead of dvipng
> > > to generate svg.  If the Emacs Info developers want that, they just need
> > > to ask.
> > 
> > I think the best is to have both, because whether the user's Emacs
> > supports PNG or SVG is the matter of Emacs configuration at build
> > time; both PNG and SVG libraries are optional dependencies.  So we
> > don't know which images will Emacs support on any given installation.
> 
> That would require some change in the Info format, though.  For now,
> there is only one possibility for the @image and it is .png or .jpg.
> First, the information you give means that it could make sense to add
> .svg as a possible image type for @image in Info.  Second, this also
> means that it could be relevant to add all the image types instead of
> one, which is something we already do for DocBook.

If I understand correctly this is for the benefit of rendering equations.

Although this may be true in theory, I hardly see the point of complexifying
the image format in Info output further, when Emacs does not take
advantage of previous changes we have already made with the dpi and
depth attributes.  That would be the first aspect to get right when
viewing Info math images in the Emacs Info browser.  There are other questions
such as distribution and installation of the output with INFO_MATH_IMAGES
which needs to be gotten right.

The problem of some Emacs installation not being able to view PNG files, or
the superiority of SVG files, seem like minor points in relation to the size
and alignment of images in the text.



> If I understood well the situation, and this change is relevant for
> Info (for the Emacs Info reader, actually), the question that remains is
> the change in the Info format.  The simplest possibility could be
> to allow more than one src="..." for an image special Info directive
> https://www.gnu.org/software/texinfo/manual/texinfo/html_node/Info-Format-Image.html
> with a rule to associate dpi and depth to a src=, I would say that they
> could apply to the previous src= only (ie they should be after the src=
> they are associated to).
> 
> Any idea, especially to be the easiest for the Emacs Info reader
> implementation?
> 
> -- 
> Pat
> 

Reply via email to