LaTeX implementation ready for testing on Physics Forums

  • Context: LaTeX 
  • Thread starter Thread starter Greg Bernhardt
  • Start date Start date
Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
161 replies · 8K views
Messages
19,984
Reaction score
11,093
Ok folks, this is really really exciting. chroot for the last few days has been working very hard on implementing LaTeX on PF. We believe it is ready for extensive testing before we release it for community use. I also wouls like all the mentors to have atleast a basic grasp of how it all works and some basic equation code, because there will be a lot of questions and problems at first. It's really not that hard, just something new that can result in a lot of problems. basically we have added a new bbcode [ tex][ /tex] or [ latex][ /latex] either one works. Inside those tags you put in the latex code. An example of some latex code is this: a_n^2. That results in [tex]a_n^2[/tex]. Another really cool feature chroot thought up was having the images onclick make a popup window that displays the code. This allows members to learn from past equations on how to make the different elements. So please experiement because I believe this feature is the one that will really set us apart from the others.

Here is some documentation to get you started:
http://computing.ee.ethz.ch/.soft/latex/green/ltx-2.html
https://www.physicsforums.com/misc/howtolatex.pdf
 
Last edited:
Physics news on Phys.org
cool!

let me try..

[tex]my_first^try[/tex]
 
[tex] \left(<br /> \begin{array}{cc}<br /> a&b\\c&d<br /> \end{array}<br /> \right)[/tex]
 
Last edited:
Originally posted by Monique
cool!

let me try..

[tex]my_first^try[/tex]
:( not what I expected :P
 
Originally posted by Monique
:( not what I expected :P
It looks like it did just what was expected.. :)

- Warren
 
[tex]my_{second}^{try}[/tex]

:D I learn fast :P
 
Originally posted by Monique
:D I learn fast :P
You kick ass. :)

[tex] \begin{pmatrix} D_1t&-a_{12}t_2&\dots&-a_{1n}t_n\\<br /> -a_{21}t_1&D_2t&\dots&-a_{2n}t_n\\<br /> -a_{n1}t_1&-a_{n2}t_2&\dots&D_nt<br /> \end{pmatrix}[/tex]
 
Last edited:
[tex] \int_{0}^{1} x dx = \left[ \frac{1}{2}x^2 \right]_{0}^{1} = \frac{1}{2}[/tex]

[tex]v(t) = v_0 + \frac{1}{2} a t^2[/tex]
 
A little smaller maybe?

[tex] \int_{0}^{1} x dx = \left[ \frac{1}{2}x^2 \right]_{0}^{1} = \frac{1}{2}[/tex]

[tex]v(t) = v_0 + \frac{1}{2} a t^2[/tex]
 
Last edited:
[tex] \frac{\partialz(x,y)}{\partialx}<br /> <br /> \nabla^\phi=\rho[/tex]
 
Originally posted by Tom
[tex] \frac{\partialz(x,y)}{\partialx}<br /> <br /> \nabla^\phi=\rho[/tex]

OK, that's not even close to what I posted. It was supposed to be:

&part;z(x,y)/&part;x

[nab]2&phi;=&rho;

[?]
 
And now it comes up as yet a third thing when I quote it.

[?] [?] [?]
 
Tom, your LaTeX is flaky. :) Try this code

[tex] \frac{<br /> \frac{\partial (x,y)}{\partial z}<br /> }{<br /> \frac{\partial}{\partial x}<br /> }[/tex]

[tex] \nabla^\phi=\mu[/tex]

- Warren
 
Last edited:
There are some caveats:

1) Images will *not* show up in previews. Only when the posts are committed.

2) Images will *not* show up properly in topic reviews.

Whether or not these changes are worthwhile is an open question.

- Warren
 
Originally posted by Ambitwistor
If you click on the source code for Tom's equations, you'll see that the source code is completely different from what is actually displayed.
One more caveat: right now, if the latex compilation fails, no image is generated at all.

When this happens, the server tries to substitute *someone else's* image, picking one based on a similar filename. I am working on correcting this.

- Warren
 
I see the same problem as Tom and Ambitwistor. I noticed something similar when clicking on the test thread they worked on.

I'm using linux and mozilla to browse. Can this bo platform-dependent? Do you see the same problem chroot? Greg?
 
[tex] \nabla^\phi=\mu[/tex]
 
Last edited:
[tex] \psi[/tex]
 
Last edited:
Hold on guys, working on stuff!

[tex] \frac{1}{2}[/tex]

- Warren
 
Last edited:
[tex] <br /> /frac{<br /> T_o<br /> }{<br /> T}<br /> =1+ /frac{<br /> gamma-1<br /> }{<br /> 2}<br /> M^2<br /> [/tex]
 
Last edited:
This latex is valid:

[tex] \nabla \times C[/tex]

This latex is not:

[tex] \yourmom[/tex]

- Warren
 
enigma,

try \frac instead of /frac :)

- Warren
 
Thanks Warren,

[tex] \frac{T_o}{T}=1+\frac{\gamma-1}{2}M^2<br /> [/tex]

Where is the list of the greek characters?

EDIT: found it
 
Last edited:
[tex] <br /> a = \sqrt{\gamma \times R \times T}<br /> [/tex]
 
[tex] A \alpha B \beta \Gamma \gamma \Delta \delta \dots \Phi \phi \Chi \chi \Psi \psi \Omega \omega[/tex]
 
Last edited:
[tex] <br /> \Delta V = -I_{sp} g_0 \ln{\frac{M_L + M_i}{M_L + M_i + M_P}}<br /> [/tex]
 
Last edited:
[tex] \delta V = - I_{sp} \times g_0 \times \ln{\frac{M_L + M_i}{M_L + M_i + M_P}}[/tex]
 
[tex] <br /> \frac{p_0}{p} = (1+\frac{\gamma-1}{2}M^2)^{\frac{\gamma}{\gamma-1}}<br /> [/tex]
 
Last edited:
Should we be worried if it gives the "Latex image is being generated, please reload" message?
 
Hmm... image generation sure is being slow... ?

- Warren