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 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
