help-texinfo
[Top][All Lists]
Advanced

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

Re: Width and Height in @image for Html Output fail


From: Gavin Smith
Subject: Re: Width and Height in @image for Html Output fail
Date: Wed, 25 Nov 2020 18:07:34 +0000
User-agent: Mutt/1.9.4 (2018-02-28)

On Thu, Nov 19, 2020 at 07:51:30PM +0100, Christopher Dimech wrote:
> It occurs to me that one requires two image versions:
> (1) An image for high-resolution pdf; and (2) Another
> image for low resolution image html.
> 
> Can we think of only having one command that calls
> @image, rather than two (i.e. rather than having @iftex
> and @ifhtml)?
> 
> For instance,
> 
> @image{../Ideogr/Ch03b--Chmed/igc03--01--Sicl--CircAmRg,,,,.png}
> 
> For pdf output will use the file
> ../Ideogr/Ch03b--Chmed/igc03--01--Sicl--CircAmRg.png
> 
> For html output will use
> ../Ideogr/Ch03b--Chmed/igc03--01--Sicl--CircAmRg.html.png
> 
> Or the like.

If we could make @value work properly in the first argument of @image,
then this could be used to configure image resolution.  So you
would do

@image{../Ideogr/Ch03b--Chmed/igc03--01--Sicl--CircAmRg.@value{imageres},,,,.png}

and elsewhere do

@set imageres high

to look for a file

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

I will look at the @value issue.



reply via email to

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