Hi Nasser,
you are not using the copy_images extension. You cannot select make4ht
extension using TeX4ht options as in "mathjax,htm,nostyle,copy_image".
You need to add it to the -f option of make4ht. So the correct call
is:
$ make4ht -ulm default -f html5+copy_images foo.tex
May be even lua can be used to automatically convert absolute path in
\includegraphics to relative one?
\includegraphics[width=textwidth]{/mnt/g/public_html/my_notes/images/my_image}
to
\includegraphics[width=textwidth]{../../my_notes/images/my_image}
This will solve all the problem.
fyi;
On 10/8/2023 5:38 AM, Nasser M. Abbasi wrote:
Is there a way to make copy_images adjust the "src=" automatically
to new copy location?
I think there is a better solution to all of this. no need
to copy images and do any of this.
There are tools that automatically converts absolute path to
On 6/20/2023 10:21 AM, Michal Hoftich wrote:
If it works for you, I can add it to make4ht as a new extension, so it
could be then enabled from the command line.
I've added a new extension to make4ht, copy_images. It should fix this issue.
Best regards,
Michal
Thanks Michal for adding
> If it works for you, I can add it to make4ht as a new extension, so it
> could be then enabled from the command line.
I've added a new extension to make4ht, copy_images. It should fix this issue.
Best regards,
Michal
Hi Nasser,
>
>
> And it can't find it of course. I compile on Linux, view on windows. And on
> the server this path makes no sense. Even if I use
>
> src='/images/image.svg'
>
> i.e. relative to public_html/, it still does not see it on windows.
>
> How can one then use absolute path for
I have to use an absolute path for my graphics, because the
code is generated by a program, and the resulting index.tex can
be in different locations in the tree, while the image location
is fixed at once place at root of the tree.
So hard to make it relative to each generated index.tex since