Introducing LaTeX Math Typesetting

In summary, Physicsforums.com has introduced the addition of LaTeX mathematical typesetting to their forum software. This professional-grade typesetting system allows for pleasing mathematical presentation and can be included in any post on the forum. Users can include LaTeX graphics by using the [ tex ]...[ /tex ] or [ itex ]...[ /itex ] tags, with the latter being used for inline graphics. The forum provides a pdf file and symbol reference for the most useful LaTeX commands, symbols, and constructs. The amsmath package is also available for more information. Examples of various techniques are provided, including subscripts, superscripts, and equations. Users can also use the [ tex usepackage= ] tag to include additional packages.
  • #631
Are you setting a transparency flag?
Or are you trying to explicitly match the current skin background (for Prime, apparently, RGB: 233,233,233), which is different from the quote background (for Prime, apparently, RGB 216,233,228)?
 
Last edited:
Physics news on Phys.org
  • #632
I'm calling pnmtopng with -transparency =rgb:ff/ff/ff, which should turn all the white pixels transparent (and the latex itself forces an #black background). It works if I don't use antialiasing when calling ghostscript, but, for some reason, turning antialiasing on screws pnmtopng up. It didn't do this in previous versions, so it's likely a bug in the newest versions. (We're on a brand new server now). I'm working on finding a workaround.

- Warren
 
  • #633
AKG said:
[tex]0 < k \leq m < n,\ \ \gcd\left({{n}\choose{k}},{{n}\choose{m}}\right) > 1[/tex]

[tex]{{n}\choose{k}}{{n-k}\choose{m-k}} = {{n}\choose{m}}{{m}\choose{k}}[/tex]

[tex]{{n}\choose{k}} \left| {{n}\choose{m}}{{m}\choose{k}}[/tex]

[tex]\gcd\left({{n}\choose{k}},{{n}\choose{m}}\right) = 1[/tex]

[tex]{{n}\choose{k}} \left| {{m}\choose{k}}[/tex]

[tex]{{n}\choose{k}} > {{m}\choose{k}}[/tex]

[tex]\gcd\left({{n}\choose{k}},{{n}\choose{m}}\right) > 1[/tex]

Another test...

- Warren
 
  • #634
Another test of aliasing... 8

[tex]
e^x = \sum_{n=0}^\infty \frac{x^n}{n!} = \lim_{n\rightarrow\infty} (1+x/n)^n
[/tex]

- Warren
 
Last edited:
  • #635
Transparency's fixed (found a workaround) but the antialiasing routine used by ghostscript is different now, and, in my opinion, not as nice looking. I'm going to have to keep playing with that.

- Warren
 
  • #637
chroot said:
Transparency's fixed (found a workaround) but the antialiasing routine used by ghostscript is different now, and, in my opinion, not as nice looking. I'm going to have to keep playing with that.

- Warren
Why doesn't the old tex work?
 
  • #638
We're on a new server with an entirely different Linux distribution. Apparently, people have made a lot of (annoying) changes to some of the basic image-manipulation programs in the last year or so, and I'm having to figure out how to get around them. Apparently the transparency is still not working in IE.

- Warren
 
  • #639
I wonder if that IE problem has anything to do with
http://entropymine.com/jason/testbed/pngtrans/ (try viewing in IE and FF)
By the way, the images "copied" off the webpage (via right-click) differ between doing that in IE and in FF.

The new images have fonts that seem a little thinner (compared to the earlier version)... as if more pixels were selected for transparency than before.
 
  • #640
robphy,

As I mentioned, the antialiasing done by ghostscript appears to be different now than it used to be. As I said, I prefer the old look, and am going to try to make it look a little better soon. Apparently quite a bit of stuff was changed. :frown:

- Warren
 
  • #641
robphy said:
I wonder if that IE problem has anything to do with
http://entropymine.com/jason/testbed/pngtrans/ (try viewing in IE and FF)

Yeah, that's a good page. IE certainly does have lots of problems with PNG transparency, but my images here used to work just fine under both browsers. This is going to drive me insane.

- Warren
 
  • #642
chroot said:
Another test of aliasing... 9

[tex]
e^x = \sum_{n=0}^\infty \frac{x^n}{n!} = \lim_{n\rightarrow\infty} (1+x/n)^n
[/tex]

- Warren

[tex]
e^x = \sum_{n=0}^\infty \frac{x^n}{n!} = \lim_{n\rightarrow\infty} (1+x/n)^n
[/tex]- Warren
 
Last edited:
  • #643
[tex]
\mathop {\lim }\limits_{n \to \infty } \bigcup\limits_{i = 0}^{n!} {\left\{ {\frac{i}{{n!}}} \right\}} = \mathbb{Q} \cap \left[ {0,1} \right] [/tex]
 
  • #644
Testing...

[TEX]
E_n = /frac{n^2/pi^2}{(L+2/delta)^2}
[/TEX]

Hmm, does anyone know why I can view Latex graphics in other peoples posts, but I can never view them in my own. I always get the please wait the graphic is being generated message.
 
Last edited:
  • #645
[tex]
E_n = \frac{n^2\pi^2}{(L+2\delta)^2}.
[/tex]

Your slashes are backwards.
And I believe the tags have to be lowercase.

Kazza_765 said:
Testing...

[TEX]
E_n = /frac{n^2/pi^2}{(L+2/delta)^2}
[/TEX]

Hmm, does anyone know why I can view Latex graphics in other peoples posts, but I can never view them in my own. I always get
the please wait the graphic is being generated message.
 
Last edited:
  • #646
lemme try:

[tex]
E_n = \frac{n^2 \pi^2}{(L + 2 \delta)^2}
[/tex]
 
  • #647
[tex]
E_n = \frac{n^2 \pi^2}{(L + 2 \delta)^2}
[/tex]
Yes, a slight improvement. (The gamma modification?)
 
  • #648
robphy said:
[tex]
E_n = \frac{n^2 \pi^2}{(L + 2 \delta)^2}
[/tex]
Testing [tex]\vec{F} = m \vec{a}[/tex]

Yikes... worse than ever. :cry:
 
  • #649
Doc Al said:
Testing [tex]\vec{F} = m \vec{a}[/tex]

Yikes... worse than ever. :cry:

Using IE?
Transparency seems okay in Firefox (1.0.7).
 
  • #650
[tex]\fbox{\LaTeX}[/tex]
 
  • #651
Doc Al said:
Testing [tex]\vec{F} = m \vec{a}[/tex]

Yikes... worse than ever. :cry:
Seems to be working now; it wasn't yesterday when I posted that.

Yes, I'm using IE.
 
  • #652
Somethings wrong with the AA again :frown:

[tex]V = \int \pi \left[ f(x) \right]^2[/tex]

I'm using firefox.
 
  • #653
I've had trouble with .png transparency in IE before. The only way i got around that was by using transparent .gifs. I know http://www.forkosh.dreamhost.com/source_mimetex.html#introduction converts to .gif, but it's not my favorite converter as it doesn't use very smooth (vector?) characters but it takes in Latex at the command line directly, rather than reading from a file which i found very useful. An alternative would be to set the background color to the background color of these forums, but since you have different styles for the PF layout that might not work. Sounds like a pain. :smile:

Actually, i just found out http://www.forkosh.dreamhost.com/source_mimetex.html#introduction can be compiled with anti-aliasing on.
 
Last edited by a moderator:
  • #654
chroot said:
robphy,

As I mentioned, the antialiasing done by ghostscript appears to be different now than it used to be. As I said, I prefer the old look, and am going to try to make it look a little better soon. Apparently quite a bit of stuff was changed. :frown:

- Warren

What version of Ghostscript? What version and distro of linux?
From googling, these commandline options might worth playing with:

-dTextAlphaBits=4 -dGraphicsAlphaBits=4 -dNOPLATFONTS

...just a thought.
 
  • #655
[tex]
\[

\unitlength 1mm
\begin{picture}(85.00,95.00)(0,0)

\linethickness{0.15mm}
\put(20.00,0.00){\line(0,1){90.00}}\linethickness{0.15mm}
\put(20.00,90.00){\line(0,1){0.12}}

\linethickness{0.15mm}
\put(20.00,90.12){\line(0,1){0.12}}
\put(20.00,90.24){\vector(0,1){0.12}}

\linethickness{0.15mm}
\multiput(65.12,90.24)(0.12,0.24){1}{\line(0,1){0.24}}
\put(65.24,90.48){\vector(1,2){0.12}}

\linethickness{0.15mm}
\multiput(40.12,40.12)(0.12,0.12){1}{\line(1,0){0.12}}
\put(40.24,40.24){\vector(1,1){0.12}}

\linethickness{0.15mm}
\multiput(60.12,80.12)(0.12,0.12){1}{\line(0,1){0.12}}
\put(60.24,80.24){\vector(1,1){0.12}}\linethickness{0.15mm}
\multiput(20.00,0.00)(0.12,0.24){375}{\line(0,1){0.24}}
\put(65.00,90.00){\vector(1,2){0.12}}\linethickness{0.15mm}
\multiput(20.00,20.00)(0.12,0.12){167}{\line(1,0){0.12}}
\put(40.00,40.00){\vector(1,1){0.12}}

\linethickness{0.15mm}
\multiput(20.00,40.00)(0.12,0.12){333}{\line(1,0){0.12}}
\put(60.00,80.00){\vector(1,1){0.12}}

\put(20.00,0.00){\makebox(0,0)[cr]{O\,}}

\put(20.00,20.00){\makebox(0,0)[cr]{A\,}}

\put(40.00,40.00){\makebox(0,0)[cl]{\,B}}

\put(20.00,40.00){\makebox(0,0)[cr]{C\,}}

\put(60.00,80.00){\makebox(0,0)[cl]{\,D}}

\put(20.00,92.00){\makebox(0,0)[bc]{T axis}}

\put(65.00,92.00){\makebox(0,0)[bc]{T' axis}}

\put(20.00,20.00){\makebox(0,0)[tl]{\beta}}

\put(20.00,40.00){\makebox(0,0)[tl]{\beta}}

\end{picture}

\]

[/tex]
 
Last edited:
  • #656
[tex]
\[

\unitlength 1mm
\begin{picture}(85.00,95.00)(0,0)

\linethickness{0.15mm}
\put(20.00,0.00){\line(0,1){90.00}}\linethickness{0.15mm}
\put(20.00,90.00){\line(0,1){0.12}}

\linethickness{0.15mm}
\put(20.00,90.12){\line(0,1){0.12}}
\put(20.00,90.24){\vector(0,1){0.12}}

\linethickness{0.15mm}
\multiput(65.12,90.24)(0.12,0.24){1}{\line(0,1){0.24}}
\put(65.24,90.48){\vector(1,2){0.12}}

\linethickness{0.15mm}
\multiput(40.12,40.12)(0.12,0.12){1}{\line(1,0){0.12}}
\put(40.24,40.24){\vector(1,1){0.12}}

\linethickness{0.15mm}
\multiput(60.12,80.12)(0.12,0.12){1}{\line(0,1){0.12}}
\put(60.24,80.24){\vector(1,1){0.12}}\linethickness{0.15mm}
\multiput(20.00,0.00)(0.12,0.24){375}{\line(0,1){0.24}}
\put(65.00,90.00){\vector(1,2){0.12}}\linethickness{0.15mm}
\multiput(20.00,20.00)(0.12,0.12){167}{\line(1,0){0.12}}
\put(40.00,40.00){\vector(1,1){0.12}}

\linethickness{0.15mm}
\multiput(20.00,40.00)(0.12,0.12){333}{\line(1,0){0.12}}
\put(60.00,80.00){\vector(1,1){0.12}}

\put(20.00,0.00){\makebox(0,0)[cr]{O\,}}

\put(20.00,20.00){\makebox(0,0)[cr]{A\,}}

\put(40.00,40.00){\makebox(0,0)[cl]{\,B}}

\put(20.00,40.00){\makebox(0,0)[cr]{C\,}}

\put(60.00,80.00){\makebox(0,0)[cl]{\,D}}

\put(20.00,92.00){\makebox(0,0)[bc]{T axis}}

\put(65.00,92.00){\makebox(0,0)[bc]{T' axis}}

\put(20.00,20.00){\makebox(0,0)[tl]{\beta}}

\put(20.00,40.00){\makebox(0,0)[tl]{\beta}}

\put(20.00,7.00){\makebox(0,0)[bl]{$\alpha$}}

\end{picture}

\]

[/tex]
 
Last edited:
  • #657
So, I just want to stick an "alpha" in the angle by the point marked O, why is the Latex source for this image invalid?
 
  • #658
Is there something I'm doing with wrong trying to get a line break?

[tex]
a \\ b
[/tex]

[tex]
a \ \ b[/tex]

[tex] a \ \
b
[/tex]

Obviously the following works but it can get annoying

[tex]a[/tex]
[tex]b[/tex]
 
  • #659
pervect said:
[tex]
\[

\unitlength 1mm
\begin{picture}(85.00,95.00)(0,0)

\linethickness{0.15mm}
\put(20.00,0.00){\line(0,1){90.00}}\linethickness{0.15mm}
\put(20.00,90.00){\line(0,1){0.12}}

\linethickness{0.15mm}
\put(20.00,90.12){\line(0,1){0.12}}
\put(20.00,90.24){\vector(0,1){0.12}}

\linethickness{0.15mm}
\multiput(65.12,90.24)(0.12,0.24){1}{\line(0,1){0.24}}
\put(65.24,90.48){\vector(1,2){0.12}}

\linethickness{0.15mm}
\multiput(40.12,40.12)(0.12,0.12){1}{\line(1,0){0.12}}
\put(40.24,40.24){\vector(1,1){0.12}}

\linethickness{0.15mm}
\multiput(60.12,80.12)(0.12,0.12){1}{\line(0,1){0.12}}
\put(60.24,80.24){\vector(1,1){0.12}}\linethickness{0.15mm}
\multiput(20.00,0.00)(0.12,0.24){375}{\line(0,1){0.24}}
\put(65.00,90.00){\vector(1,2){0.12}}\linethickness{0.15mm}
\multiput(20.00,20.00)(0.12,0.12){167}{\line(1,0){0.12}}
\put(40.00,40.00){\vector(1,1){0.12}}

\linethickness{0.15mm}
\multiput(20.00,40.00)(0.12,0.12){333}{\line(1,0){0.12}}
\put(60.00,80.00){\vector(1,1){0.12}}

\put(20.00,0.00){\makebox(0,0)[cr]{O\,}}

\put(20.00,20.00){\makebox(0,0)[cr]{A\,}}

\put(40.00,40.00){\makebox(0,0)[cl]{\,B}}

\put(20.00,40.00){\makebox(0,0)[cr]{C\,}}

\put(60.00,80.00){\makebox(0,0)[cl]{\,D}}

\put(20.00,92.00){\makebox(0,0)[bc]{T axis}}

\put(65.00,92.00){\makebox(0,0)[bc]{T' axis}}

\put(20.00,20.00){\makebox(0,0)[tl]{\beta}}

\put(20.00,40.00){\makebox(0,0)[tl]{\beta}}

\put(0.00,5.00){\makebox(0,0)[bl]{\alpha}}

\end{picture}

\]

[/tex]
[tex]
\[

\unitlength 1mm
\begin{picture}(85.00,95.00)(0,0)

\linethickness{0.15mm}
\put(20.00,0.00){\line(0,1){90.00}}\linethickness{0.15mm}
\put(20.00,90.00){\line(0,1){0.12}}

\linethickness{0.15mm}
\put(20.00,90.12){\line(0,1){0.12}}
\put(20.00,90.24){\vector(0,1){0.12}}

\linethickness{0.15mm}
\multiput(65.12,90.24)(0.12,0.24){1}{\line(0,1){0.24}}
\put(65.24,90.48){\vector(1,2){0.12}}

\linethickness{0.15mm}
\multiput(40.12,40.12)(0.12,0.12){1}{\line(1,0){0.12}}
\put(40.24,40.24){\vector(1,1){0.12}}

\linethickness{0.15mm}
\multiput(60.12,80.12)(0.12,0.12){1}{\line(0,1){0.12}}
\put(60.24,80.24){\vector(1,1){0.12}}\linethickness{0.15mm}
\multiput(20.00,0.00)(0.12,0.24){375}{\line(0,1){0.24}}
\put(65.00,90.00){\vector(1,2){0.12}}\linethickness{0.15mm}
\multiput(20.00,20.00)(0.12,0.12){167}{\line(1,0){0.12}}
\put(40.00,40.00){\vector(1,1){0.12}}

\linethickness{0.15mm}
\multiput(20.00,40.00)(0.12,0.12){333}{\line(1,0){0.12}}
\put(60.00,80.00){\vector(1,1){0.12}}

\put(20.00,0.00){\makebox(0,0)[cr]{O\,}}

\put(20.00,20.00){\makebox(0,0)[cr]{A\,}}

\put(40.00,40.00){\makebox(0,0)[cl]{\,B}}

\put(20.00,40.00){\makebox(0,0)[cr]{C\,}}

\put(60.00,80.00){\makebox(0,0)[cl]{\,D}}

\put(20.00,92.00){\makebox(0,0)[bc]{T axis}}

\put(65.00,92.00){\makebox(0,0)[bc]{T' axis}}

\put(20.00,20.00){\makebox(0,0)[tl]{$\beta$}}

\put(20.00,40.00){\makebox(0,0)[tl]{$\beta$}}

\put(0.00,5.00){\makebox(0,0)[bl]{$\alpha$}}

\end{picture}

\]

[/tex]

The use of \[ and \] I've always used in the \picture environment here
let me use the standard tags $\alpha$ for math symbols. I found this out by trial and error.
 
  • #660
dav2008 said:
Is there something I'm doing with wrong trying to get a line break?

[tex]
a \\ b
[/tex]

[tex]
a \ \ b[/tex]

[tex] a \ \
b
[/tex]

maybe we're in an mbox?
[tex]\begin{align*} a \\ b \end{align*}[/tex]

[tex] \] a \\ b \[ [/tex]

[tex] \] $ a \\ b $ \[ [/tex]

From these last two posts, it seems one has more familiar control using
[ tex ] \] a \\ b \[ [ /tex ]
instead of the usual
[ tex ] a \\ b [ /tex ]

Did I mention that I really like [tex]\LaTeX[/tex]? :-p
(That's why I'm saddened :cry: that the preview mode is broken o:) .)
 
Last edited:
  • #661
LaTeX

Just an aside, for those who'd like to have LaTeX on their computer http://http://www.artofproblemsolving.com/LaTeX/AoPS_L_Downloads.php" is the place to get it! The whole package is about 400MB.
 
Last edited by a moderator:
  • #662
[itex]0<|x-x_0| <\delta => |sin(x) - sin(x_0)|< \epsilon [/itex]
[itex] |sin(x)| - |sin(x_0)|<|sin(x) - sin(x_0)|<\epsilon [/itex]
[itex] |sin(x)| - |x| < |sin(x)| - |sin(x_0)|< \epsilon [/itex]
 
  • #663
Fixed link: http://www.artofproblemsolving.com/LaTeX/AoPS_L_Downloads.php
robphy said:
maybe we're in an mbox?
[tex]\begin{align*} a \\ b \end{align*}[/tex]

[tex] \] a \\ b \[ [/tex]

[tex] \] $ a \\ b $ \[ [/tex]

From these last two posts, it seems one has more familiar control using
[ tex ] \] a \\ b \[ [ /tex ]
instead of the usual
[ tex ] a \\ b [ /tex ]

Did I mention that I really like [tex]\LaTeX[/tex]? :-p
(That's why I'm saddened :cry: that the preview mode is broken o:) .)
hmm ok thanks.
 
Last edited by a moderator:
  • #664
[tex]d\vec{B} = \frac{\mu_0}{4\pi}(\frac{Id\vec{s}\times\hat{r}}{r^2})[/tex]

[tex]\int B \cdot ds = \mu_0 I[/tex]

[tex]B = \frac {\mu_0 * 2A}{4 * 2 \pi * .08 m }[/tex]

[tex]F = \frac {2 k_m I_1 I_2 l}{d}[/tex]
 
Last edited:
  • #665
Miktex has all kinds of packages available for download. In order to use these packages must i specifically indicate which to use in the latex code or is there an option to just use all available?
 

Similar threads

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