Jump to content

LaTeX support?


Recommended Posts

I just noticed a LaTeX icon.  When did you guys add this? :o  Does it support basically any LaTeX features?  I'm guessing it just passes the stuff in the tags off to LaTeX and then runs some stuff to output it as a PNG.  Wikipedia does the same thing.

 

Testing:

[tex]\begin{equation}2Al(s) + 6HCl(aq) \rightarrow 2AlCl_{3}(aq) + 3H_{2}(g)\end{equation}[/tex]

 

EDIT: You guys need to stop nl2br() from killing it. D:  I put it all one line to fix it for my little test, but otherwise it has <br /> in there.

Link to comment
Share on other sites

Oh, I wasn't aware that we didn't need to put ourselves into an equation environment.  I used:

\begin{equation}

2Al(s) + 6HCl(aq) \rightarrow 2AlCl_{3}(aq) + 3H_{2}(g)

\end{equation}

 

To write the thing in the original post.  If run directly, however, it gives:

[tex]

\begin{equation}

2Al(s) + 6HCl(aq) \rightarrow 2AlCl_{3}(aq) + 3H_{2}(g)

\end{equation}

[/tex]

 

Because nl2br() passes through and adds <br /> in.  It's not a problem for one-liners I guess.

Link to comment
Share on other sites

It's starts within an equation environment, so you don't need to do that. Moreover, it's passed as a query string to a parser which generates a PNG, so having multiple lines is not possible. You can, however, do this:

[tex]1+2=3[/tex]
[tex]5! = 120[/tex]

for multiple lines.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.