Introducing LaTeX Math Typesetting

Click For Summary

Discussion Overview

The discussion centers around the introduction of LaTeX mathematical typesetting on Physics Forums, focusing on its implementation, usage, and examples. Participants explore how to effectively use LaTeX for mathematical expressions and share examples of LaTeX code.

Discussion Character

  • Exploratory
  • Technical explanation
  • Homework-related

Main Points Raised

  • Warren introduces LaTeX typesetting, explaining its markup style and how to include LaTeX graphics in posts.
  • Some participants share additional examples of LaTeX code, demonstrating various mathematical expressions.
  • Warren invites suggestions for LaTeX packages to include, expressing concern about performance impacts from too many packages.
  • One participant inquires about using the LaTeX generator for personal web pages, prompting a discussion about server load and intended use.
  • Another participant expresses enthusiasm for practicing LaTeX by writing equations related to particle interactions.
  • A question arises about formatting subscripts in LaTeX, specifically how to create multi-line subscripts.
  • Participants provide tips on learning LaTeX, including quoting existing code to see how it is written and encouraging practice.
  • Warren reminds participants that clicking on LaTeX images reveals the source code, which can aid in learning.

Areas of Agreement / Disagreement

Participants generally agree on the usefulness of LaTeX for typesetting mathematics, but there are differing views on its application for personal use outside the forum, with some cautioning against it due to resource concerns.

Contextual Notes

Some participants express uncertainty about specific LaTeX formatting techniques and the potential performance implications of adding more packages to the forum's LaTeX capabilities.

  • #361
T_{r}=10.8-8.1
T_{r}=2.7
T_{r}
T_{v}
T_{r}=T_{v}
T_{r}^{2}\propto{I}
 
Physics news on Phys.org
  • #362
\langle p_1 | p_2 \rangle = \langle 0 | a(p_1) a^{\dagger} (p_2) | 0 \rangle = \delta (p_1 - p_2)
\langle x^1 | x^2 \rangle = \langle 0 | \varphi (x^1) \varphi ^{\dagger} (x^2) | 0 \rangle = \delta (x^1 - x^2)
T^{\mu \nu} = g^{\nu \sigma} {T^{\mu}}_{\sigma}
 
Last edited:
  • #363
Testing LaTex

This is just a test to see if it works.


A=[A\angle\theta_{A}]
 
  • #364
\sum_{n=1}^\infty \frac{1}{n}-\frac{1}{n+1}
 
Last edited:
  • #365
2 Li_(_s_) + 2 H_2O_(_l_) \xrightarrow~2 LiOH_(_a_q_) + H_2_(_g_)
2 K_(_s_) + 2 H_2O_(_l_) \xrightarrow~2 KOH_(_a_q_) + H_2_(_g_)
Ca_(_s_) + 2 H_2O_(_l_) \xrightarrow~Ca(OH)_2_(_s_) + H_2_(_g_)
Na_(_s_) + 2 H_2O_(_l_) \xrightarrow~2 NaOH_(_a_q_) + H_2_(_g_)
Mg_(_s_) + 2 H_2O_(_g_) \xrightarrow~Mg(OH)_2_(_s_) + H_2_(_g_)
2 Al_(_s_) + 6 H_2O_(_g_) \xrightarrow~2 Al(OH)_3_(_s_) + 3 H_2_(_g_)
Fe_(_s_) + CuSO_4_(_a_q_) \xrightarrow~FeSO_4_(_a_q_) + Cu_(_s_)\xleftarrow~
 
Last edited:
  • #366
\Gamma(z)=\int^{\infty}_0t^{z-1}e^{-t}dt
 
  • #367
test

Let me try

\xymatrix @=15mm {T \hspace{2mm} \ar@{&gt;-&gt;}[r]_{f}<br /> \ar[d]^{!} &amp; S \ar[d]_{\chi} \\ \{ \ast \} \ar[r]^{t} &amp; \{ 0,1 \}<br /> }

Oops. Can we have the xy package at some future date?

Cheers
Kea
 
Last edited:
  • #368
Test:

(AB)C=([a_{ij}]\times[b_{ij}])\times[c_{ij}]=[\sum_{k=1}^{n}a_{ik}b_{kj}]\times[c_{ij}]=[\sum_{l=1}^{p}(\sum_{k=1}^{n}a_{ik}b_{kl})c_{lj}]=[\sum_{l=1}^{p}(\sum_{k=1}^{n}a_{ik}b_{kl}c_{lj})]
=[\sum_{k=1}^{n}(\sum_{l=1}^{p}a_{ik}b_{kl}c_{lj})]=[\sum_{k=1}^{n}a_{ik}(\sum_{l=1}^{p}b_{kl}c_{lj})]=[a_{ik}]\times[\sum_{l=1}^{p}b_{kl}c_{lj}]=[a_{ik}]\times([b_{ik}]\times[c_{ik}])=A(BC)
 
  • #369
a test
\not G

how do you put a slash thru a letter? anybody?
I just want a distinguished G, slash isn't so good, so I will try some others

\widehat{G}

\tilde{G}

\overline{G}

\mathbb{G}
 
Last edited:
  • #370
I see Ambitwistor has made some slashes but it seems very involved so maybe let's forget about it and try something else
Ambitwistor said:
<br /> \def\pds{\kern+0.1em /\kern-0.55em \partial}<br /> \def\lts#1{\kern+0.1em /\kern-0.65em #1}<br /> {\cal L}_R = \sum_{i=1}^G<br /> \bar{E}^i_R(i\pds<br /> - g_1Y_E \lts{B})E^i_R +<br /> \bar{D}^i_R(i\lts{D}<br /> - g_1Y_D \lts{B})D^i_R +<br /> \bar{U}^i_R(i\lts{D}<br /> - g_1Y_U \lts{B})U^i_R)<br />

There's actually a whole 'slashed' package for this...

I want a distinguished G symbol. I'll try some more alternatives

\mathcal{G}

\mathbb{G}

\mathbf{G}

\mathsf{G}
 
  • #371
How come I when I try to edit my code, the changes don't show up in the post? In this post I wanted to change that \frac{dx}{d\tau} in the second line of the Brian Greene quote into dx/d\tau, so I changed the code in the edit window, but it still shows up like the first version on my screen.

edit: I checked back a few hours later, and now the edited version appears onscreen. But then I made another edit, and again the graphics were not updated, even if I hit "refresh" or quit my browser and returned to the page. Is there a delay in how quickly LaTeX graphics are updated or something?

edit 2: never mind, I figured out that if I clear my browser's disk cache before hitting "refresh", the graphic gets updated correctly, so that must have been the problem.
 
Last edited:
  • #372
a^n
:cry:

I would like to write equations too...am I missing something?
 
Last edited:
  • #373
clive:

Be careful. You need a a forward slash, not a backslash, in your closing [ tex ] tags.

Type this, but omit the spaces:

[ tex ] a^n [ /tex ]

- Warren
 
  • #374
I've wondered about slashes too...especially for symbols representing "not equal" (which can be got around), "not congruent" (need a slash through \equiv), "not divisible by" (or "does not divide" which is a slash across a vertical line).

Do these symbols exist (haven't seen them in any library, but I haven't looked carefully) or does it take some trick to generate them ?
 
  • #375
<br /> \def\lts#1{\kern+0.1em /\kern-0.65em #1}<br /> \lts{\equiv}~~~ \lts{=}~~~\lts{~|}~~~\lts{\vert}

Hmmm...That didn't work too well. Can I change the position of the slash ?
 
  • #376
Thanks chroot,

\bigtriangledown ^2 \phi=\sqrt{t^2+1}

What a wonderful world... :approve:
 
  • #377
This is very cool :smile: How can I put this new addition on my vBulletin forums as well?

Thanks in advance! :smile:
 
  • #378
Ten forward gears and a Georgia Overdrive

Let's see...

\pi * e \oint D^4 f \bigwedge F(\overline {\tau}) \approx \underbar {X}, whence

G_i \oplus G_j = \emptyset \bigcap \ker(\alpha) \longleftrightarrow \sigma ^i^j \in SU(4).
 
Last edited:
  • #379
Latex for Statistical Mechanics

I am trying to do a formula sheet for statistical mechanics. Our professor uses a dashed-d to represent a perfect differential, which I have had trouble making. I did overwrite a d with a ^{\smallsetminus}, but the construct I was using (copied from a website) caused problems. Anyone have a non-problematic overtype?

Also, his notation is to use a line at the end of a derivative with subscripts representing the variables held constant. I can't get |, \vert, \right|, or \mid to work correctly. Has anyone solved this?

Thanks so much for your help in advance.
 
Last edited:
  • #380
\int_{1}^{\sqrt[3]{3}}z^2dz \times \cos{\frac{3\pi}{9}}=\ln{\sqrt[3]{e}}

Integral z squared dz
from 1 to the cube root of 3
times the cosine of 3 pi over 9
equals the log of the cubes root of e


Whoever thought that up was a really clever math poet ;)
 
  • #381
quick q.

instead of having something like this

\int_{\|\vec{X}-\vec{Y}\|=\epsilon}

can i make the \|\vec{X}-\vec{Y}\|=\epsilon} right beneath the \int sign?

the same here, instead of

\nabla_X

i want the X beneath the nabla sign

thx :)
 
  • #382
Gary King said:
This is very cool :smile: How can I put this new addition on my vBulletin forums as well?

Thanks in advance! :smile:
Gary, this addition is not a standard addon for vBulletin. The administrators have added the LaTeX system themselves. More information on LaTeX, http://www.latex-project.org.
 
  • #383
\int \frac{3}{4+3x^2}dx=\frac{1}{2}\sqrt{3}\arctan(\frac{x\sqrt{3}}{2})+C
 
  • #384
Question:

Is it possible to make Venn Diagrams with LaTeX?
 
  • #385
Tom Mattson said:
Question:

Is it possible to make Venn Diagrams with LaTeX?
Yep, you can use the picture environment, like thus:

<br /> \begin{picture}(400,400)<br /> <br /> \put(80,80){\circle{40}}<br /> \put(100,80){\circle{40}}<br /> \put(90,100){\circle{40}}<br /> \put(65,70){A}<br /> \put(105,70){B}<br /> \put(85,105){C}<br /> \end{picture}<br />

Though the "oval" might be more versatile:

<br /> <br /> \begin{picture}(500,500)<br /> <br /> \put(290,260){\oval(100,100)}<br /> \put(330,280){\oval(100,100)}<br /> \put(280,310){\oval(100,100)}<br /> \put(260,240){A}<br /> \put(350,240){B}<br /> \put(260,330){C}<br /> \end{picture}<br />
 
Last edited:
  • #386
\int \atop \|\vec{X}-\vec{Y}\|=\epsilon

\nabla \atop X

there has to be a better way
 
  • #387
ReyChiquito said:
\int \atop \|\vec{X}-\vec{Y}\|=\epsilon

\nabla \atop X

there has to be a better way
You have the "stackrel" option
\stackrel{\nabla}{X}
 
  • #388
thx mate... I am still not convinced though... ill get it right someday :)
 
  • #389
anyone know how to do a contraction symbol from QFT (as in Wicks Theorem)? It is basically a square brace on top of the charecters connecting 2 charecters that are not necesarily next to each other?
 
  • #390
\iint\limits_\Omega

\int\limits_{\|\vec{X}-\vec{Y}\|=\epsilon}

\mathop{\nabla}\limits_X

all right! :approve:
 
Last edited:

Similar threads

  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 2 ·
Replies
2
Views
6K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 1 ·
Replies
1
Views
4K
  • · Replies 8 ·
Replies
8
Views
3K
  • · Replies 5 ·
Replies
5
Views
1K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K