Learn Mandatory LaTeX with PF: A Step-by-Step Guide

  • LaTeX
  • Thread starter Greg Bernhardt
  • Start date
In summary: WarrenIs it working now?- Warren\psilooks like it works; good job!- WarrenIn summary, PF is implementing LaTeX on PF with the use of a new bbcode [ tex][ /tex] or [ latex][ /latex], allowing members to use LaTeX code within the tags to display equations. Additional features include a popup window for displaying code, and the ability to use macros. However, there may be some issues with image generation and server speed.
  • #106
This is valid latex:

[tex]

\eta_{\mu\nu}


[/tex]

This is not:

[tex]\yourmom[/tex]

- Warren
 
Last edited:
Physics news on Phys.org
  • #107
Originally posted by chroot
This is valid latex:

[tex]

\eta_{\mu\nu}


[/tex]

This is not:

[tex]\yourmom[/tex]

- Warren
 
Last edited:
  • #108
How about non-antialiased?

[tex]
A\xleftarrow{n+\mu-1}B \xrightarrow[T]{n\pm i-1}C
[/tex]
 
  • #109
And now on the darker gray background...

[tex]
A\xleftarrow{n+\mu-1}B \xrightarrow[T]{n\pm i-1}C
[/tex]
 
  • #110
Higher resolution... maybe scaling will make it appear nice.

[tex]
A\xleftarrow{n+\mu-1}B \xrightarrow[T]{n\pm i-1}C
[/tex] [/B][/QUOTE]

- Warren
 
  • #111
Let's try scaling..

[tex]
A\xleftarrow{n+\mu-1}B \xrightarrow[T]{n\pm i-1}C
[/tex]
 
  • #112
And now on the other background..

[tex]
A\xleftarrow{n+\mu-1}B \xrightarrow[T]{n\pm i-1}C
[/tex]

Ambitwistor, what do you think?

- Warren
 
  • #113
Scaled even more aggressively...

[tex]
A\xleftarrow{n+\mu-1}B \xrightarrow[T]{n\pm i-1}C
[/tex]

- Warren
 
  • #114
Experimenting with antialiasing..

[tex]
A\xleftarrow{n+\mu-1}B \xrightarrow[T]{n\pm i-1}C
[/tex]

- Warren
 
  • #115
Experimenting with antialiasing.. some more.

[tex]
A\xleftarrow{n+\mu-1}B \xrightarrow[T]{n\pm i-1}C
[/tex]

- Warren
 
  • #116
Experimentation is fun...

[tex]
A\xleftarrow{n+\mu-1}B \xrightarrow[T]{n\pm i-1}C
[/tex]

- Warren
 
  • #117
Whoops :)

[tex]
A\xleftarrow{n+\mu-1}B \xrightarrow[T]{n\pm i-1}C
[/tex]

- Warren
 
  • #118
Once more, white background..

[tex]
A\xleftarrow{n+\mu-1}B \xrightarrow[T]{n\pm i-1}C
[/tex]

- Warren
 
  • #119
We have a weiner! I'm just antialiasing to a color halfway between the two background colors.

- Warren
 
  • #120
[tex]
L = \int_a^b \left( g_{\it ij} \dot u^i \dot u^j \right)^{1/2} dt
[/tex]
 
Last edited:
  • #121
[tex]\displaystyle{\overline{\overline{A}B+A \overline{B}}\ =\ \overline{A\oplus B}}[/tex]
 
  • #122
[tex]
\alpha \beta \cdots \psi \omega
[/tex]
 
  • #123
[tex]
\alpha \beta \gamma \cdots \chi \psi \omega
[/tex]
 
  • #124
Okay folks...

All the caveats are fixed, I think. Topic review and reply preview now work properly.

:smile:

- Warren
 
  • #125
[tex]
\Gamma^l_{\it k i} = \frac{1}{2} g^{\it l j} (\partial_k g_{\it i j} + \partial_i g_{\it j k} - \partial_j g_{\it k i)
[/tex]
 
  • #126
How about the 'feynman' or 'feynmf' packages?

Diagrams are nice ...

[tex]
\begin{picture}(80,80)(0,0)
\put(0,0){\vector(4,3){30}}
\put(28,21){\vector(0,1){30}}
\end{picture}
[/tex]

[tex]
\begin{picture}(160,160)(0,0)
\qbezier(40,80)(80,120)(100,80)
\end{picture}
[/tex]
 
  • #127
Originally posted by Ambitwistor
How about the 'feynman' or 'feynmf' packages?

Diagrams are nice ...

[tex]
\begin{picture}(80,80)(0,0)
\put(0,0){\vector(4,3){30}}
\put(28,21){\vector(0,1){30}}
\end{picture}
[/tex]

[tex]
\begin{picture}(160,160)(0,0)
\qbezier(40,80)(80,120)(100,80)
\end{picture}
[/tex]

Great idea -- drawing vector diagrams to illustrate force addition and so on would be very useful! I'll look into these packages. :smile:

- Warren
 
  • #128
The epic package is an enhancement of the default LaTeX picture environment, but most diagram packages I know of are kind of clunky. Worth some research ...
 
  • #129
amsmath multiple integrals

[tex]\iint_\mathcal{A} \cdots dA[/tex]
[tex]\iiint_\mathcal{V} \cdots dV[/tex]
[tex]S_{EH} = \iiiint_\mathcal{M} R \sqrt{-g}\,d^4 x[/tex]
[tex]\idotsint_\textrm{paths} \exp{(iS(x,\dot{x})/\hbar)}\, \mathcal{D}x[/tex]
 
Last edited:
  • #130
How's it looking, Ambi?

- Warren
 
  • #131
[tex]\begin{array}{l | cr |} \ &\overline{A}&A\\\hline \overline{B}&0&1\\B&1&0\\\hline\end{array}[/tex]

A Karnaugh map
 
  • #132
QM

[tex]
\newcommand{\mean}[1]{{<\!\!{#1}\!\!>}}
\newcommand{\braket}[2]{{<\!\!{#1|#2}\!\!>}}
\newcommand{\braketop}[3]{{<\!\!{#1|\hat{#2}|#3}\!\!>}}

\braket{\phi}{\psi} \equiv \int \phi^*(x) \psi(x)\,dx
[/tex]

[tex]
\newcommand{\mean}[1]{{<\!\!{#1}\!\!>}}
\newcommand{\braket}[2]{{<\!\!{#1|#2}\!\!>}}
\newcommand{\braketop}[3]{{<\!\!{#1|\hat{#2}|#3}\!\!>}}

\mean{E} = \braketop{\psi}{H}{\psi}
[/tex]
 
Last edited:
  • #133
[tex]\begin{array}{l | c|c|c|c |} \ &\overline{A}\,\overline{B}&A\,\overline{B}&\overline{A}\, B&A\, B\\\hline \overline{C}&0&1&0&0\\\hline C&1&0&1&1\\\hline\end{array}[/tex]
 
Last edited:
  • #134
Excellent stuff guys -- I'm going to include some of these in the "learn by example" thread in General Physics.

BTW, I have already introduced the software to the public -- I'm pretty sure all the kinks have been worked out. Please let me know if *anything* malfunctions!

- Warren
 
  • #135
If I edit an equation in a post and it returns me to the thread, it still displays the old equation unless I reload ... shouldn't it at least say "generating, please wait" or something?
 
  • #136
Ambi,

That's unfortunately because your browser is too stupid to check if the image has changed. I'm going to see if I can somehow force the images to not be cached, but I'm not sure it's possible. It's not the forum software causing the problem, it's your browser.

BTW, I'm using Mozilla Firebird, and it seems smart enough to always check the images.

- Warren
 
  • #137
Originally posted by chroot
Excellent stuff guys -- I'm going to include some of these in the "learn by example" thread in General Physics.

My old example of a triple integral,

[tex]
\int\!\!\!\int\!\!\!\int f(x,y,z)\,dx\,dy\,dz
[/tex]

is better implemented using amsmath macros:

[tex]
\iiint f(x,y,z)\,dx\,dy\,dz
[/tex]
 
  • #138
summation, limits

[tex]
e^x = \sum_{n=0}^\infty \frac{x^n}{n!} = \lim_{n\rightarrow\infty} (1+x/n)^n
[/tex]
 
  • #139
BTW, if you guys would like to post some examples in the General Physics intro thread, go right ahead! If it's something really complex, a little discussion about how it works might even be in order. :smile:

- Warren
 
  • #140
Greg, Warren,

I think that the intro thread which Warren posted should be made into a general announcement to all forums.
 

Similar threads

  • MATLAB, Maple, Mathematica, LaTeX
Replies
3
Views
275
  • MATLAB, Maple, Mathematica, LaTeX
Replies
18
Views
2K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
1
Views
3K
  • STEM Academic Advising
Replies
10
Views
1K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
4
Views
3K
  • Feedback and Announcements
Replies
1
Views
411
  • Sticky
  • MATLAB, Maple, Mathematica, LaTeX
2
Replies
64
Views
183K
Replies
7
Views
226
  • Feedback and Announcements
Replies
24
Views
4K
Back
Top