I want to let tex4ht leave the equations unchanged. Using the tip given at tex4ht leaving equations unchanged, it works for $ and $$ equations. In the case of \[...\] and \(...\) equations it does not work.

How do I have to modify the provided my.cfg to work in the case of following document?

\documentclass {article}



\Configure{[]} seems to take only two arguments. Using \Configure{[]}{$}{$} does not help. This leads to

Runaway argument?
a*b^3\] \end {document}
! File ended while scanning use of \AltMath.

For a complete test, the following file should work:

\documentclass {article}
  • Welcome to TeX.sx! A tip: You can use backticks ` to mark your inline code as I did in my edit.
    – Caramdir
    Nov 5, 2011 at 0:29
  • Do you mean this question? Please refer to it.
    – krlmlr
    Mar 22, 2012 at 22:12
  • @user946850 Yes, I meant that question. I included a reference in the text.
    – koppor
    Mar 23, 2012 at 11:35
  • If I do this, a command like $\mathbb{A}$ becomes $\mathbb {A}$ (with a spurious space). Is there any simple reason why this happens and a fix, without me producing a minimal working example?
    – Manu
    Apr 26, 2018 at 15:55

1 Answer 1


Inspired by the mentioned answer there is a partiala, b solution of the question. The following configurations will accept \(...\) and \[...\] shorthands solely:


a The TeX shorthand configurations and these LaTeX shorthand configurations will not work together.

b The environment configurations are missing.

  • Your solution works fine for me, except within (proof-)environments. Is there a way to fix that? Apr 19, 2018 at 11:35
  • In case someone has the same problem (in proof environments or not): a workaround is to use \begin{equation*}...\end{equation*} instead of [...]. May 22, 2018 at 9:22

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .