TransWikia.com

enumerate item showing errors in tex4ht

TeX - LaTeX Asked by Balaji on February 2, 2021

The below LaTeX enumerate list and after end{equation}\ showing errors in tex4ht. How do solve this? I know to solve this errors through Lua Script. But i would like to know how to fix this type of errors in .cfg file.

documentclass{article}
usepackage{latexsym,amsmath,amssymb,amscd}
begin{document}
title{title}
author{author}
maketitle


In this article we denote 
begin{equation}
nu:=frac{1}{gamma-1}. label{Nu}
end{equation}\

Let us fix a stratified equilibrium $rho=bar{rho}, P=bar{P}, S=bar{S}$, which are functions of $x^3$ only such that .

begin{enumerate}[10]
item One should not attempt to prove statements so obvious that nothing more obvious exists with which to prove them.
item One should prove all theorems which are not quite clear and in the proofs one should use only very obvious axioms or theorems which are accepted or proved.
end{enumerate}

Let us fix a stratified equilibrium $rho=bar{rho}, P=bar{P}, S=bar{S}$, which are functions of $x^3$ only such that .

end{document}

My Lua Script is:

for line in io.lines() do
  line = line:gsub("\end{equation}\\", "\end{equation}")
  line = line:gsub("%^\mathrm{(.-)}", "^{\mathrm %1}")
  print(line)
end

One Answer

To avoid the necessity of escaping backslashes in Lua strings, you can use [[...]] syntax.

line = line:gsub([[end{equation}\]], [[end{equation}]])
line = line:gsub([[%^mathrm{(.-)}]], [[^{mathrm %1}]])

Answered by Alexander Mashin on February 2, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP