[tex4ht] How to \includegraphics using absolute path with tex4ht?

Nasser M. Abbasi nma at 12000.org
Sun Oct 8 13:33:45 CEST 2023


> 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;

It seems Lua has support for finding relative path given absolute one.
Here is one link among others I found

https://stackoverflow.com/questions/13224664/how-to-convert-absolute-path-in-relative-path-using-lua

May be this will make it easy to do this conversion automatically since
make4ht is written in lua?

--Nasser



More information about the tex4ht mailing list.