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.
  • #596
Why is that every time I write a math equation and when I click preview, I can never see the equation. I always just see the message telling me that the graphic is being generated. I have to submit my message first before I can see it. Can anyone please explain.
 
Physics news on Phys.org
  • #597
Corneo said:
Why is that every time I write a math equation and when I click preview, I can never see the equation. I always just see the message telling me that the graphic is being generated. I have to submit my message first before I can see it. Can anyone please explain.
That's an error with the update, and Greg is working on it.
You can read here :)
 
  • #598
How do I insert a line break?

How do I insert a line break? I have read the pdf file explaining the different commands. I have tried the following:

\\
\ \
\\
\ \
\linebreak
\linebreak[4]
\linebreak[0]

and many others. All help would be appreciated.
 
  • #599
Captain Zapp0 said:
How do I insert a line break? I have read the pdf file explaining the different commands. I have tried the following:

\\
\ \
\\
\ \
\linebreak
\linebreak[4]
\linebreak[0]

and many others. All help would be appreciated.
You may want to try \begin{array} and \end{array} commands.
Click on my LaTeX image to see the code.
[tex]\begin{array}{l} \mbox{Text 1} \\ \mbox{Text 2} \\ \frac{x}{2} = \frac{\gamma + \beta}{\varepsilon} \end{array}[/tex]
This is covered in 3 .PDF files in the first post of this thread.
 
  • #600
wow i have to ask how do u do that ...(btw thanks alot)
 
  • #601
Is there a latex command for Feynman diagrams or contractions in QFT (the lines joining operators to denote propogators and things)?
 
  • #602
Hmm...I usually just delete and repost should any
problems with [tex]\LaTeX[/tex] previewing occur :shy:

[tex]\mathop {\lim }\limits_{n \to \infty } \bigcup\limits_{i = 0}^{n!} {\left\{ {\frac{i}{{n!}}} \right\}} = \mathbb{Q} \cap \left[ {0,1} \right][/tex]
 
  • #603
How do you write 3D column vectors in [itex]\LaTeX[/itex]?
 
  • #605
electronic engineer said:
In my last post I've written:
v(w)=integral(v(t)*e^-jwt) ; - infinity<t<+infinity

how can i write it using latex?
Page through this thread and you'll find several examples of integrals that you can copy.
 
  • #606
[tex]
\]

\unitlength 1mm
\begin{picture}(55,90)(0,0)
\linethickness{0.3mm}
\put(20,10){\line(0,1){80}}
\linethickness{0.3mm}
\multiput(20,90)(0.12,-0.12){250}{\line(1,0){0.12}}
\linethickness{0.3mm}
\multiput(20,30)(0.12,0.12){250}{\line(1,0){0.12}}
\linethickness{0.3mm}
\multiput(20,10)(0.12,0.2){250}{\line(0,1){0.2}}
\put(15,30){\makebox(0,0)[cc]{t}}
\put(15,60){\makebox(0,0)[cc]{\gamma t}}
\put(15,90){\makebox(0,0)[cc]{k^2t}}

\put(55,60){\makebox(0,0)[cc]{kt}}

\end{picture}
\[
[/tex]
 
Last edited:
  • #607
[tex]
\]
\unitlength 1mm
\begin{picture}(55, 90)(0, 0)
\linethickness{0.3mm}
\put(20, 10){\line(0,1){80}}
\linethickness{0.3mm}
\multiput(20, 90)(0.12,-0.12){250}{\line(1, 0){0.12}}
\linethickness{0.3mm}
\multiput(20, 10)(0.12,0.2){250}{\line(0, 1){0.2}}
\put(15, 55){\makebox(0, 0)[cc]{c}}
\put(40, 76){\makebox(0, 0)[cc]{a}}
\put(42, 39){\makebox(0, 0)[cc]{b}}
\end{picture}
\[
[/tex]

Woo.. finally looks right :D

[tex]c^2 = a^2 + b^2[/tex]

Ignore this please, messing with the triangle above :D

Cheers,

Ryan Jone
 
Last edited:
  • #608
[tex]
\begin{tabular}[t]{|l|ccccc|c|}
\multicolumn{7}{c}{USAMTS Scores Round 1}\\
\hline
Name & \# 1 & \# 2 & \# 3 & \# 4 & \# 5 & Total\\
\hline
John Doe & 5 & 5 & 3 & 2 & 1 & 16\\
Jane Doe & 5 & 5 & 5 & 4 & 5 & 24\\
Richard Feynman & 5 & 5 & 5 & 5 & 5 & 25\\
\hline
\end{tabular}
[/tex]
 
  • #609
[tex]v(w)=int^{+infty}^{-infty} v(t) \e^{-jwt}, \dt [/tex]
 
Last edited:
  • #610
chroot said:
Hmmm well, I thought I knew how, but now I'm not so sure. I'll have to look around. Maybe Ambitwistor knows a trick to put a command that has been \renew'd back to its default behavior.

Also, I found this pdf of useful mathematical constructs, that goes a bit beyond what we already have:

http://amath.colorado.edu/documentation/LaTeX/Symbols.pdf

- Warren

Thank you!

I was looking for the integral over a closed surface symbol and the list had it: [tex] \large \oint [/tex].

-LD
 
  • #611
[tex]\Phi_F = \oint \vec{\ F} \cdot \vec{dA}[/tex]

[tex]\oint \vec{\ F} \cdot \vec{ds} = \nu_0 m_c_e_n_c[/tex]

[tex] \oint \vec{\ G} \cdot \vec{dl} = - \frac{d \Phi _F}{dt}[/tex]



[tex] \Phi_G = \oint \vec{\ G} \cdot \vec{dA} = \frac{m_e_n_c}{\gamma _0}[/tex]

[tex] \vec{\ F _f} = m \vec{\ v} \times \vec{F}[/tex]

[tex] \vec{\ F _f} = m_c \vec{\ L} \times \vec{F}[/tex]

[tex] d\vec{\ F} = \frac{\nu _0}{4\pi} \frac{m_c \vec{\ ds} \times \vec{r}}{r^3}[/tex]

[tex] u_G = \frac{1}{2}\gamma _0 G^2[/tex]

[tex] u_F = \frac{F^2}{2\nu _0}[/tex]
 
Last edited:
  • #612
[tex]0 < k \leq m < n,\ \ \gcd\left({{n}\choose{k}},{{n}\choose{m}}\right) > 1[/tex]

[tex]{{n}\choose{k}}{{n-k}\choose{m-k}} = {{n}\choose{m}}{{m}\choose{k}}[/tex]

[tex]{{n}\choose{k}} \left| {{n}\choose{m}}{{m}\choose{k}}[/tex]

[tex]\gcd\left({{n}\choose{k}},{{n}\choose{m}}\right) = 1[/tex]

[tex]{{n}\choose{k}} \left| {{m}\choose{k}}[/tex]

[tex]{{n}\choose{k}} > {{m}\choose{k}}[/tex]

[tex]\gcd\left({{n}\choose{k}},{{n}\choose{m}}\right) > 1[/tex]
 
Last edited:
  • #614
robphy said:
[tex]
\]

\unitlength 1mm
\begin{picture}(55,90)(0,0)
\linethickness{0.3mm}
\put(20,10){\line(0,1){80}}
\linethickness{0.3mm}
\multiput(20,90)(0.12,-0.12){250}{\line(1,0){0.12}}
\linethickness{0.3mm}
\multiput(20,30)(0.12,0.12){250}{\line(1,0){0.12}}
\linethickness{0.3mm}
\multiput(20,10)(0.12,0.2){250}{\line(0,1){0.2}}
\put(15,30){\makebox(0,0)[cc]{t}}
\put(15,60){\makebox(0,0)[cc]{\gamma t}}
\put(15,90){\makebox(0,0)[cc]{k^2t}}

\put(55,60){\makebox(0,0)[cc]{kt}}

\end{picture}
\[
[/tex]


Let me try...

[tex]
\]
\usepackage{pstricks, pstcol, pst-text}

\begin{pspicture}(-4, -3.2)(3, 0.2)
\psset{linecolor=white} % hidden
\pstextpath
{\pscurve(-4, -2)(-2, 0)(0, -3)(2, -1)%
(3, -2)(5, -3)}
{\color{blue} % font color
If you want to type
$(a+b)^n=\sum_{k=0}^n {n\choose k}
a^{n-k}b^k$ and let it follow along
a curving line \ldots}
\end{pspicture}
\[
[/tex]
I think the problem is that a line like
"\usepackage{pstricks, pstcol, pst-text}"
may call packages that are unavailable to this system... or maybe it's that this line must come before the \begin{document} line, which we wouldn't have access to.

I think you'll just have to make do with the picture environment.
But one can get it to do some interesting stuff...
for example, https://www.physicsforums.com/showpost.php?p=261562&postcount=300
 
Last edited:
  • #615
Perturbation said:
Is there a latex command for Feynman diagrams or contractions in QFT (the lines joining operators to denote propogators and things)?

Anyone? They would be kinda useful.
 
  • #618
[itex]E=mc^6[/itex]

- Warren
 
Last edited:
  • #619
[itex]
\begin{gathered}
\varepsilon _x = \bar \varepsilon _x = \frac{{d^2 }}
{{12}}\left( {M^2 - 1} \right) \hfill \\
d = \sqrt {\frac{{12\bar \varepsilon _x }}
{{M^2 - 1}}} \hfill \\
M = \sqrt {\frac{{12\bar \varepsilon _x }}
{{d^2 }} + 1} \hfill \\
\end{gathered}
[/itex]

LaTeX is functional again.

- Warren
 
  • #620
What's up with the white background?
 
  • #621
[tex] \] \unitlength 1mm \begin{picture}(55,90)(0,0) \linethickness{0.3mm} \put(20,10){\line(0,1){80}} \linethickness{0.3mm} \multiput(20,90)(0.12,-0.12){250}{\line(1,0){0.12}} \linethickness{0.3mm} \multiput(20,30)(0.12,0.12){250}{\line(1,0){0.12}} \linethickness{0.3mm} \multiput(20,10)(0.12,0.2){250}{\line(0,1){0.2}} \put(15,30){\makebox(0,0)[cc]{t}} \put(15,60){\makebox(0,0)[cc]{\gamma t}} \put(15,90){\makebox(0,0)[cc]{k^2t}} \put(55,60){\makebox(0,0)[cc]{kt}} \end{picture} \[ [/tex]

[tex]\mbox{transparency gone?}[/tex] with tex

[itex]\mbox{transparency gone?}[/itex] with latex

[itex]\mbox{transparency gone?}[/itex] with itex

preview working?:frown:
 
Last edited:
  • #622
[tex]
\begin{gathered}
{\text{CH}}_4 + 2{\text{O}}_2 \to {\text{CO}}_2 + 2{\text{H}}_2 {\text{O}} \hfill \\
2{\text{C}}_2 {\text{H}}_6 + 7{\text{O}}_2 \to 4{\text{CO}}_2 + 6{\text{H}}_2 {\text{O}} \hfill \\
2{\text{C}}_2 {\text{H}}_4 + 3{\text{O}}_2 \to 2{\text{CO}}_2 + 2{\text{H}}_2 {\text{O}} \hfill \\
2{\text{C}}_2 {\text{H}}_2 + 5{\text{O}}_2 \to 4{\text{CO}}_2 + 2{\text{H}}_2 {\text{O}} \hfill \\
\end{gathered} [/tex]
 
  • #623
[tex]\LaTeX[/tex]

-White Background :grumpy: ?
 
  • #624
Testing...

[tex]\vec{F} = m \vec{a}[/tex]

white background? Blech! :yuck:
 
  • #625
In line testing [itex]\vec{F} = m \vec{a}[/itex]
 
  • #626
re-test of an old example

robphy said:
[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]
Transparency broken?
 
  • #627
I am not familiar with drawing in LaTeX, and I just wonder where I can find a short tutorial on this topic.
I think it should also be added to the first page of this thread, so that someone new to LaTeX can learn how to draw.
It's just my $0.02.
 
  • #628
I don't know of anyone else who uses this \picture environment here at PF. For general (i.e. not-necessarily PF) LaTeX, you might look at http://www.eng.cam.ac.uk/help/tpl/textprocessing/teTeX/latex/latex2e-html/ltx-43.html

Here what I use sometimes http://jpicedt.sourceforge.net/
With some effort (see example below [click on image for source]) and some manual tweaks, you can get its output into a PF post.

[tex]
\]
\unitlength 1mm
\begin{picture}(55,90)(0,0)
\linethickness{0.3mm}
\put(20,10){\line(0,1){80}}
\linethickness{0.3mm}
\multiput(20,90)(0.12,-0.12){250}{\line(1,0){0.12}}
\linethickness{0.3mm}
\multiput(20,30)(0.12,0.12){250}{\line(1,0){0.12}}
\linethickness{0.3mm}
\multiput(20,10)(0.12,0.2){250}{\line(0,1){0.2}}
\put(15,30){\makebox(0,0)[cc]{t}}
\put(15,60){\makebox(0,0)[cc]{\gamma t}}
\put(15,90){\makebox(0,0)[cc]{k^2t}}
\put(55,60){\makebox(0,0)[cc]{kt}}
\end{picture}
\[
[/tex]
 
Last edited by a moderator:
  • #629
robphy said:
[tex]
\]
\unitlength 1mm
\begin{picture}(55,90)(0,0)
\linethickness{0.3mm}
\put(20,10){\line(0,1){80}}
\linethickness{0.3mm}
\multiput(20,90)(0.12,-0.12){250}{\line(1,0){0.12}}
\linethickness{0.3mm}
\multiput(20,30)(0.12,0.12){250}{\line(1,0){0.12}}
\linethickness{0.3mm}
\multiput(20,10)(0.12,0.2){250}{\line(0,1){0.2}}
\put(15,30){\makebox(0,0)[cc]{t}}
\put(15,60){\makebox(0,0)[cc]{\gamma t}}
\put(15,90){\makebox(0,0)[cc]{k^2t}}
\put(55,60){\makebox(0,0)[cc]{kt}}
\end{picture}
\[
[/tex]

Testing transparency.. 13

- Warren
 
Last edited:
  • #630
robphy said:
[tex]
\]
\unitlength 1mm
\begin{picture}(55,90)(0,0)
\linethickness{0.3mm}
\put(20,10){\line(0,1){80}}
\linethickness{0.3mm}
\multiput(20,90)(0.12,-0.12){250}{\line(1,0){0.12}}
\linethickness{0.3mm}
\multiput(20,30)(0.12,0.12){250}{\line(1,0){0.12}}
\linethickness{0.3mm}
\multiput(20,10)(0.12,0.2){250}{\line(0,1){0.2}}
\put(15,30){\makebox(0,0)[cc]{t}}
\put(15,60){\makebox(0,0)[cc]{\gamma t}}
\put(15,90){\makebox(0,0)[cc]{k^2t}}
\put(55,60){\makebox(0,0)[cc]{kt}}
\end{picture}
\[
[/tex]

[tex]
\]
\unitlength 1mm
\begin{picture}(55,90)(0,0)
\linethickness{0.3mm}
\put(20,10){\line(0,1){80}}
\linethickness{0.3mm}
\multiput(20,90)(0.12,-0.12){250}{\line(1,0){0.12}}
\linethickness{0.3mm}
\multiput(20,30)(0.12,0.12){250}{\line(1,0){0.12}}
\linethickness{0.3mm}
\multiput(20,10)(0.12,0.2){250}{\line(0,1){0.2}}
\put(15,30){\makebox(0,0)[cc]{t}}
\put(15,60){\makebox(0,0)[cc]{\gamma t}}
\put(15,90){\makebox(0,0)[cc]{k^2t}}
\put(55,60){\makebox(0,0)[cc]{kt}}
\end{picture}
\[
[/tex]

Testing transparency.. 53

- Warren
 
Last edited:

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
937
  • MATLAB, Maple, Mathematica, LaTeX
Replies
1
Views
948
  • 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