LaTeX Introducing LaTeX Math Typesetting

Click For Summary
Physics Forums has integrated LaTeX mathematical typesetting into its platform, allowing users to create visually appealing mathematical expressions using markup similar to HTML. Users can include LaTeX graphics in posts by wrapping their code in [tex] or [itex] tags for display or inline formatting, respectively. A PDF guide with essential LaTeX commands and symbols is available, along with links to additional resources. The community is encouraged to experiment with the system and share examples, while also being mindful of server load when generating graphics. This addition aims to enhance the clarity and professionalism of mathematical discussions on the forum.
  • #241
When I "preview post" to check my code, I am only allowed to preview once. Otherwise, the preview does not change. Because of this, I have been reverting to "post" all over again. What can I do?
 
Physics news on Phys.org
  • #242
It's your browser, not the site. Tell it to stop caching images that way.

- Warren
 
  • #243
This is a test

[ tex ]
\nabla \times A = \left( {{{\partial A_z } \over {\partial y}} - {{\partial A_y } \over {\partial z}}} \right)i + \left( {{{\partial A_x } \over {\partial z}} - {{\partial A_z } \over {\partial x}}} \right)j + \left( {{{\partial A_y } \over {\partial x}} - {{\partial A_x } \over {\partial y}}} \right)k
[ /tex ]
 
  • #244
Another, cause it sure isn't working yet from MathType:
<br /> \[<br /> \nabla \times A = \left( {\frac{{\partial A_z }}{{\partial y}} - \frac{{\partial A_y }}{{\partial z}}} \right)i + \left( {\frac{{\partial A_x }}{{\partial z}} - \frac{{\partial A_z }}{{\partial x}}} \right)j + \left( {\frac{{\partial A_y }}{{\partial x}} - \frac{{\partial A_x }}{{\partial y}}} \right)k<br /> \]<br />

Maybe i got it !

<br /> \[<br /> \nabla \times \,A = \frac{1}{{rsin\theta }}\left[ {\frac{{\partial (A_\phi sin\theta )}}{{\partial \theta }} - \frac{{\partial A_\theta }}{{\partial \phi }}} \right]\hat r + \frac{1}{r}\left[ {\frac{1}{{sin\theta }}\frac{{\partial A_r }}{{\partial \phi }} - \frac{{\partial (rA_\phi )}}{{\partial r}}} \right]\hat \theta + \frac{1}{r}\left[ {\frac{{\partial (rA_\theta )}}{{\partial r}} - \frac{{\partial A_r }}{{\partial \theta }}} \right]\hat \phi <br /> \]<br />

Cool ! But there seems to be a limit on width. I just type it into MathType
and choose the LaTeX 2 translator, then add latex in front and /latex
after (both in []), it works ! kinda.
 
Last edited:
  • #245
Loren Booda said:
When I "preview post" to check my code, I am only allowed to preview once. Otherwise, the preview does not change. Because of this, I have been reverting to "post" all over again. What can I do?

To preview beyond the first time, [on IE6] I do a "refresh". It tells me that it has to resend information in the forms. When I say okay, the images are refreshed to reflect the latest TeX-rendering changes.
 
  • #246
[tex]
\eq x = \frac{-b \pm \sqrt{b^2-4ac} } {2a}
[/tex]

...wow - cool!
 
Last edited:
  • #247
Just out of curiosity...whats the backend for conversion? Is it open source (I haven't seen the documentation in detail)?

Cheers
Vivek
 
  • #248
We have color?

[tex]
\textcolor{red}{Test}
\begin{picture}(200,200)(0,0)
\put(50,50){\textcolor{green}{\line(1,1){50}}}
\end{picture}
[/tex]
 
  • #249
[tex]
\begin{picture}(130,90)
\put(0,5){\epsfxsize=12cm \epsfbox{11.eps}}
\put(0,90){$\tau_{B_c} $, ps}
\put(123,7){$\mu$, GeV}
\end{picture}
[/tex]
 
  • #250
This is a test.
This is not Latex. Just trying to see how to do greek letters and subscripts in regular html.
α<sub>i</sub>
Let's see how it looks.

Well, it didn't work. I have seen other people typing formulas without latex and I wonder how they do it.
What shows as "a" above I typed concatenating "&" "alpha" ";"
Does anybody know how to do this? I know how to do it in latex, I just want to know how to do it without latex.
I'll appreciate your help.
 
Last edited:
  • #251
Like this?
abcdefghijklmnopqrstuvwxyz

[FONT = Symbol] abcdefghijklmnopqrstuvwxyz [ /FONT ] delete the spaces in the tags.

Symbol does not appear in the Font-menu.
 
  • #252
Bear in mind that not everybody has the Symbol font, and even if you do, it doesn't work everywhere because of certain issues.
 
  • #253
Robphy:
I think that way of doing it would be adequate for typing a string of greek characters. I am not so sure it is for typing individual characters interspersed with regular letters as in physics equations.
I used to know how to do this and I forgot. But the way I did it was not the way you suggest.
I also need to do subscripts an superscripts.

I was looking at the Font drop-down box and I don't see the font "symbol". Maybe this is what TALewis is talking about. I do have the symbol font when I am using MS Word, but not here. So I guess these fonts are not handled by the operating system. Whatever the solution, I would like of course for everybody to be able to see those greek letters correctly.
 
  • #254
Math typesetting on the WWW has been one of the most frustrating things I have come across. Honestly, embedded images generated by LaTeX have been the best solution until something like MathML really gets into gear.
 
  • #255
Thank you guys,
As answers to my question on this thread were slow to come at first and I figured that it might not be the best place to post a question about non-latex on a latex thread, I initiated a separate thread. I got more answers there and I think with those instructions I can do what I want. TALewis was very helpful on that thread.
Let's see if I can post a link to that thread:
Typing equations without latex
 
Last edited:
  • #256
chroot
It's your browser, not the site. Tell it to stop caching images that way.
Would you mind going into more detail about "stop caching images" for this computer illiterate? My browser is Microsoft Explorer 6.0. Thanks.
 
  • #257
chroot said:
...
If you have questions or comments about this site addition, you are welcome to post them here!

Good luck, and enjoy the system.

- Warren

This is a most excellent welcome back ! Thank you.( I have been too busy to surf recently ).
 
  • #258
[tex] \frac{3^{2/3}}{3x^{1/3}*((3x)^{2/3}+2)^{1/2}} [/tex]
 
  • #259
[tex] 2\pi\int_{2}^{4} (3x^{2/3} +2)^{1/2}*(1 + (\frac{3^{2/3}}{3x^{1/3}*((3x)^{2/3}+2)^{1/2}})^2)^{1/2} dx [/tex]
 
  • #260
How do you write the sign for a line integral around a closed curve?
 
  • #261
[tex]\oint f(x) dx[/tex]

- Warren
 
  • #262
How do you get multiple lines?
I have been trying for hours.
I can only could get multiple lines that were indented to random amount by using "\begin{multline} ...\end{multline}".
just using "//" does not seem to work.
 
  • #263
gerben,

There are several ways. Examples of all these ways are provided on the first page of this thread. Click the images below to see their source code:

[tex]
\begin{multline*}
a+b+c+d\\
+e+f+g+h
\end{multline*}
[/tex]

[tex]
\begin{equation*}
\begin{split}
a+b+c+d\\
+e+f+g+h
\end{split}
\end{equation*}
[/tex]

[tex]
\begin{equation*}
\begin{split}
&a+b+c+d\\
&+e+f+g+h
\end{split}
\end{equation*}
[/tex]

[tex]
\begin{equation*}
\begin{split}
a+b&+c+d\\
+e+f+g&+h
\end{split}
\end{equation*}
[/tex]
 
  • #264
Unfortunately, that gives aexactly the same results as using multline (I did indeed mistakenly type "//" in stead of "\\" in my previous post. I do use "//").

[tex]
\begin{gather*}
G:\ \ gravitational\ constant\ (6.672\ 10^{-11}\ Nm^{2}kg^{-2}) \\
line 2
\end{gather*}
[/tex]
 
  • #265
Use:

[tex]
\begin{multline*}
\begin{split}
&G:\ \ gravitational\ constant\ (6.672\ 10^{-11}\ Nm^{2}kg^{-2}) \\
&line 2
\end{split}
\end{multline*}
[/tex]

as I already said.

Why on Earth are you going to this much trouble just to post text anyway? Why use LaTeX formatting for mostly textual data?

- Warren
 
  • #266
This does not work:

[tex]
\begin{multline*}
G:\ gravitational\ bla\ bla \\
m1:\ your\ mass\\
\end{multline*}
[/tex]
 
  • #267
Well chroot,
I wanted to post a message somewhere, with the following text:

[tex]
\begin{gather*}
G:\ \ gravitational\ constant\ (6.672\ 10^{-11}\ Nm^{2}kg^{-2}) \\
m1:\ your\ mass\\
m2:\ mass\ of\ planet \\
r:\ \ distance\ from\ you\ to\ planet\ (from\ centre\ of\ your\ mass\ to\ centre\ of\ planet's\ mass) \\
F_z:\ \ force\ to\ between\ masses\\
\\
F_z\ =\ G\ \frac{m1\ m2}{r^2}\\
\\
on\ earth:\\
m1\ =\ \frac{F_z}{9.8}\\
\\
so,\ on\ planet:\\
m1\ =\ \ G\ \frac{m1\ m2}{r^2\ 9.8}
\end{gather*}
[/tex]

and I find it really annoying that I cannot get things nicely lined out at the start of the lines. Also some text after "...mass to" (it should have been "...mass to centre of planet's mass") is simply not shown.
 
  • #268
I've already shown you twice how to do it. Besides, there's really no point in typesetting your entire post in LaTeX. That's really not what we intended our LaTeX system to do at all. Please format your post like this:

G: gravitational constant (6.672 \cdot 10^{-11}\ Nm^{2}kg^{-2})

[tex]F_z = G \frac{m1\ m2}{r^2}[/tex]

etc.

- Warren
 
  • #269
Ok, I see that I could do it line by line.
However it would be useful if we could just use the newline command ("/newline" or "//"). I just thought it looked ugly that the different parts of the text in my post were typeset in different fonts. I do not know much about latex but I thought going to a new line would be something fairly basic. Thanks anyway.

I ended up posting my post like this:


Well just disregard the first bracket please (sorry)...

[tex]
\begin{multline*}
\begin{slpit}
&G:\ \ gravitational\ constant\ (6.672\ 10^{-11}\ Nm^{2}kg^{-2}) \\
&m1:\ your\ mass\\
&m2:\ mass\ of\ planet \\
&r:\ \ distance\ from\ you\ to\ planet\ (from\ centre\ of\ your\ mass\ to\ &centre\ of\ planet's\ mass) \\
&F_z:\ \ force\ between\ masses\\
&\\
&F_z\ =\ G\ \frac{m1\ m2}{r^2}\\
&\\
&on\ earth:\\
&m1\ =\ \frac{F_z}{9.8}\\
&\\
&so,\ on\ planet:\\
&m1\ =\ \ G\ \frac{m1\ m2}{9.8\ r^2}
\end{split}
\end{multline*}
[/tex]
 
  • #270
Newlines are very basic in normal LaTeX. This is not normal LaTeX. This is math-mode LaTeX with a specific preamble to set up math options, ether math mode, and a specific raster backend to make images that fit into our site layout. All of this makes entering \int f(x) dx easy for our users.

If you really, really had some particular reason to need to use full-blown LaTeX, you can step out of math mode with \] and \[, like this:

\]<br /> This is some sample LaTeX.\\Newlines work fine.<br /> <br /> \[r=2\]<br /> <br /> So do paragraph breaks.<br /> \[

But I really ask that you don't do such a thing unless it's absolutely necessary.

- Warren
 

Similar threads

  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 2 ·
Replies
2
Views
5K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 8 ·
Replies
8
Views
3K
  • · Replies 5 ·
Replies
5
Views
1K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K