Results 1 to 3 of 3
Like Tree1Thanks
  • 1 Post By emakarov

Math Help - Latex on MHF

  1. #1
    Behold, the power of SARDINES!
    TheEmptySet's Avatar
    Joined
    Feb 2008
    From
    Yuma, AZ, USA
    Posts
    3,764
    Thanks
    78

    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

     \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?
    Follow Math Help Forum on Facebook and Google+

  2. #2
    MHF Contributor
    Joined
    Oct 2009
    Posts
    5,513
    Thanks
    769

    Re: Latex on MHF

    \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 from TheEmptySet
    Follow Math Help Forum on Facebook and Google+

  3. #3
    Behold, the power of SARDINES!
    TheEmptySet's Avatar
    Joined
    Feb 2008
    From
    Yuma, AZ, USA
    Posts
    3,764
    Thanks
    78

    Re: Latex on MHF

    Quote Originally Posted by emakarov View Post
    \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 \LaTeX.
    Follow Math Help Forum on Facebook and Google+

Similar Math Help Forum Discussions

  1. Replies: 1
    Last Post: December 10th 2011, 06:40 PM
  2. Latex !
    Posted in the LaTeX Help Forum
    Replies: 1
    Last Post: April 20th 2011, 10:40 AM
  3. why Latex?
    Posted in the LaTeX Help Forum
    Replies: 6
    Last Post: May 25th 2010, 10:14 PM
  4. LaTex inside of LaTex
    Posted in the LaTeX Help Forum
    Replies: 2
    Last Post: November 12th 2009, 11:07 AM
  5. Some little help more with Latex, please
    Posted in the LaTeX Help Forum
    Replies: 3
    Last Post: October 25th 2009, 07:23 AM

Search Tags


/mathhelpforum @mathhelpforum