On Sat, Oct 15, 2022 at 01:52:57PM +0100, Gavin Smith wrote: > On Sat, Oct 15, 2022 at 02:28:54PM +0200, Patrice Dumas wrote: > > On Sat, Oct 15, 2022 at 12:32:00PM +0100, Gavin Smith wrote: > > > > > > l2h and t4h settings still output "@var" literally even with > > > '-c CONVERT_TO_LATEX_IN_MATH=1'. I'm going to spend some time > > > investigating this. > > > > I think that I fixed it. CONVERT_TO_LATEX_IN_MATH is set in the default > > case if HTML_MATH is set, but it was not used. Now it is used, but only > > if the LaTeX conversion is on, so the following call should allow > > to have @-commands expanded with the use of tex4ht: > > > > texi2any --html -c HTML_MATH=t4h -c T4H_MATH_CONVERSION=latex > > > > This may call for using latex type of conversion for tex4ht in the > > default case. > > That was quick. Is this change only for tex4ht or for latex2html as well? > Can it easily be extended to latex2html?
Should be done for latex2html too. I still haven't finished handling @latex blocks correctly, but should be done soon. > latex2html output appears to work well. I haven't had good > results with tex4ht, even without @var, but this appears to be > the right way of doing things, provided tex4ht works. (I found > @math{@var{foo}\over@var{bar}} output as > > <span > class="cmti-7">foo</span> > <span > class="cmti-7">bar</span> > > and the square root operation was output as a blurry image. It probably > depends on settings and versions.) > > tex4ht still appears to get updates: > > https://svn.gnu.org.ua/viewvc/tex4ht/trunk/ > > although I hear it has been a difficult piece of software to maintain > since the death of its original author in 2009, so problems or drawbacks > with tex4ht may not ever be resolved.