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.
  • #251
Like this?
abcdefghijklmnopqrstuvwxyz

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

Symbol does not appear in the Font-menu.
 
Physics news on Phys.org
  • #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
\frac{3^{2/3}}{3x^{1/3}*((3x)^{2/3}+2)^{1/2}}
 
  • #259
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
 
  • #260
How do you write the sign for a line integral around a closed curve?
 
  • #261
\oint f(x) dx

- 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:

<br /> \begin{multline*}<br /> a+b+c+d\\<br /> +e+f+g+h<br /> \end{multline*}<br />

<br /> \begin{equation*}<br /> \begin{split}<br /> a+b+c+d\\<br /> +e+f+g+h<br /> \end{split}<br /> \end{equation*}<br />

<br /> \begin{equation*}<br /> \begin{split}<br /> &amp;a+b+c+d\\<br /> &amp;+e+f+g+h<br /> \end{split}<br /> \end{equation*}<br />

<br /> \begin{equation*}<br /> \begin{split}<br /> a+b&amp;+c+d\\<br /> +e+f+g&amp;+h<br /> \end{split}<br /> \end{equation*}<br />
 
  • #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 "//").

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

<br /> \begin{multline*}<br /> \begin{split}<br /> &amp;G:\ \ gravitational\ constant\ (6.672\ 10^{-11}\ Nm^{2}kg^{-2}) \\<br /> &amp;line 2<br /> \end{split}<br /> \end{multline*}<br />

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:

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

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

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})

F_z = G \frac{m1\ m2}{r^2}

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)...

<br /> \begin{multline*}<br /> \begin{slpit}<br /> &amp;G:\ \ gravitational\ constant\ (6.672\ 10^{-11}\ Nm^{2}kg^{-2}) \\<br /> &amp;m1:\ your\ mass\\<br /> &amp;m2:\ mass\ of\ planet \\<br /> &amp;r:\ \ distance\ from\ you\ to\ planet\ (from\ centre\ of\ your\ mass\ to\ &amp;centre\ of\ planet&#039;s\ mass) \\<br /> &amp;F_z:\ \ force\ between\ masses\\ <br /> &amp;\\<br /> &amp;F_z\ =\ G\ \frac{m1\ m2}{r^2}\\ <br /> &amp;\\<br /> &amp;on\ earth:\\ <br /> &amp;m1\ =\ \frac{F_z}{9.8}\\ <br /> &amp;\\ <br /> &amp;so,\ on\ planet:\\ <br /> &amp;m1\ =\ \ G\ \frac{m1\ m2}{9.8\ r^2}<br /> \end{split}<br /> \end{multline*}<br />
 
  • #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
 
  • #271
<br /> <br /> <br /> \begin{align}<br /> x&amp; = y &amp;&amp; \text{def}\\<br /> &amp; = y+\textcolor{blue}{(y-y)} &amp;&amp; \text{add \textcolor{blue}{zero}}\\<br /> &amp; = 2y-y &amp;&amp; \text {\textcolor{red}{algebra}}<br /> \end{align}<br /> <br /> <br />

very plain text, slightlyfanciertext, loud text

<br /> \]<br /> <br /> \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}}<br /> \put(0,0){\vector(1,4){170}}<br /> \put(50,50){\circle*{10}} <br /> <br /> <br /> <br /> \put(160,40){\framebox(80,40)[r]{ \textcolor{blue}{\bf \[ x_{Bob} \] } } }<br /> \put(40,160){\textcolor{yellow}{\dashbox(80,40)[t]{ \textcolor{red}{ \[ t_{Bob} \] } } }}<br /> <br /> \qbezier(100,100)(200,100)(200,200)<br /> \linethickness{8pt} <br /> \textcolor{green}{\qbezier(0,0)(0,100)(100,100)}<br /> \linethickness{1pt} <br /> \qbezier(0,0)(0,100)(100,100)<br /> <br /> \end{picture}<br /> \[<br /> <br /> <br />

<br /> \newcommand{\VARTEXT}[2][\scriptsize]{\left(\mbox{#1\begin{tabular}{c}#2\end{tabular}}\right)}<br /> <br /> <br /> <br /> \VARTEXT[\large]{net-work done \\ on the object }<br /> =<br /> \VARTEXT[\large]{change in \\ the kinetic energy \\ of the object }<br /> <br /> <br />
 
  • #272
Cool examples robphy!

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

<br /> a_0 (t)<br />

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

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

- Warren
 
  • #276
<br /> a_0 (t) \partial a_0 = t^2 \partial t<br />
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
<br /> F_g \{s,t\} = ...<br />

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

<br /> F_g^{ \{s,t\} } = ...<br />

<br /> F_g^{ (s,t) } = ...<br />

<br /> F_g (s,t) = ...<br />

<br /> F_g \{s\} = ...<br />

<br /> F_g (s) = ...<br />

try a font size change


<br /> F_g \mbox{\Large (s,t)}<br />

<br /> F_g \mbox{\large (s,t)}<br />

<br /> F_g^{\mbox{\HUGE (s,t) }} = ...<br />
 
Last edited:
  • #277
The parentheses are standard notation...

a_0 (t) is a function, a_0 t is a multiplication.

- Warren
 
  • #278
I suppose that is a good point. Now I am having trouble getting the font size to work though
 
  • #279
\mbox{\Huge a_0 t}

\mbox{\LARGE a_0 t}

\mbox{\Large a_0 t}

\mbox{\large a_0 t}

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

EDIT: The sizes are fixed now.
 
Last edited:
  • #281
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:
  • #282
<br /> v = A\sin(\omega t + \epsilon + \phi) <br /> + \sum

k = \sqrt{\omega\kappa}
 
  • #283
This is just a test.
 

Attachments

  • #284
Hello everybody!
Do you know how to write in Latex a big square cap with underlying text like formulas in display math style?
 
  • #285
\frac{1}{2}sqrt5+1
 
Last edited:
  • #286
1-(v^2 / c^2)
 
  • #287
Tesing for 3.0.3 upgrade:

q^2

- Warren
 
  • #288
Another 3.0.3 test

r^2
 
  • #289
Another 3.0.3 test

m^2
 
  • #290
Another 3.03 test

n^2
 
  • #291
Just trying to figure out if there's anything in particular screwing things up:

blah blah blah xy=z blah blah
 
Last edited:
  • #292
Test 3.03:

a^2 and a^3

- Warren
 
  • #293
This is a test of the new latex hierarchy:

\vec v \cdot \vec u = 100

- Warren
 
Last edited:
  • #294
This is a test of the new latex hierarchy:

\vec v \cdot \vec u = 20
 
  • #295
Test

<br /> \mbox{\Huge \[<br /> e^{jz} = cosz + jsinz\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\left( {e^{jz} } \right)^\nu = e^{j\nu z} = cos\nu z + jsin\nu z<br /> \]}<br />

.
 
  • #296
Testing...

Testing...

<br /> \newcommand{\uE}{\mathrm{e}}<br /> \newcommand{\uI}{\mathrm{i}}<br /> \uE^{\uI\pi}+1 = 0<br />


<br /> \newcommand{\uE}{\mathrm{e}}<br /> \newcommand{\uI}{\mathrm{i}}<br /> \uE^{\uI{}x} = \cos{}x+\uI\sin{}x<br />



:smile:
 
Last edited:
  • #297
Testing 2

Testing . . .

QED Lagrangian Density

<br /> \newcommand{\uI}{\mathrm{i}}<br /> \newcommand{\commute}[2]{\left[{#1}\!<br /> \mathrel{\vphantom{{#1}},\vphantom{{#2}}<br /> \kern-\nulldelimiterspace}\!{#2}\right]}<br /> \newcommand{\anticommute}[2]{\left\{{#1}\!<br /> \mathrel{\vphantom{{#1}},\vphantom{{#2}}<br /> \kern-\nulldelimiterspace}\!{#2}\right\}}<br /> <br /> \begin{align*}<br /> \mathcal{L}_{\text{QED}}(x) =&amp; -\frac{1}{4}F_{\mu\nu}(x)F^{\mu\nu}(x)-\frac{1}{4}\left(\commute{\overline{\psi}(x)\gamma^{\mu}}{\frac{\partial_\mu}{\uI}\psi(x)}-\commute{\frac{\partial_\mu}{\uI}\overline{\psi}(x)\gamma^{\mu}}{\psi(x)}\right) \\<br /> &amp;\quad{} -\frac{1}{2}m_{0}\commute{\overline{\psi}(x)}{\psi(x)}+\frac{1}{4}e_{0}\anticommute{\commute{\overline{\psi}(x)\gamma_{\mu}}{\psi(x)}}{A^{\mu}(x)}<br /> \end{align*}<br />

:zzz:
 
  • #298
test...
\sqrt{4}=2
 
  • #299
LaTeX

Created in \LaTeX
 
  • #300
Can you tell me how I can create a dvi file with images/pictures included ?
Thanks
 

Similar threads

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