On Fri, Nov 07, 2025 at 09:30:52AM +0200, Eli Zaretskii wrote: > > According to the preview-latex manual(*), AUCTeX does use png files, > > but generates these from dvi files, so presumably gets some more information > > about the geometry of the formatted text than would just be present in a > > png file. > > The significant downside of this is that the user who wants to read > such a manual will need to have LaTeX installed. For the same reason > we distribute the PNG image files of figures with the Info manuals, we > should distribute the image files of @math with the manual, so that > end users could display them without any additional packages (and > LaTeX is quite a large package, what with all the fonts and macros it > needs to do its job). > > So I think we need to generate the images when the Info manual is > being produced, because that requires LaTeX etc. to be installed only > on the system of the person who prepares the Info manual.
In that case we will need to embed some of the geometry information in the Info file. It might be enough to add an extra attribute setting the depth below baseline. In any case, this feature should be documented as experimental until there is support for it in Emacs Info. Before that happens, we can never really be sure if we are putting the exact information into the Info file that is necessary for correct rendering.
