>> Note how the first line is far too long; it seems that the length
>> of the replacement text in `@image` is not taken into account while
>> computing the line length.
Gavin wrote:
> That appears to be right, but there may not be a better way. If the
> image is displayed (presumably with a file name like foo.png rather
> than foo.texi), as is the case with Emacs Info mode, then the line
> length may be appropriate - depending on the width of the image, of
> course.
Patrice wrote:
> One thing is clear to me, this shows the limits of pre-reflowing the
> text as is done in the Info format. But besides that, I do not have
> a clear idea on what would be the best output.
AFAIK, the image width is unknown while `makeinfo` is preparing the
Info file. Both `info` and `emacs` read this Info file; while `info`
can only display the replacement text, `emacs` is able to show the
image.
My conclusion is that only the width of the replacement text is known.
Consequently, I think that for inline images in Info mode only the
width of the replacement text (or a default value in case the
replacement text is missing) can be used for pre-formatting a
paragraph; the replacement text should be handled as if put into a
`@w{}` box – I think it's better to have too short lines than too long
ones.
There might be an additional parameter (probably set in the Texinfo
source file) to control the minimum width of images so that manuals
expecting very wide inline images can be set up accordingly.
However, I'm rather sure that this has all been considered already...
Werner