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