help-texinfo
[Top][All Lists]
Advanced

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

Re: Displaying images for html output


From: Christopher Dimech
Subject: Re: Displaying images for html output
Date: Sun, 15 Nov 2020 17:12:13 +0100

It is the fifth and I still get the Alt Text Attribute.

The output was

../Ideogr/Ch03b--Chmed/igc03--01--Sicl--CircAmRg

If I put

@image{../Ideogr/Ch03b--Chmed/igc03--01--Sicl--CircAmRg,8cm,8cm,AltText,.png}

I get AltText

But now I have understood the problem,

Although the file exists at ../Ideogr/Ch03b--Chmed/igc03--01--Sicl--CircAmRg.png
because the html index file resides in a subdirectory generated by texi2any, the
code got to be changed to

@image{../../Ideogr/Ch03b--Chmed/igc03--01--Sicl--CircAmRg,8cm,8cm,AltText,png}

Furthermore, you cannot put ".png" as the fifth argument because for html that 
will
fail.  You have to put "png", without the period dot.


> Sent: Sunday, November 15, 2020 at 4:32 PM
> From: "Gavin Smith" <gavinsmith0123@gmail.com>
> To: "Christopher Dimech" <dimech@gmx.com>
> Cc: "help-texinfo gnu" <help-texinfo@gnu.org>
> Subject: Re: Displaying images for html output
>
> On Sun, Nov 15, 2020 at 03:00:21PM +0100, Christopher Dimech wrote:
> >
> > This is what I have inputted which for texi2pdf
> >
> > @image{../Ideogr/Ch03b--Chmed/igc03--01--Sicl--CircAmRg,12cm,,,.png}
> >
> > In html I simply get the print
> >
> > ../Ideogr/Ch03b--Chmed/igc03--01--Sicl--CircAmRg
> >
> > But the image is not being displayed.
>
> This some of the information that you needed to send.  According to the 
> manual,
>
> Here is the synopsis of the '@image' command:
>
>      @image{FILENAME[, WIDTH[, HEIGHT[, ALTTEXT[, EXTENSION]]]]}
>
> Your extension is the fourth argument when it needs to be the fifth:
>
> > @image{../Ideogr/Ch03b--Chmed/igc03--01--Sicl--CircAmRg,12cm,,,,.png}
>
> Although you didn't send the contents of the HTML output you got, the .png
> was probably output as an alt text attribute.
>



reply via email to

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