Introducing LaTeX Math Typesetting

Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
766 replies · 751K views
VietDao29 said:
This is driving me crazy... :cry: Does anyone know why there's a text 0, 60 in the third picture? I didn't put any text there, it just appeared mysteriously... :frown:
Your \begin{picture} command has curly brackets after it {60,60} instead of round (60,60)
 
Physics news on Phys.org
J77 said:
Your \begin{picture} command has curly brackets after it {60,60} instead of round (60,60)
Ah, yes, thanks a lot. :blushing: Sometimes, I just mess up the round bracket, and the curly ones. :smile:
 
pavadrin said:
[tex]\frac{\pi ^2^2^2}{\log \cos \sin \tan[/tex]
You forgot to type in the '}' at the end.
[tex]\frac{\pi ^2^2^2}{\log \cos \sin \tan }[/tex]
 
I'm having trouble trying to write mass times specific heat times delta T subscript copper to represent the internal energy of a piece of copper. This was one of my many unsuccessful attempts:

[tex]mc /Delta T_{copper}[/tex]

How do you do it? :frown:

Testing: [tex]mc \partial_{x}[/tex]. I hope the mc part appears. (Edit: Guess it didn't)
 
Last edited:
Water said:
I'm having trouble trying to write mass times specific heat times delta T subscript copper to represent the internal energy of a piece of copper. This was one of my many unsuccessful attempts:

[tex]mc /Delta T_{copper}[/tex]

How do you do it? :frown:

Use \Delta
[tex]mc \Delta T_{copper}[/tex] <---click me
 
Feynman Diagram

Does anyone know how to use the Feynman diagram package in LaTex??

My Miktex has this "feynmf macros", how do I use it??
 
I am wanting to preview a post containing tex. But the preview tells me that it is being generated, and when I refresh to see the result, it then restarts the generation process.

I think.

Is there any way I can preview my tex before posting?

Thanks -- Sylas.

PS. I was trying to enter this:

[tex] \frac{\partial f}{\partial x} = \gamma<br /> \\<br /> \frac{\partial f}{\partial t} = \omega c<br /> \\<br /> \frac{\partial g}{\partial x} = \omega/c<br /> \\<br /> \frac{\partial g}{\partial t} = \gamma<br /> \\<br /> \gamma = ...[/tex]
 
Last edited:
sylas said:
I am wanting to preview a post containing tex. But the preview tells me that it is being generated, and when I refresh to see the result, it then restarts the generation process.

I think.

Is there any way I can preview my tex before posting?

Thanks -- Sylas.

Unfortunately, it seems that wonderful feature was broken in an upgrade.
 
here is inline text [itex]x=\frac{-b\pm \sqrt{b^2-4ac}}{2a}[/itex]
and normal latex[tex]x=\frac{-b\pm \sqrt{b^2-4ac}}{2a}[/tex]

lately the computer hasn't differentiated.
 
Ooh, look! itex uses littler font but still the white background!:biggrin:
 
oen_maclaude said:
i guess there is something wrong in the pdf file in
https://www.physicsforums.com/misc/howtolatex.pdf

it should be /tex not \tex

This post rather befuddled me, b/c I learned from that file and never had a problem...
Then I saw it--
although [ t e x ]...[ / t e x ] does appear twice., [ t e x ]...[ \ t e x ] appears once.
It's all in what you look for:smile: !

BTW, can anyone explain the itex [itex]\frac{7 days}{1 week}[/itex] vs tex [tex]\frac{7 days}{1 week}[/tex] deal?
 
Last edited:
mbrmbrg said:
This post rather befuddled me, b/c I learned from that file and never had a problem...
Then I saw it--
although [ t e x ]...[ / t e x ] does appear twice., [ t e x ]...[ \ t e x ] appears once.
It's all in what you look for:smile: !

BTW, can anyone explain the itex [itex]\frac{7 days}{1 week}[/itex] vs tex [tex]\frac{7 days}{1 week}[/tex] deal?

i guess it is better for articles to be consistent. just a thought. Anyway, thanks!
 
oen_maclaude said:
i guess it is better for articles to be consistent. just a thought. Anyway, thanks!

When you write articles, reports and such, you take much more advantage of latex than the forum does. here its just a mean to write readable mathematics. So what 'itex' tries to do is to mimic standard inline math ($ $) and 'tex' looks more like displaystyle math (\[ \]).
 
Hm. I thought itex was supposed to get rid of the white background, possibly w/o shrinking the font size. Then again, if it's to make it fit the line, of course a fraction has to be shrunk (shrunken?).
 
spot the error.

hi, I am using texniccenter, and i would appreciate if someone could sopt my errors in my code, and help me correct it.
here's the code:
\begin{normalsize}
\begin{document}
\begin{equation}
\normalsize
m\int\limits_{x_1}^{x_2}
\frac{dv}{dt}dx=\int\limits_'{x_1}^{x_2}F(x)dx
\nonumber\\
dx=\frac{dx}{dt}dt=vdt
\nonumber\\
m\int\limits_{x_1}^{x_2}\frac{dv}{dt}dx=m\int\limits_{t_1}^{t_2}\frac{dv}{dt}vdt
\nonumber\\
=\int\limits_{t_1}^{t_2}\frac(d}{dt}
(\frac{1}{2}v^2)dt=\frac{1}{2}m[v_2^2-v_1^2]
\end{equation}
\end{document}
\end{normalsize}
 
loop quantum gravity said:
hi, I am using texniccenter, and i would appreciate if someone could sopt my errors in my code, and help me correct it.
here's the code:
\begin{normalsize}
\begin{document}
\begin{equation}
\normalsize
m\int\limits_{x_1}^{x_2}
\frac{dv}{dt}dx=\int\limits_'{x_1}^{x_2}F(x)dx
\nonumber\\
dx=\frac{dx}{dt}dt=vdt
\nonumber\\
m\int\limits_{x_1}^{x_2}\frac{dv}{dt}dx=m\int\limits_{t_1}^{t_2}\frac{dv}{dt}vdt
\nonumber\\
=\int\limits_{t_1}^{t_2}\frac(d}{dt}
(\frac{1}{2}v^2)dt=\frac{1}{2}m[v_2^2-v_1^2]
\end{equation}
\end{document}
\end{normalsize}

It does not matter what program you used. If it will not compile it will not compile no matter the program you are useing.

First of all, *never* put any enviroments around, or outside your main document -- just doesn't work. \normalsize also does nothing for you in a math enviroment. a few other errors where in how you used \limits and \frac{}{}. The following compiles nicely

Code:
\documentclass{article}

%\begin{normalsize}
\begin{document}
\begin{equation}
%\normalsize
m\int\limits_{x_1}^{x_2}
\frac{dv}{dt}dx=\int\limits_{x_1}^{x_2}F(x)dx %removed '
\nonumber\\
dx=\frac{dx}{dt}dt=vdt
\nonumber\\
m\int\limits_{x_1}^{x_2}\frac{dv}{dt}dx=m\int\limits_{t_1}^{t_2}\frac{dv}{dt}vdt
\nonumber\\
=\int\limits_{t_1}^{t_2}\frac{d}{dt} %corrected ( => {
(\frac{1}{2}v^2)dt=\frac{1}{2}m[v_2^2-v_1^2]
\end{equation}
\end{document}
%\end{normalsize}
 
[tex]\oint E\cdot dA = \frac{Q_{enc}}{\epsilon_0}[/tex]

Yahoo! Finally produced Gauss' Law in latex!
 
Last edited:
VietDao29 said:
The circle command is too small, since the diameter can only be 14 mm. I just wonder if there is a way to magnify the picture? Or to draw a larger circle?
[tex] \]<br /> \unitlength 0.02mm<br /> \begin{picture}(4000,4000)(0,0)<br /> \linethickness{3pt}<br /> \textcolor{red}{<br /> \qbezier( 4000, 2000)( 3996, 2125)( 3984, 2250)<br /> \qbezier( 3984, 2250)( 3964, 2374)( 3937, 2497)<br /> \qbezier( 3937, 2497)( 3902, 2618)( 3859, 2736)<br /> \qbezier( 3859, 2736)( 3809, 2851)( 3752, 2963)<br /> \qbezier( 3752, 2963)( 3688, 3071)( 3618, 3175)<br /> \qbezier( 3618, 3175)( 3541, 3274)( 3457, 3369)<br /> \qbezier( 3457, 3369)( 3369, 3457)( 3274, 3541)<br /> \qbezier( 3274, 3541)( 3175, 3618)( 3071, 3688)<br /> \qbezier( 3071, 3688)( 2963, 3752)( 2851, 3809)<br /> \qbezier( 2851, 3809)( 2736, 3859)( 2618, 3902)<br /> \qbezier( 2618, 3902)( 2497, 3937)( 2374, 3964)<br /> \qbezier( 2374, 3964)( 2250, 3984)( 2125, 3996)<br /> \qbezier( 2125, 3996)( 1999, 4000)( 1874, 3996)<br /> \qbezier( 1874, 3996)( 1749, 3984)( 1625, 3964)<br /> \qbezier( 1625, 3964)( 1502, 3937)( 1381, 3902)<br /> \qbezier( 1381, 3902)( 1263, 3859)( 1148, 3809)<br /> \qbezier( 1148, 3809)( 1036, 3752)( 928, 3688)<br /> \qbezier( 928, 3688)( 824, 3618)( 725, 3541)<br /> \qbezier( 725, 3541)( 630, 3457)( 542, 3369)<br /> \qbezier( 542, 3369)( 458, 3274)( 381, 3175)<br /> \qbezier( 381, 3175)( 311, 3071)( 247, 2963)<br /> \qbezier( 247, 2963)( 190, 2851)( 140, 2736)<br /> \qbezier( 140, 2736)( 97, 2618)( 62, 2497)<br /> \qbezier( 62, 2497)( 35, 2374)( 15, 2250)<br /> \qbezier( 15, 2250)( 3, 2125)( 0, 1999)<br /> \qbezier( 0, 1999)( 3, 1874)( 15, 1749)<br /> \qbezier( 15, 1749)( 35, 1625)( 62, 1502)<br /> \qbezier( 62, 1502)( 97, 1381)( 140, 1263)<br /> \qbezier( 140, 1263)( 190, 1148)( 247, 1036)<br /> \qbezier( 247, 1036)( 311, 928)( 381, 824)<br /> \qbezier( 381, 824)( 458, 725)( 542, 630)<br /> \qbezier( 542, 630)( 630, 542)( 725, 458)<br /> \qbezier( 725, 458)( 824, 381)( 928, 311)<br /> \qbezier( 928, 311)( 1036, 247)( 1148, 190)<br /> \qbezier( 1148, 190)( 1263, 140)( 1381, 97)<br /> \qbezier( 1381, 97)( 1502, 62)( 1625, 35)<br /> \qbezier( 1625, 35)( 1749, 15)( 1874, 3)<br /> \qbezier( 1874, 3)( 1999, 0)( 2125, 3)<br /> \qbezier( 2125, 3)( 2250, 15)( 2374, 35)<br /> \qbezier( 2374, 35)( 2497, 62)( 2618, 97)<br /> \qbezier( 2618, 97)( 2736, 140)( 2851, 190)<br /> \qbezier( 2851, 190)( 2963, 247)( 3071, 311)<br /> \qbezier( 3071, 311)( 3175, 381)( 3274, 458)<br /> \qbezier( 3274, 458)( 3369, 542)( 3457, 630)<br /> \qbezier( 3457, 630)( 3541, 725)( 3618, 824)<br /> \qbezier( 3618, 824)( 3688, 928)( 3752, 1036)<br /> \qbezier( 3752, 1036)( 3809, 1148)( 3859, 1263)<br /> \qbezier( 3859, 1263)( 3902, 1381)( 3937, 1502)<br /> \qbezier( 3937, 1502)( 3964, 1625)( 3984, 1749)<br /> \qbezier( 3984, 1749)( 3996, 1874)( 4000, 1999)<br /> }<br /> \end{picture}<br /> \[[/tex]

[tex] \]<br /> \unitlength 0.02mm<br /> \begin{picture}(4000,4000)(0,0)<br /> \linethickness{3pt}<br /> \textcolor{blue}{<br /> \qbezier( 4000, 2000)( 3996, 2125)( 3984, 2250)<br /> \qbezier( 3984, 2250)( 3964, 2374)( 3937, 2497)<br /> \qbezier( 3937, 2497)( 3902, 2618)( 3859, 2736)<br /> \qbezier( 3859, 2736)( 3809, 2851)( 3752, 2963)<br /> \qbezier( 3752, 2963)( 3688, 3071)( 3618, 3175)<br /> \qbezier( 3618, 3175)( 3541, 3274)( 3457, 3369)<br /> \qbezier( 3457, 3369)( 3369, 3457)( 3274, 3541)<br /> \qbezier( 3274, 3541)( 3175, 3618)( 3071, 3688)<br /> \qbezier( 3071, 3688)( 2963, 3752)( 2851, 3809)<br /> \qbezier( 2851, 3809)( 2736, 3859)( 2618, 3902)<br /> \qbezier( 2618, 3902)( 2497, 3937)( 2374, 3964)<br /> \qbezier( 2374, 3964)( 2250, 3984)( 2125, 3996)<br /> \qbezier( 2125, 3996)( 1999, 4000)( 1874, 3996)<br /> \qbezier( 1874, 3996)( 1749, 3984)( 1625, 3964)<br /> \qbezier( 1625, 3964)( 1502, 3937)( 1381, 3902)<br /> \qbezier( 1381, 3902)( 1263, 3859)( 1148, 3809)<br /> \qbezier( 1148, 3809)( 1036, 3752)( 928, 3688)<br /> \qbezier( 928, 3688)( 824, 3618)( 725, 3541)<br /> \qbezier( 725, 3541)( 630, 3457)( 542, 3369)<br /> \qbezier( 542, 3369)( 458, 3274)( 381, 3175)<br /> \qbezier( 381, 3175)( 311, 3071)( 247, 2963)<br /> \qbezier( 247, 2963)( 190, 2851)( 140, 2736)<br /> \qbezier( 140, 2736)( 97, 2618)( 62, 2497)<br /> \qbezier( 62, 2497)( 35, 2374)( 15, 2250)<br /> \qbezier( 15, 2250)( 3, 2125)( 0, 1999)<br /> \qbezier( 0, 1999)( 3, 1874)( 15, 1749)<br /> \qbezier( 15, 1749)( 35, 1625)( 62, 1502)<br /> \qbezier( 62, 1502)( 97, 1381)( 140, 1263)<br /> \qbezier( 140, 1263)( 190, 1148)( 247, 1036)<br /> \qbezier( 247, 1036)( 311, 928)( 381, 824)<br /> \qbezier( 381, 824)( 458, 725)( 542, 630)<br /> \qbezier( 542, 630)( 630, 542)( 725, 458)<br /> \qbezier( 725, 458)( 824, 381)( 928, 311)<br /> \qbezier( 928, 311)( 1036, 247)( 1148, 190)<br /> \qbezier( 1148, 190)( 1263, 140)( 1381, 97)<br /> \qbezier( 1381, 97)( 1502, 62)( 1625, 35)<br /> \qbezier( 1625, 35)( 1749, 15)( 1874, 3)<br /> \qbezier( 1874, 3)( 1999, 0)( 2125, 3)<br /> \qbezier( 2125, 3)( 2250, 15)( 2374, 35)<br /> \qbezier( 2374, 35)( 2497, 62)( 2618, 97)<br /> \qbezier( 2618, 97)( 2736, 140)( 2851, 190)<br /> \qbezier( 2851, 190)( 2963, 247)( 3071, 311)<br /> \qbezier( 3071, 311)( 3175, 381)( 3274, 458)<br /> \qbezier( 3274, 458)( 3369, 542)( 3457, 630)<br /> \qbezier( 3457, 630)( 3541, 725)( 3618, 824)<br /> \qbezier( 3618, 824)( 3688, 928)( 3752, 1036)<br /> \qbezier( 3752, 1036)( 3809, 1148)( 3859, 1263)<br /> \qbezier( 3859, 1263)( 3902, 1381)( 3937, 1502)<br /> \qbezier( 3937, 1502)( 3964, 1625)( 3984, 1749)<br /> \qbezier( 3984, 1749)( 3996, 1874)( 4000, 1999)<br /> }<br /> <br /> \thicklines<br /> {\color{red}\put(2000, 2000){\vector(1, 0){2000}}}<br /> {\color{orange}\put(2000, 2000){\vector(4, 1){1000}}}<br /> {\color{yellow}\put(2000, 2000){\vector(3, 1){1500}}}<br /> {\color{green}\put(2000, 2000){\vector(2, 1){2000}}}<br /> {\color{blue}\put(2000, 2000){\vector(1, 2){500}}}<br /> \thicklines<br /> \put(2000, 2000){\vector(-4, 1){2000}}<br /> \put(2000, 2000){\vector(-1, 4){500}}<br /> \thinlines<br /> \put(2000, 2000){\vector(-1, -1){500}}<br /> \put(2000, 2000){\vector(-1, -4){500}}<br /> <br /> \end{picture}<br /> \[[/tex]
 
Last edited:
[tex]\alpha^2\sin(x)[/tex]
 
[tex](E_0-E_1+mc^2)^2=E^2_0+E^2_1 -2E_0E_1cos\theta +(mc^2)^2[/tex]
[tex]E^2_0- 2E_0E_1 +2E_0mc^2+E^2_1-2E_1mc^2 +m^2c^4=E^2_0+E^2_1 -2E_0E_1cos\theta +(mc^2)^2[/tex]
[tex]2E_0mc^2-2E_1mc^2=-2E_0E_1cos\theta+2E_0E_1[/tex]
[tex]2mc^2(E_0-E_1)=2E_0E_1(1-cos\theta)[/tex]

[tex]E=E_0-E_1+mc^2[/tex] [tex]c^2p^2=E^2_0+E^2_1 -2E_0E_1cos\theta[/tex]
[tex]E^2=c^2p^2+(mc^2)^2[/tex]
 
Last edited:
[tex]mc^2(\frac{hc}{\lambda_0}-\frac{hc}{\lambda_1})=\frac{hc}{\lambda_0}\frac{hc}{\lambda_1}(1-cos\theta)[/tex]
[tex]hmc^3(\frac{1}{\lambda_0}-\frac{1}{\lambda_1})=\frac{h^2c^2}{\lambda_0\lambda_1}(1-cos\theta)[/tex]
[tex]\lambda_0\lambda_1(\frac{1}{\lambda_0}-\frac{1}{\lambda_1})=\frac{h^2c^2}{hmc^3}(1-cos\theta)[/tex]
[tex]\lambda_1-\lambda_0=\frac{h}{mc}(1-cos\theta)[/tex]

[tex]E_0=hf_0[/tex] [tex]f_0=\frac{c}{\lambda_0}[/tex]
[tex]E_1=hf_1[/tex] [tex]f_1=\frac{c}{\lambda_1}[/tex]
 
Last edited:
HalfManHalfAmazing said:
[tex]\oint E\cdot dA = \frac{Q_{enc}}{\epsilon_0}[/tex]

Yahoo! Finally produced Gauss' Law in latex!

This would be better :biggrin: :

[itex]\oint_\mathcal{S} \mathbf{E} \cdot d\mathbf{A} = \frac{Q_\textrm{enc}}{\epsilon_0}[/itex]​
 
Last edited:
Hi all,

Here is my question:

In the [tex]E>U_0[/tex] potential barrier, there should be no reflected wave when the incident wave is at one of the transmisson resonances. Assuming that a beam of particles is incident at the first transmission resonance, [tex]E=U_0+(\frac{\pi^2 h^2}{2mL^2})[/tex], combine the continuity conditions to show that B=0. Here are the continuity conditions:

1st [tex]A+B=C+D[/tex]

2nd [tex]k(A- B)=k^{'}(C-D)[/tex]

3rd [tex]Ce^{ik^{'}L}+De^{-ik^{'}L}=Fe^{ikL}[/tex]

4th [tex]k^{'}(Ce^{ik^{'}L}-De^{-ik^{'}L})=kFe^{ikL}[/tex]

A couple more equations that we already know are [tex]k=\sqrt{\frac{2mE}{h^2}}[/tex] and [tex]k^'=\sqrt{\frac{2m(E-U_0)}{h^2}[/tex]

Here is my attempted solution:

I divided the 4th equation by K and then set equation 3 and 4 equal to each other. I then used the new equation to solve for C in terms of D giving me

[tex]C=De^{-2i \pi}\frac{k^{'}+k}{k^{'}-K}[/tex] where I substituted [tex]\frac{\pi}{L}[/tex] in for k'.

I substituted this result into the first equation to now give me

[tex]A+B={De^{-2i \pi}\frac{k^{'}+k}{k^{'}-K} + D[/tex].

Solving for D gives me

[tex]\frac{A+B}{e^{-2i \pi}\frac{k^{'}+k}{k^{'}-K} + 1} = D[/tex]

Now, plugging in our solutions for D and C into the 2nd equation

[tex]\frac{(A+B)e^{-2i \pi}\frac{k^{'}+k}{k^{'}-K}}{e^{-2i \pi}\frac{k^{'}+k}{k^{'}-K}+1}-\frac{A+B}{e^{-2i \pi}\frac{k^{'}+k}{k^{'}-K}+1}=\frac{k}{k^{'}}(A-B})[/tex]

At this point, it seems impossible to simplify the equation to a point where it is obvious that B = 0. Am I on the right track or is there an easier way?
 
Last edited:
[tex]17(1-\frac{1}{17^2})^\frac{1}{2}[/tex]

Does anyone know of a website that allows me to use tex code and generate latex graphics, that isn't necessarily part of a forum like this one?

BTW, the guy who coded LaTeX into this forum is a bloody wizard.

EDIT: God! LaTeX is amazing! I've been checking the examples in this thread... what an invention!
 
Last edited:
Found one here: http://at.org/~cola/tex2img/index.php

(sorry for double post, I can't find the EDIT button...)
 
Last edited by a moderator:
[tex]\frac{x-vt}{\sqrt{1-\frac{v^2}{c^2}}}[/tex]
[tex]\frac{x-vt}{\sqrt{2}}[/tex]
[tex]\sqrt{2}[/tex]
 
Last edited: