Split htlatex template to more lines
Added mode option