<div dir="ltr"><div>Hi Nasser,</div><div><br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
When I compile the same file on this new TL I just installed,<br>
tex4ht now gives this error<br>
<br>
! Undefined control sequence.<br>
\a:HBorder ...border-top:1px solid \#\hline:color<br>
"><br>
l.16 A<br>
&B&C \\ \hline<br>
? X<br>
-----------------------------------------------<br></blockquote><div><br></div><div>thanks for the report. It seems that the usepackate.4ht file in TL is too old. <br></div><div><br></div><div>I've created a script that will print differences in .4ht files between TeX4ht repository and TeX Live directory:</div><div><br></div><div>-------------------------</div><div>kpse.set_program_name "luatex" <br><br>local function get_files(dir)<br> local files = {}<br> for file in lfs.dir(dir) do<br> if file:match("4ht$") then<br> local path = dir .."/" .. file<br> path = path:gsub("//", "/")<br> files[file] = path<br> end<br> end<br> return files<br>end<br><br>local function clean(result)<br> local t = {}<br> for line in result:gmatch("([^\n]+)") do<br> if line:match("%s*%%") then<br> elseif line:match("immediate") then<br> elseif line:match("%d+.?%d+") then<br> elseif line:match("%-%-%-") then<br> elseif line:match("^[><]%s*$") then<br> else<br> t[#t+1] = line<br> end<br> end<br> return table.concat(t, "\n")<br>end<br>local function diff(source, dest) <br> local cmd = io.popen("diff " .. source .. " " .. dest, "r")<br> local result = cmd:read("*a")<br> cmd:close()<br> -- remove unnecessary stuff<br> return clean(result)<br>end<br><br><br><br><br>local source = get_files(arg[1])<br>local dest = get_files(arg[2])<br><br>for name, path in pairs(source) do<br> if not dest[name] then <br> print("File not exists in dest: " , path) <br> else<br> local result = diff(path, dest[name])<br> if result ~= "" then<br> print(path)<br> print(result)<br> end<br> end<br>end<br>-----</div><div><br></div><div>It can be used like this:</div><div><br></div><div>$ texlua diffs.lua /path/to/newsrc/trunk/lit/ /usr/local/texlive/2024/texmf-dist/tex/generic/tex4ht/</div><div><br></div><div>I think it can be useful for me or Karl in the future.<br></div><div><br></div><div>Best regards,</div><div>Michal<br></div></div></div>