TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Title says it all.

Anyone got any ideas on what I'm doing wrong? Is this a fundamental fault with oolatex conversion? Is there an alternative math format I can use?

Same math builds fine in latex and pdflatex.

Example input (test.tex)

\documentclass{article}
\begin{document}
\begin{equation}
              x = \begin{array}{cc} 
                1, & \mbox{for } 0.5\leq p \leq 1 \\
                0, & \mbox{for } 0\leq p \le 0.5 \\     
              \end{array}

\end{equation}    
\end{document}

Execute:

mk4ht oolatex test.tex

Error:

! Undefined control sequence.
<argument> ...\a:mathml columnlines="\columnlines 
                                                  " \a:mathml equalcolumns="...
l.5                 1
                     , & \mbox{for } 0.5\leq p \leq 1 \\
? 
share|improve this question
up vote 5 down vote accepted

This is known bug. Try:

\documentclass{article}
\usepackage{amsmath}
\let\columnlines\empty
\begin{document}
\begin{equation}
              x = \begin{array}{cc} 
                1, & \mbox{for } 0.5\leq p \leq 1 \\
                0, & \mbox{for } 0\leq p \le 0.5 \\     
              \end{array}
\end{equation}

\end{document}
share|improve this answer
    
This works for the test case, but unfortunately not for the global case. Must be a package conflict, but thank you for your answer! – Andrew Bolster Jan 30 '12 at 19:41

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.