# Latex on MHF

• Nov 1st 2012, 12:20 PM
TheEmptySet
Latex on MHF
I used this code

\begin{tabular}{|c|c|c|c|c|} \hline f(x) & - &+ &- &+ \\ \hline x & - & + & + & + \\ \hline (2x-3) & - & -& + & + \\ \hline (x-2) & - & - & - & + \\ \hline & (infinity,0) & (0,3/2) & ( 3/2, 2 ) & (2, infinity) \\ \hline \end{tabular}

To generate this table in MHF

$\displaystyle \begin{tabular}{|c|c|c|c|c|} \hline f(x) & - &+ &- &+ \\ \hline x & - & + & + & + \\ \hline (2x-3) & - & -& + & + \\ \hline (x-2) & - & - & - & + \\ \hline & (infinity,0) & (0,3/2) & ( 3/2, 2 ) & (2, infinity) \\ \hline \end{tabular}$

The problem is inside the tabular environemt it will not take the math commands any longer.

I tried $$and the tex boxes again inside, but they both gave errors. Is this just a limitation of MHF Latex, or is there a way? Also on a different note, does anyone know what packages are preloaded? • Nov 1st 2012, 03:21 PM emakarov Re: Latex on MHF \displaystyle \begin{array}{|c|c|c|c|c|} \hline f(x) & - &+ &- &+ \\ \hline x & - & + & + & + \\ \hline (2x-3) & - & -& + & + \\ \hline (x-2) & - & - & - & + \\ \hline & (\infty,0) & (0,3/2) & ( 3/2, 2 ) & (2, \infty) \\ \hline \end{array} The array environment is an analog of tabular that uses math mode. I can't test now, but I think that regular LaTeX allows ... inside tabular. Probably MHF does not allow dollar signs inside formulas. • Nov 1st 2012, 04:22 PM TheEmptySet Re: Latex on MHF Quote: Originally Posted by emakarov \displaystyle \begin{array}{|c|c|c|c|c|} \hline f(x) & - &+ &- &+ \\ \hline x & - & + & + & + \\ \hline (2x-3) & - & -& + & + \\ \hline (x-2) & - & - & - & + \\ \hline & (\infty,0) & (0,3/2) & ( 3/2, 2 ) & (2, \infty) \\ \hline \end{array} The array environment is an analog of tabular that uses math mode. I can't test now, but I think that regular LaTeX allows ... inside tabular. Probably MHF does not allow dollar signs inside formulas. Thanks good to know. I always just use tabular and$$ in $\displaystyle \LaTeX$.