On 11/13/2009 11:45 AM, Steven Calkins wrote:
> Dear all,
>
>       The LaTeX {case} macro doesn't seem to work in Xwiki 2.0 with
> the default LaTeX renderer.
>
> Try these two examples to reproduce it and compare with
> http://en.wikipedia.org/wiki/Math_markup#Examples_2:
> [XWIKI CODE STARTS HERE]
>
> === Continuation and cases===
> This example from wikipedia doesn't seem to work:
> {{formula fontSize="normal"}}f(x) = \begin{cases}1&  \mbox{-1 \le x<
> 0\par} \\
>   \frac{1}{2} \;\;\;&  \mbox{x = 0\par} \\ 1 - x^2&
> \mbox{otherwise\par}\end{cases}{{/formula}}
>
> ===Case definitions===
>
> {{formula fontSize="normal"}}f(n) = \begin{cases} n/2,&  \mbox{if }
> n\mbox{ is even} \\ 3n+1,&  \mbox{if } n\mbox{ is odd}
> \end{cases}{{/formula}}
>
> [XWIKI CODE ENDS HERE]
>
> Any suggestions?

The cases environment is not standard TeX, it belongs to the amsmath 
package. This means that it is not supposed to work using the default 
backend. It should work with the native one, which uses the amsmath 
package, and you could try using the mathtran one. If you decide to 
change the backend, you'll find instructions in the last paragraph on 
http://code.xwiki.org/xwiki/bin/view/Macros/FormulaMacro#HTechnicalinformation
-- 
Sergiu Dumitriu
http://purl.org/net/sergiu/
_______________________________________________
users mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/users

Reply via email to