LaTeX Is Mandatory LaTeX Implementation on PF Beneficial for Members?

  • Thread starter Thread starter Greg Bernhardt
  • Start date Start date
AI Thread Summary
The implementation of LaTeX on Physics Forums (PF) is nearing completion and is set for extensive testing, with a new bbcode format introduced for users. Mentors are encouraged to familiarize themselves with basic LaTeX to assist members as they navigate this new feature. Users can input LaTeX code between [tex] and [/tex] tags, with a popup feature allowing them to learn from previous equations. However, there are some initial issues, such as images not appearing in previews and problems with LaTeX compilation that need addressing. Overall, this enhancement is expected to significantly benefit the community by improving the presentation of mathematical expressions.
  • #101
And now on the other background..

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

Ambitwistor, what do you think?

- Warren
 
Physics news on Phys.org
  • #102
Scaled even more aggressively...

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

- Warren
 
  • #103
Experimenting with antialiasing..

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

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

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

- Warren
 
  • #105
Experimentation is fun...

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

- Warren
 
  • #106
Whoops :)

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

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

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

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

- Warren
 
  • #109
<br /> L = \int_a^b \left( g_{\it ij} \dot u^i \dot u^j \right)^{1/2} dt<br />
 
Last edited:
  • #110
\displaystyle{\overline{\overline{A}B+A \overline{B}}\ =\ \overline{A\oplus B}}
 
  • #111
<br /> \alpha \beta \cdots \psi \omega<br />
 
  • #112
<br /> \alpha \beta \gamma \cdots \chi \psi \omega<br />
 
  • #113
Okay folks...

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

:smile:

- Warren
 
  • #114
<br /> \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)<br />
 
  • #115
Originally posted by Ambitwistor
How about the 'feynman' or 'feynmf' packages?

Diagrams are nice ...

<br /> \begin{picture}(80,80)(0,0)<br /> \put(0,0){\vector(4,3){30}}<br /> \put(28,21){\vector(0,1){30}}<br /> \end{picture}<br />

<br /> \begin{picture}(160,160)(0,0)<br /> \qbezier(40,80)(80,120)(100,80)<br /> \end{picture}<br />

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

- Warren
 
  • #116
How's it looking, Ambi?

- Warren
 
  • #117
\begin{array}{l | cr |} \ &amp;\overline{A}&amp;A\\\hline \overline{B}&amp;0&amp;1\\B&amp;1&amp;0\\\hline\end{array}

A Karnaugh map
 
  • #118
\begin{array}{l | c|c|c|c |} \ &amp;\overline{A}\,\overline{B}&amp;A\,\overline{B}&amp;\overline{A}\, B&amp;A\, B\\\hline \overline{C}&amp;0&amp;1&amp;0&amp;0\\\hline C&amp;1&amp;0&amp;1&amp;1\\\hline\end{array}
 
Last edited:
  • #119
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
 
  • #120
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
 
  • #121
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
 
  • #122
Greg, Warren,

I think that the intro thread which Warren posted should be made into a general announcement to all forums.
 
  • #123
Originally posted by enigma
Greg, Warren,

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

Most likely -- I can't do that though.

(except I currently have access to the entire site's code... supermegalomentor, here I come! )

- Warren
 
  • #124


Originally posted by Ambitwistor
Sometimes the equation images take a while to load. Perhaps the TeX source could be squished into an ALT tag for the browser to display while it's loading the images (for those browsers that do that)?
The browser does not display alt tags for images that are loading, it displays them for images that are unloadable -- in other words, images that don't exist on the server.

Are you saying it takes a long time to view a page that has TeX equations on it, because the image files take time to download? Or do you mean it takes time for a newreply (or editpost) operation to complete for a post with images in it?

- Warren
 
  • #125
Wolfenstein parameterization:

<br /> V = \left( \begin{array}{ccc}<br /> 1-\frac{1}{2}\lambda^2 &amp; \lambda &amp; A\lambda^3(\rho-i\eta) \\<br /> -\lambda &amp; 1-\frac{1}{2}\lambda^2 &amp; A\lambda^2 \\<br /> A\lambda^3(1-\rho-i\eta) &amp; -A\lambda^2 &amp; 1<br /> \end{array} \right) + {\cal O}(\lambda^4)<br />
 
  • #126
ahrkron,

Post your examples in the general physics thread. :) Looks very pretty! I thought Wolfenstein was a video game.

- Warren
 
  • #127


Originally posted by Ambitwistor
Some browsers do display ALT tags for images that are loading, and then replace them with the actual images after they have loaded.
Okay -- well, the images already have an alt tag -- so if your browser is not displaying it, I don't know what to tell you.
Yes.
That's surprising. I chose the converters and formatting specifically to limit file sizes. In fact, the largest equation png file generated so far is just a hair over two kilobytes -- files of this size shouldn't be a problem on even an ancient phone modem. (Each image would take about half a second to download.)

As far as I can tell, the images haven't slowed my page loads noticeably at all.

What browser, OS, and internet access medium are you using?

- Warren
 
  • #128


Originally posted by Ambitwistor
Oh. Heh. My browser at home does that, but I never actually checked to see if this one does (I just started using it).
:wink:
Well, my page loads are always slow, even over broadband ... I don't think it's due to image size, but due to the fact that each HTTP request stalls briefly while connecting. I don't think there's anything you can do about that.
Are you using a proxy server? Do you just happen to have some very slow link in your traceroute to physicsforums.com?

- Warren
 
  • #129
Originally posted by chroot
Post your examples in the general physics thread. :) Looks very pretty! I thought Wolfenstein was a video game.

I knew the game too. I should have brought it up with him sometime.:smile:

Ok, General Physics, here it goes!
 
  • #130


Originally posted by Ambitwistor
No, I'm not using a proxy. My traceroute isn't bad, and I get 85 ms pings. It's probably the browser (Konqueror). I was using Mozilla, but I mangled some of my libraries beyond the current limits of my patience to fix them, so it doesn't work right for now.
Yeah, it's entirely possible your browser is opening new connections for each and every HTTP request -- and only opening one connection at a time. Ack!

- Warren
 
  • #131
Tests...

<br /> \newcommand{\colv}[2] {\left(\begin{array}{c} #1 \\ #2 \end{array}\right)}<br /> L_L &amp;=&amp; \left(<br /> {\colv{\nu_e}{e}}_L,<br /> {\colv{\nu_\mu}{\mu}}_L,<br /> {\colv{\nu_\tau}{\tau}}_L\,<br /> \right), \qquad Y_L = -\frac{1}{2}<br />

<br /> \newcommand{\colv}[2] {\left(\begin{array}{c} #1 \\ #2 \end{array}\right)}<br /> Q_L &amp;=&amp; \left(<br /> {\colv{u}{d}}_L,<br /> {\colv{c}{s}}_L,<br /> {\colv{t}{b}}_L\,<br /> \right), \qquad\quad\ Y_Q = \frac{1}{6}<br />
 
Last edited:
  • #132
OK, my attempt to make a chemical equation::

^{33}_{17}Cl^16~\xrightarrow{n,n)~^{31}_{15}P^{16}~+~^4_2He^2
 
  • #133
ahhh! why!?

breaking it down::


^{33}_{17}Cl^{16}

\xrightarrow{n,n}

^{31}_{15}P^{16}

^4_2He^2

^{33}_{17}Cl^{16} ~ \xrightarrow{n,n) ~ ^{31}_{15}P^{16} ~ + ~ ^4_2He^2
 
Last edited:
  • #134
ok, I am probably putting the spaces or the + in in the wrong way?
 
  • #135
^{33}_{17}Cl^{16}\xrightarrow{n,n)^{31}_{15}P^{16}+^4_2He^2


..wtf! :P ?

I don't see what's wrong with this.. it worked individually?

^{33}_{17}Cl^{16}~\xrightarrow{n,n}~^{31}_{15}P^{16}~+~^4_2He^2

ah, a wrong bracket..
 
Last edited:
  • #136
COOLLLL!
 
  • #137
what happened there?
 
  • #138
I also made a sticky in Chemistry, since it is very usefull to be used there too, maybe I should lock it an provide a link to the General Physics thread??
 
  • #139
Post the code with [ tex] and [ /tex], with spaces instead, so I can see it.

- Warren
 
  • #140
I can't even get your code to work properly in tex on my local machine...

I'm trying

\newcommand{\atom}[4]{{x}^{#1}_{#2} {#3}^{#4}}

\atom{33}{17}{Cl}{16}
\xrightarrow{n,n}
\atom{31}{15}{P}{16} + \atom{4}{2}{He}{2}

I'll have to look into what's making it fail.

- Warren
 
  • #141
I never consider people putting "smilie" code inside [ tex ] brackets -- I may need to change the precedence of the parsing code to prevent this. I'll let you know -- right now I don't have access to the site's code.

- Warren
 
  • #142
\frac{[A^-]}{[HA]}
 
  • #143
Originally posted by Ambitwistor
Another attempt:

<br /> \newcommand{\atom}[4]{{}^{#1}_{#2}#3^{#4}}<br /> <br /> \atom{33}{17}{Cl}{16} \xrightarrow{n,n} \atom{31}{15}{P}{16} + \atom{4}{2}{He}{2}<br />
 
  • #144
Originally posted by Ambitwistor
Another attempt:

<br /> \newcommand{\atom}[ 4 ]{{}^{#1}_{#2}#3^{#4}}<br /> <br /> \atom{33}{17}{Cl}{16} \xrightarrow{n,n} \atom{31}{15}{P}{16} + \atom{4}{2}{He}{2}<br />
 
  • #145
Okay Ambi

It's the [ 4 ] that's causing problems, since it's being parsed by the smilie parser before being sent to latex. Here are two solutions:

1) Write [ 4 ] with spaces inside the tag, so the smilie parser won't touch it. LaTeX doesn't care about spaces.

2) Disable smilies in the post to stop the smilie parser from messing with it.

I'll update the code to put the smilie parser AFTER the latex parser when I get a chance.

- Warren
 
  • #146
Could the font be made slightly smaller? A longer formula will be cut off it seems.

How about automatic spaces? Do I always have to put in spacers, or will it be automatically done with some characters?

{one}+{one}={one}~+~{one}

ah, apparently it already does that :P
 
  • #147
<br /> \begin{array}{rcccl}<br /> \ &amp;\ &amp;\mathrm{H}&amp; \ &amp; \ <br /> \\<br /> \ &amp;\ &amp;\mid&amp;\ &amp;\ <br /> \\<br /> \mathrm{H}&amp; - &amp;\mathrm{C}&amp; - &amp;\mathrm{OH}<br /> \\<br /> \ &amp;\ &amp;\mid&amp;\ &amp;\ <br /> \\<br /> \mathrm{H}&amp; - &amp;\mathrm{C}&amp; - &amp;\mathrm{OH}<br /> \\<br /> \ &amp;\ &amp;\mid&amp;\ &amp;\ <br /> \\<br /> \mathrm{H}&amp; - &amp;\mathrm{C}&amp; - &amp;\mathrm{OH}<br /> \\<br /> \ &amp;\ &amp;\mid&amp;\ &amp;\ <br /> \\<br /> \ &amp;\ &amp;\mathrm{H}&amp; \ &amp; \ <br /> <br /> \end{array}<br />

Glycerin

<br /> \begin{array}{ccccccccc}<br /> \ &amp;\ &amp;\mathrm{H}&amp;\ &amp;\mathrm{H}&amp;\ &amp;\mathrm{H}&amp; \ &amp; \ <br /> \\<br /> \ &amp;\ &amp;\mid&amp;\ &amp;\mid&amp;\ &amp;\mid&amp;\ &amp;\ <br /> \\<br /> \mathrm{H}&amp; - &amp;\mathrm{C}&amp; -&amp;\mathrm{C}&amp; -&amp;\mathrm{C}&amp; - &amp;\mathrm{H}<br /> \\<br /> \ &amp;\ &amp;\mid&amp;\ &amp;\mid&amp;\ &amp;\mid&amp;\ &amp;\ <br /> \\<br /> \ &amp;\ &amp;\mathrm{H}&amp;\ &amp;\mid&amp;\ &amp;\mathrm{H}&amp; \ &amp; \ <br /> \\<br /> \ &amp;\ &amp;\mathrm{H}&amp;-&amp;\mathrm{C}&amp;-&amp;\mathrm{H}&amp;\ &amp;\ <br /> \\<br /> \ &amp;\ &amp;\ &amp;\ &amp;\mid&amp;\ &amp;\ &amp;\ &amp;\ <br /> \\<br /> \ &amp;\ &amp;\ &amp;\ &amp;\mathrm{H}\ &amp;\ &amp;\ &amp;\ <br /> <br /> \end{array}<br />

Isobutane
 
  • #148
I was thinking about doing that.. a little too complicated for me though..
 
  • #149
<br /> \begin{array}{ccccccc}<br /> <br /> \ &amp;\ &amp;\ &amp;\mathrm{H}&amp;\ &amp;\ &amp;\ \\<br /> <br /> \ &amp;\ &amp;\ &amp;\mid&amp;\ &amp;\ &amp;\ \\<br /> <br /> \ &amp;\ &amp;\ &amp;\mathrm{C}&amp;\ &amp;\ &amp;\ \\<br /> <br /> \ &amp;\ &amp;\ &amp;/\!\!/\backslash &amp;\ &amp;\ &amp;\ \\<br /> <br /> \ &amp;\mathrm{H}&amp;-&amp;\mathrm{C}\ \mathrm{C}&amp;-&amp;\mathrm{H}\\<br /> <br /> \ &amp;\ &amp;\ &amp;\mid\ \|&amp;\ &amp;\ \\<br /> <br /> \ &amp;\mathrm{H}&amp;-&amp;\mathrm{C}\ \mathrm{C}&amp;-&amp;\mathrm{H}\\<br /> <br /> \ &amp;\ &amp;\ &amp;\backslash\!\!\backslash / &amp;\ &amp;\ &amp;\ \\<br /> <br /> \ &amp;\ &amp;\ &amp;\mathrm{C}&amp;\ &amp;\ &amp;\ \\<br /> <br /> \ &amp;\ &amp;\ &amp;\mid&amp;\ &amp;\ &amp;\ \\<br /> <br /> \ &amp;\ &amp;\ &amp;\mathrm{H}&amp;\ &amp;\ &amp;\ \\<br /> \end{array}<br /> <br />

Benzene
\mathrm{C}_{\mathrm{6}}\mathrm{H}_{\mathrm{6}}

This could look better if I had actual diagonal lines to work with rather than slashs; something like\nwarrow and \swarrow without the arrow tips.
 
  • #150
More tests...

<br /> \begin{array}{cc}<br /> \begin{picture}(10,10)(0,0)<br /> \put(0,0){\line(1,1){10}}<br /> \put(2,0){\line(1,1){10}}<br /> \end{picture} &amp;<br /> \begin{picture}(10,10)(0,0)<br /> \put(0,10){\line(1,-1){10}}<br /> \end{picture} \\<br /> \begin{picture}(10,10)(0,0)<br /> \put(0,10){\line(1,-1){10}}<br /> \end{picture} &amp;<br /> \begin{picture}(10,10)(0,0)<br /> \put(0,0){\line(1,1){10}}<br /> \put(2,0){\line(1,1){10}}<br /> \end{picture}<br /> \end{array}<br />
 

Similar threads

Replies
5
Views
3K
Replies
3
Views
2K
Replies
1
Views
3K
Replies
4
Views
4K
Replies
60
Views
188K
Replies
2
Views
3K
Replies
4
Views
3K
Replies
766
Views
737K
Replies
1
Views
3K
Replies
3
Views
3K
Back
Top