LaTeX Introducing LaTeX Math Typesetting

AI Thread 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.
  • #551
Read This: Please delete practice posts :-)

Folks:

Use this thread to practice your Latex (that's what it's for), but unless you've come up with something that hasn't been done before in the last gazillion posts: Please delete your post after you're done!

Of course, if you've come up with something new: Leave it there for others to learn from.

Thanks!
 
Physics news on Phys.org
  • #552
robphy, I just clicked on kishtik's equation and I can get the LaTeX source. In your post though, it is a png file.

What I have noticed it that if one does not close the LaTeX source code viewing window, subsequent LaTeX code is added to the window (by right clicking on the LaTeX formula), and one has to scroll down to view.
 
Last edited:
  • #553
actually, it was intended to verify that the IMG tag works here (and possibly in other non-GD areas)
 
  • #554
True or False?

\boxed{\begin{gathered}<br /> \forall p,q,r \in \mathbb{N}\;{\text{where }}p &gt; q &gt; 0, \hfill \\<br /> \exists \left\{ {a_0 ,a_1 ,a_2 , \ldots ,a_n } \right\} \subset \bigcup\limits_{i = 0}^{p - 1} {\left\{ {\frac{i}<br /> {q}} \right\}} \hfill \\<br /> {\text{such that }}\frac{r}<br /> {q} = \sum\limits_{k = 0}^n {a_k \left( {\frac{p}<br /> {q}} \right)^k } \hfill \\ <br /> \end{gathered}}

\boxed{\begin{gathered}<br /> \forall p,q \in \mathbb{N}\;{\text{where }}p &gt; q &gt; 0, \hfill \\<br /> \mathbb{N} \subset \bigcup\limits_{k \geqslant 0} {\left\{ {\sum\limits_{n = 0}^\infty {\left( {\left\lfloor {\frac{k}{{p^n }}} \right\rfloor - p\left\lfloor {\frac{k}{{p^{n + 1} }}} \right\rfloor } \right)\left( {\frac{p}{q}} \right)^n } } \right\}} \hfill \\ <br /> \end{gathered}}
 
  • #555
<br /> ...\ =\ (\mbox{Lagrange})\ \sum_{i=1}^{n} \frac{\partial f}{\partial x_i} \left( \xi^{i} \right) h_i\mbox{ , kde }\xi^{i} \in [a_i, a_i\ +\ h_i]<br />

<br /> \xi^{i} = [a_i, ..., a_{i-1}, a_i\ +\ \vartheta h_i, a_{i+1}\ +\ h_{i+1}, ..., a_n\ +\ h_n]\mbox{, }\vartheta \in (0,1)<br />
 
Last edited:
  • #556
testing:
x^a_i
 
  • #557
<br /> \left\{ u_{n}\right\}<br />

is bounded in

<br /> $W^{1,N-1}\left( \Omega;\mathbb{R}^{N}\right)<br />

,

<br /> \left\{ \mathrm{adj}\nabla u_{n}\right\} \subset L^{\frac{N}{N-1}}\left( \Omega;\mathbb{R}^{{N}\times{N}}\right)<br />

and if

<br /> u\in BV\left( \Omega;\mathbb{R}^{N}\right)<br />


are such that

<br /> u_{n}\rightarrow u<br />

in

<br /> L^{1}\left( \Omega;\mathbb{R}^{N}\right)<br />

and

<br /> \[ \det\nabla u_{n}\overset{\ast}{\rightharpoonup}\mu \]<br />

in the sense of measures, then for

<br /> \mathcal{L}^{N}<br />

a.e.

<br /> x\in\Omega$ \[ \det\nabla u\left( x\right) =\frac{d\mu}{d\mathcal{L}^{N}}\left( x\right). \]<br />

The result is sharp and counterexamples are provided in the cases where regularity of

<br /> \left\{ u_{n}\right\}<br />

or the type of weak convergence are weakened.
 
  • #558
Does anyone know of a program I can use to compile latex code? Any output format is fine, pdf, gif, etc. And simpler is better, I'm no computer programmer.
 
  • #559
\oint \vec{E} \cdot d \vec{A} =\frac{q}{\epsilon_0}

\oint \vec{B} \cdot d \vec{A} =0

\oint \vec{E} \cdot d \vec{s} = -\frac{d \Phi_B}{dt}

\oint \vec{B} \cdot d \vec{s} = \mu_0 i + \mu_0 \epsilon_0 \frac{d \Phi_E}{dt}
 
  • #560
Of course, I have to test too. ;)

\frac{d}{dx} f(x) = \lim_{\Delta x \rightarrow 0} \frac{f(x + \Delta x) - f(x)}{\Delta x}

\int^b_a f(x) dx = F(b) - F(a)
 
Last edited:
  • #561
sure...

StatusX said:
Does anyone know of a program I can use to compile latex code? Any output format is fine, pdf, gif, etc. And simpler is better, I'm no computer programmer.



For Windows systems, there is the option of MikTeX also there exist ghostscript and other similar packages you will need, they are free.


In Linux, I exactly don't know, but normally the distributions contain TeX and LaTeX, also there is a editor that I will like to understand called LyX, LyX is also available IRC for Windows...







Do you know any other good editor for TeX files? for learn the basics?
 
  • #562
rea said:
For Windows systems, there is the option of MikTeX also there exist ghostscript and other similar packages you will need, they are free.

I downloaded MikTex, but it seems to need a lot of other programs to work. I couldn't figure it out. I'm just looking for some program where you can give it a filename and it will compile it into some reasonable output form (preferably pdf). Do you know something like this, or if not, do you know how I can use MikTex to do what I need?
 
  • #563
I dunno, but I think MikTex only provides a Yap viewer, i.e some kind of integrated environment for beautiful formulae (maybe I'm wrong though).
If you want to translate LaTeX code to .pdf files, I'd recommend TeXnicCenter
Just download it, and run it. It can convert LaTeX to PDF, LaTeX to DVI (viewed with yap viewer), or LaTeX to PS. :smile:
Hope that's what you are looking for.
 
  • #564
VietDao29 said:
I dunno, but I think MikTex only provides a Yap viewer, i.e some kind of integrated environment for beautiful formulae (maybe I'm wrong though).
If you want to translate LaTeX code to .pdf files, I'd recommend TeXnicCenter
Just download it, and run it. It can convert LaTeX to PDF, LaTeX to DVI (viewed with yap viewer), or LaTeX to PS. :smile:
Hope that's what you are looking for.

Hey, thanks a lot. That's just what I needed.
 
  • #565
I downloaded MikTex, but it seems to need a lot of other programs to work. I couldn't figure it out. I'm just looking for some program where you can give it a filename and it will compile it into some reasonable output form (preferably pdf). Do you know something like this, or if not, do you know how I can use MikTex to do what I need?

Not all is easy.

You need all the tools, because Windows dosent provide a dvi visor or a ps visor, then you need download ghostscript (that are free also).
I dunno, but I think MikTex only provides a Yap viewer, i.e some kind of integrated environment for beautiful formulae (maybe I'm wrong though)

See the description by instance:
MiKTeX is an up-to-date TeX implementation for the Windows operating system.

TeX is a typesetting system written by Donald E. Knuth, who says that it is "intended for the creation of beautiful books - and especially for books that contain a lot of mathematics".

MiKTeX offers a complete set of utilities, macro packages and fonts, e.g., LaTeX, pdfTeX, ConTeXt, just to name a few.
In fact, I think that TeXnicCenter use MikTeX like the compiler, ie, texnicenter is only the IDE like there are IDEs for control compilers for programming languages in a nice enviroment, like DEv-cpp use Mingw package, or VS use make, ml and other command line tools.

NOW, with those aclarations, for use miktex, download the minimal installer, about 30Mb, if you need additional packages (aka more things to add), you can use a install center that is provided with miktex and download what you need... and is this one:

Getting updates

Use the update wizard (Start->MiKTeX->MiKTeX Update Wizard) to get the latest package updates.
the ghost script...

GPL Ghostscript 8.50
Posted on Wed, 04 Jan 2006 04:42:00 GMT
http://dojo.miktex.org/blogs/christian_schenk/archive/2006/01/03/247.aspx

that link to: http://sourceforge.net/project/shownotes.php?group_id=1897&release_id=382430

See that is a sf (source forge) page, then the summary of the project is: http://sourceforge.net/projects/ghostscript/ and the home page is http://www.ghostscript.com/

That is all you need:

Core files for TeX (compilation and related things to this process, macros, definitions,...):

1) MikTeX

Viewers:

1) Gostscript and related packages

And an editor for call the above programs:

1) TexniCenter
2) I suguest LyX really (is like WYSIWYG, but not at all, is an WYSIWYM, What You See Is What You Mean, note that because a diferent point of view, switch to it will be extrange XD.For read a more wide introduction in install and other tools: http://www.miktex.org/Links.aspx see that there is listed texnicenter as a editor... also there is listed Lyx, the one I recommend is more nice I think, really you should try it.
 
Last edited by a moderator:
  • #566
Thanks for the info. I think TexnicCenter does what I need, and it's pretty simple.
 
  • #567
e^{\pi i}+1=0
 
Last edited:
  • #568
f(x) = \left\{\begin{array}{cc}x^2 \sin(\frac{1}{x}),&amp; \mbox{ if } x\neq 0\\0, &amp; \mbox{ if } x=0\end{array}\right
 
Last edited:
  • #569
\sum _{k=1} ^{K} \left\lfloor\frac{n}{p^k}\right\rfloor &lt; \frac{n}{p-1}

n\cdot\sum _{k=1} ^{K} \left\lfloor\frac{1}{p^k}\right\rfloor &lt; n\left (\frac{1}{p-1}\right )

\sum _{k=1} ^{K} \left\lfloor\frac{1}{p^k}\right\rfloor &lt; \frac{1}{p-1}

\sum _{k=1} ^{K} \left\lfloor\frac{p^K}{p^k}\right\rfloor &lt; \frac{p^K}{p-1}

p^{K-1} + \dots + 1 &lt; \frac{p^K}{p-1}

(p^{K-1} + \dots + 1)(p-1) &lt; p^K

p^K - 1 &lt; p^K
 
Last edited:
  • #570
<br /> \xi^{i} = (a_1\ +\ h_1,\ a_2\ +\ h_2,\ ...\ ,\ a_{i-1}\ +\ h_{i-1},\ a_i\ +\ \vartheta h_i,\ a_{i+1},\ a_{i+2}...,\ a_{n})\mbox{, }\vartheta \in (0,1)<br />

<br /> \xi = (a_1 + h_1,\ a_2 + h_2,\ ...\ ,\ a_n + h_n)<br />
 
Last edited:
  • #571
Tzar said:
Can someone please tell me the latex code for the little circle which denotes composition of functions?
Do you mean this symbol?

\circ

Just click on my LaTeX code. Here's an example:

f \circ g
 
  • #572
Could anyone suggest modern LaTeX to HTML utility for win32 system?
I imagine my visualization of documents as: in HTML there are LaTeX documents(or simply block of LaTeX code) and when displaying it will be transformed to HTML or image and will be visible as normal math (just as on this forum).
 
Last edited:
  • #573
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.
 
  • #574
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 :)
 
  • #575
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.
 
  • #576
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.
\begin{array}{l} \mbox{Text 1} \\ \mbox{Text 2} \\ \frac{x}{2} = \frac{\gamma + \beta}{\varepsilon} \end{array}
This is covered in 3 .PDF files in the first post of this thread.
 
  • #577
wow i have to ask how do u do that ...(btw thanks alot)
 
  • #578
Is there a latex command for Feynman diagrams or contractions in QFT (the lines joining operators to denote propogators and things)?
 
  • #579
Hmm...I usually just delete and repost should any
problems with \LaTeX previewing occur :shy:

\mathop {\lim }\limits_{n \to \infty } \bigcup\limits_{i = 0}^{n!} {\left\{ {\frac{i}{{n!}}} \right\}} = \mathbb{Q} \cap \left[ {0,1} \right]
 
  • #580
How do you write 3D column vectors in \LaTeX?
 
  • #582
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.
 
  • #583
<br /> \]<br /> <br /> \unitlength 1mm<br /> \begin{picture}(55,90)(0,0)<br /> \linethickness{0.3mm}<br /> \put(20,10){\line(0,1){80}}<br /> \linethickness{0.3mm}<br /> \multiput(20,90)(0.12,-0.12){250}{\line(1,0){0.12}}<br /> \linethickness{0.3mm}<br /> \multiput(20,30)(0.12,0.12){250}{\line(1,0){0.12}}<br /> \linethickness{0.3mm}<br /> \multiput(20,10)(0.12,0.2){250}{\line(0,1){0.2}}<br /> \put(15,30){\makebox(0,0)[cc]{t}}<br /> \put(15,60){\makebox(0,0)[cc]{\gamma t}}<br /> \put(15,90){\makebox(0,0)[cc]{k^2t}}<br /> <br /> \put(55,60){\makebox(0,0)[cc]{kt}}<br /> <br /> \end{picture}<br /> \[<br />
 
Last edited:
  • #584
<br /> \]<br /> \unitlength 1mm<br /> \begin{picture}(55, 90)(0, 0)<br /> \linethickness{0.3mm}<br /> \put(20, 10){\line(0,1){80}}<br /> \linethickness{0.3mm}<br /> \multiput(20, 90)(0.12,-0.12){250}{\line(1, 0){0.12}} <br /> \linethickness{0.3mm}<br /> \multiput(20, 10)(0.12,0.2){250}{\line(0, 1){0.2}}<br /> \put(15, 55){\makebox(0, 0)[cc]{c}}<br /> \put(40, 76){\makebox(0, 0)[cc]{a}}<br /> \put(42, 39){\makebox(0, 0)[cc]{b}}<br /> \end{picture}<br /> \[<br />

Woo.. finally looks right :D

c^2 = a^2 + b^2

Ignore this please, messing with the triangle above :D

Cheers,

Ryan Jone
 
Last edited:
  • #585
<br /> \begin{tabular}[t]{|l|ccccc|c|}<br /> \multicolumn{7}{c}{USAMTS Scores Round 1}\\<br /> \hline<br /> Name &amp; \# 1 &amp; \# 2 &amp; \# 3 &amp; \# 4 &amp; \# 5 &amp; Total\\<br /> \hline<br /> John Doe &amp; 5 &amp; 5 &amp; 3 &amp; 2 &amp; 1 &amp; 16\\<br /> Jane Doe &amp; 5 &amp; 5 &amp; 5 &amp; 4 &amp; 5 &amp; 24\\<br /> Richard Feynman &amp; 5 &amp; 5 &amp; 5 &amp; 5 &amp; 5 &amp; 25\\<br /> \hline<br /> \end{tabular}<br />
 
  • #586
v(w)=int^{+infty}^{-infty} v(t) \e^{-jwt}, \dt
 
Last edited:
  • #587
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: \large \oint.

-LD
 
  • #588
\Phi_F = \oint \vec{\ F} \cdot \vec{dA}

\oint \vec{\ F} \cdot \vec{ds} = \nu_0 m_c_e_n_c

\oint \vec{\ G} \cdot \vec{dl} = - \frac{d \Phi _F}{dt}



\Phi_G = \oint \vec{\ G} \cdot \vec{dA} = \frac{m_e_n_c}{\gamma _0}

\vec{\ F _f} = m \vec{\ v} \times \vec{F}

\vec{\ F _f} = m_c \vec{\ L} \times \vec{F}

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

u_G = \frac{1}{2}\gamma _0 G^2

u_F = \frac{F^2}{2\nu _0}
 
Last edited:
  • #589
0 &lt; k \leq m &lt; n,\ \ \gcd\left({{n}\choose{k}},{{n}\choose{m}}\right) &gt; 1

{{n}\choose{k}}{{n-k}\choose{m-k}} = {{n}\choose{m}}{{m}\choose{k}}

{{n}\choose{k}} \left| {{n}\choose{m}}{{m}\choose{k}}

\gcd\left({{n}\choose{k}},{{n}\choose{m}}\right) = 1

{{n}\choose{k}} \left| {{m}\choose{k}}

{{n}\choose{k}} &gt; {{m}\choose{k}}

\gcd\left({{n}\choose{k}},{{n}\choose{m}}\right) &gt; 1
 
Last edited:
  • #591
robphy said:
<br /> \]<br /> <br /> \unitlength 1mm<br /> \begin{picture}(55,90)(0,0)<br /> \linethickness{0.3mm}<br /> \put(20,10){\line(0,1){80}}<br /> \linethickness{0.3mm}<br /> \multiput(20,90)(0.12,-0.12){250}{\line(1,0){0.12}}<br /> \linethickness{0.3mm}<br /> \multiput(20,30)(0.12,0.12){250}{\line(1,0){0.12}}<br /> \linethickness{0.3mm}<br /> \multiput(20,10)(0.12,0.2){250}{\line(0,1){0.2}}<br /> \put(15,30){\makebox(0,0)[cc]{t}}<br /> \put(15,60){\makebox(0,0)[cc]{\gamma t}}<br /> \put(15,90){\makebox(0,0)[cc]{k^2t}}<br /> <br /> \put(55,60){\makebox(0,0)[cc]{kt}}<br /> <br /> \end{picture}<br /> \[<br />


Let me try...

<br /> \]<br /> \usepackage{pstricks, pstcol, pst-text}<br /> <br /> \begin{pspicture}(-4, -3.2)(3, 0.2)<br /> \psset{linecolor=white} % hidden<br /> \pstextpath<br /> {\pscurve(-4, -2)(-2, 0)(0, -3)(2, -1)%<br /> (3, -2)(5, -3)}<br /> {\color{blue} % font color<br /> If you want to type<br /> $(a+b)^n=\sum_{k=0}^n {n\choose k}<br /> a^{n-k}b^k$ and let it follow along <br /> a curving line \ldots} <br /> \end{pspicture} <br /> \[<br />
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:
  • #592
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.
 
  • #595
E=mc^6

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

LaTeX is functional again.

- Warren
 
  • #597
What's up with the white background?
 
  • #598
\] \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} \[

\mbox{transparency gone?} with tex

\mbox{transparency gone?} with latex

\mbox{transparency gone?} with itex

preview working?:frown:
 
Last edited:
  • #599
<br /> \begin{gathered}<br /> {\text{CH}}_4 + 2{\text{O}}_2 \to {\text{CO}}_2 + 2{\text{H}}_2 {\text{O}} \hfill \\<br /> 2{\text{C}}_2 {\text{H}}_6 + 7{\text{O}}_2 \to 4{\text{CO}}_2 + 6{\text{H}}_2 {\text{O}} \hfill \\<br /> 2{\text{C}}_2 {\text{H}}_4 + 3{\text{O}}_2 \to 2{\text{CO}}_2 + 2{\text{H}}_2 {\text{O}} \hfill \\<br /> 2{\text{C}}_2 {\text{H}}_2 + 5{\text{O}}_2 \to 4{\text{CO}}_2 + 2{\text{H}}_2 {\text{O}} \hfill \\ <br /> \end{gathered}
 
  • #600
\LaTeX

-White Background ?
 

Similar threads

Replies
5
Views
3K
Replies
3
Views
2K
Replies
4
Views
3K
Replies
8
Views
3K
Replies
3
Views
2K
Back
Top