[Top][All Lists]

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

Re: @image in @example

From: Patrice Dumas
Subject: Re: @image in @example
Date: Fri, 30 Apr 2021 14:34:32 +0200


There is an explicit condition that can be removed l 1832 in 
tp/Texinfo/Convert/HTML.pm.  The code dates back to the initial
implementation, so my guess is that I tried to do the same as in
makeinfo --html at that time or it came from texi2html.

Maybe the idea was that an image in preformatted environments (@example,
@display...) did not make sense?  Another reason could have been
validity of the resulting HTML, but I checked that img in pre should be

If nobody objects, I could make the change this week end.

On Tue, Apr 27, 2021 at 03:19:58PM -0700, Per Bothner wrote:
> Supppage I have an image file images/paint-circ-1.png .
> Consider the following k.texi program processed thus:
>     makeinfo k.texi --html -o /tmp
> \input texinfo
> @settitle k-test
> @example
> $ echo foo
> @image{images/paint-circ-1}
> $ echo bar
> @end example
> @image{images/paint-circ-1}
> @bye
> The first @image just produces
>     [ images/paint-circ-1 ]
> while the second @image produces an actual <img> element.
> It works when generating docbook or pdf, but not when generating html.
> -- 
>       --Per Bothner
> per@bothner.com   http://per.bothner.com/

reply via email to

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