Introducing LaTeX Math Typesetting

In summary, Physicsforums.com has introduced the addition of LaTeX mathematical typesetting to their forum software. This professional-grade typesetting system allows for pleasing mathematical presentation and can be included in any post on the forum. Users can include LaTeX graphics by using the [ tex ]...[ /tex ] or [ itex ]...[ /itex ] tags, with the latter being used for inline graphics. The forum provides a pdf file and symbol reference for the most useful LaTeX commands, symbols, and constructs. The amsmath package is also available for more information. Examples of various techniques are provided, including subscripts, superscripts, and equations. Users can also use the [ tex usepackage= ] tag to include additional packages.
  • #281
[tex] \frac{3^{2/3}}{3x^{1/3}*((3x)^{2/3}+2)^{1/2}} [/tex]
 
Physics news on Phys.org
  • #282
[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]
 
  • #283
How do you write the sign for a line integral around a closed curve?
 
  • #284
[tex]\oint f(x) dx[/tex]

- Warren
 
  • #285
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.
 
  • #286
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]
 
  • #287
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]
 
  • #288
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
 
  • #289
This does not work:

[tex]
\begin{multline*}
G:\ gravitational\ bla\ bla \\
m1:\ your\ mass\\
\end{multline*}
[/tex]
 
  • #290
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.
 
  • #291
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 ([itex]6.672 \cdot 10^{-11}\ Nm^{2}kg^{-2}[/itex])

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

etc.

- Warren
 
  • #292
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]
 
  • #293
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 [itex]\int f(x) dx[/itex] 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:

[itex]\]
This is some sample LaTeX.\\Newlines work fine.

\[r=2\]

So do paragraph breaks.
\[[/itex]

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

- Warren
 
  • #294
[tex]


\begin{align}
x& = y && \text{def}\\
& = y+\textcolor{blue}{(y-y)} && \text{add \textcolor{blue}{zero}}\\
& = 2y-y && \text {\textcolor{red}{algebra}}
\end{align}


[/tex]

very plain text, slightlyfanciertext, loud text

[itex]
\]

\begin{picture}(200,200)(0,0)\multiput(0,0)(40,10){5}{\line(1,4){40}}\multiput( 0,0)(10,40){5}{\line(4,1){160}}
\put(0,0){\vector(1,4){170}}
\put(50,50){\circle*{10}}



\put(160,40){\framebox(80,40)[r]{ \textcolor{blue}{\bf \[ x_{Bob} \] } } }
\put(40,160){\textcolor{yellow}{\dashbox(80,40)[t]{ \textcolor{red}{ \[ t_{Bob} \] } } }}

\qbezier(100,100)(200,100)(200,200)
\linethickness{8pt}
\textcolor{green}{\qbezier(0,0)(0,100)(100,100)}
\linethickness{1pt}
\qbezier(0,0)(0,100)(100,100)

\end{picture}
\[


[/itex]

[tex]
\newcommand{\VARTEXT}[2][\scriptsize]{\left(\mbox{#1\begin{tabular}{c}#2\end{tabular}}\right)}



\VARTEXT[\large]{net-work done \\ on the object }
=
\VARTEXT[\large]{change in \\ the kinetic energy \\ of the object }


[/tex]
 
  • #295
Cool examples robphy!

- Warren
 
  • #296
this is wisky40 I'm not sure about this, but I'm going to try to write something using
Latex...[tex]E=K\lambda\int_{-a}^a \frac{dx_1}{x_1+x_2+b}[/tex]
 
  • #297
How do I make this look better

[tex]
a_0 (t)
[/tex]

where a0 is supposed to be a function of t and not a0 times t.
 
Last edited:
  • #298
ExtravagentDreams,

It looks fine to me as it is... what do you think is wrong with it?

- Warren
 
  • #299
[tex]
a_0 (t) \partial a_0 = t^2 \partial t
[/tex]
I don't know. I just think it could sometimes be difficult to read and understand if it is ment to be a multiplication or a function of this variable.

I wonder if it would be better to use these {}


such as
[tex]
F_g \{s,t\} = ...
[/tex]

Does that conflict with anything else? I don't think I have used any sets in this manner, then again there is much math I have still to see. But I think it would be a little more obvious that it isn't a set instead of it not being multiplication

[tex]
F_g^{ \{s,t\} } = ...
[/tex]

[tex]
F_g^{ (s,t) } = ...
[/tex]

[tex]
F_g (s,t) = ...
[/tex]

[tex]
F_g \{s\} = ...
[/tex]

[tex]
F_g (s) = ...
[/tex]

try a font size change


[tex]
F_g \mbox{\Large (s,t)}
[/tex]

[tex]
F_g \mbox{\large (s,t)}
[/tex]

[tex]
F_g^{\mbox{\HUGE (s,t) }} = ...
[/tex]
 
Last edited:
  • #300
The parentheses are standard notation...

[itex]a_0 (t)[/itex] is a function, [itex]a_0 t[/itex] is a multiplication.

- Warren
 
  • #301
I suppose that is a good point. Now I am having trouble getting the font size to work though
 
  • #302
[tex]\mbox{\Huge a_0 t}[/tex]

[tex]\mbox{\LARGE a_0 t}[/tex]

[tex]\mbox{\Large a_0 t}[/tex]

[tex]\mbox{\large a_0 t}[/tex]

- Warren
 
Last edited:
  • #303
All four of those a0t's are formatted to the same size on my screen.

EDIT: The sizes are fixed now.
 
Last edited:
  • #304
If you overload your post with too much latex math writing? Will it come out as errors?

Since, I think I may be doing so. As I was trying to verify in my post how I implicitly differentiated this equation, I used a lot of Latex Math writing to show my work. Then I preview it and it comes out with unsuccessful results.

EDIT MESSAGE: Nevermind, I found a couple of errors in my latex math writing. I fixed them and it came out great.
 
Last edited:
  • #305
[tex]
v = A\sin(\omega t + \epsilon + \phi)
+ \sum [/tex]

[tex]k = \sqrt{\omega\kappa}[/tex]
 
  • #306
This is just a test.
 

Attachments

  • soln.doc
    17.5 KB · Views: 196
  • #307
Hello everybody!
Do you know how to write in Latex a big square cap with underlying text like formulas in display math style?
 
  • #308
[tex]\frac{1}{2}sqrt5+1[/tex]
 
Last edited:
  • #309
[tex] 1-(v^2 / c^2) [/tex]
 
  • #310
Tesing for 3.0.3 upgrade:

[tex]q^2[/tex]

- Warren
 
  • #311
Another 3.0.3 test

[tex]r^2[/tex]
 
  • #312
Another 3.0.3 test

[tex]m^2[/tex]
 
  • #313
Another 3.03 test

[tex]n^2[/tex]
 
  • #314
Just trying to figure out if there's anything in particular screwing things up:

blah blah blah [itex]xy=z[/itex] blah blah
 
Last edited:
  • #315
Test 3.03:

[tex]a^2[/tex] and [tex]a^3[/tex]

- Warren
 

Similar threads

  • MATLAB, Maple, Mathematica, LaTeX
Replies
3
Views
1K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
2
Views
3K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
4
Views
947
  • MATLAB, Maple, Mathematica, LaTeX
Replies
1
Views
955
  • MATLAB, Maple, Mathematica, LaTeX
Replies
2
Views
1K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
5
Views
352
  • MATLAB, Maple, Mathematica, LaTeX
Replies
8
Views
2K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
3
Views
275
  • MATLAB, Maple, Mathematica, LaTeX
Replies
1
Views
2K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
9
Views
3K
Back
Top