[Top][All Lists]

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

no @image at start of paragraph

From: Per Bothner
Subject: no @image at start of paragraph
Date: Thu, 17 Dec 2015 11:08:40 -0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.4.0

The texinfo manual states that an @image can be in "anywhere, including
the middle of a paragraph".  However, makeinfo 6.0 doesn't allow @image to begin
a paragraph.

For example:

    This image shows xyz.

or even:

    @image{screenshot-1}This image shows xyz.

Is treated the same as:


    This image shows xyz.

I.e. the same as if the @image were followed by a blank line.

Hence in the generated html the resulting <img> is *before* the <p>,
not inside it.  The same problem happens with --docbook.

I worked around it with empty dummy text:

    This image shows xyz.

Is there a better work-around? Is this a texinfo bug?

Having the image at the start of the paragraph enables floating images
with with css rules like:

img { float: right }
p { overflow: auto}

An example of what I'm trying to achieve is here:

(This uses the --docbook backend and then uses sed to wrap a link
around the scaled-down image.)
        --Per Bothner
address@hidden   http://per.bothner.com/

reply via email to

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