Introducing LaTeX Math Typesetting

Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
766 replies · 750K views
Testing...

[tex]\vec{F} = m \vec{a}[/tex]

white background? Blech!
 
Physics news on Phys.org
re-test of an old example

robphy said:
[tex]\begin{align}<br /> x& = y && \text{def}\\<br /> & = y+\textcolor{blue}{(y-y)} && \text{add \textcolor{blue}{zero}}\\<br /> & = 2y-y && \text {\textcolor{red}{algebra}}<br /> \end{align}[/tex]

very plain text, slightlyfanciertext, loud text

[itex] \]<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 /> \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 /> \[[/itex]

[tex] \newcommand{\VARTEXT}[2][\scriptsize]{\left(\mbox{#1\begin{tabular}{c}#2\end{tabular}}\right)}<br /> \VARTEXT[\large]{net-work done \\ on the object }<br /> =<br /> \VARTEXT[\large]{change in \\ the kinetic energy \\ of the object }[/tex]
Transparency broken?
 
I am not familiar with drawing in LaTeX, and I just wonder where I can find a short tutorial on this topic.
I think it should also be added to the first page of this thread, so that someone new to LaTeX can learn how to draw.
It's just my $0.02.
 
I don't know of anyone else who uses this \picture environment here at PF. For general (i.e. not-necessarily PF) LaTeX, you might look at http://www.eng.cam.ac.uk/help/tpl/textprocessing/teTeX/latex/latex2e-html/ltx-43.html

Here what I use sometimes http://jpicedt.sourceforge.net/
With some effort (see example below [click on image for source]) and some manual tweaks, you can get its output into a PF post.

[tex] \] <br /> \unitlength 1mm <br /> \begin{picture}(55,90)(0,0) <br /> \linethickness{0.3mm} <br /> \put(20,10){\line(0,1){80}} <br /> \linethickness{0.3mm} <br /> \multiput(20,90)(0.12,-0.12){250}{\line(1,0){0.12}} <br /> \linethickness{0.3mm} <br /> \multiput(20,30)(0.12,0.12){250}{\line(1,0){0.12}} <br /> \linethickness{0.3mm} <br /> \multiput(20,10)(0.12,0.2){250}{\line(0,1){0.2}} <br /> \put(15,30){\makebox(0,0)[cc]{t}} <br /> \put(15,60){\makebox(0,0)[cc]{\gamma t}} <br /> \put(15,90){\makebox(0,0)[cc]{k^2t}} <br /> \put(55,60){\makebox(0,0)[cc]{kt}} <br /> \end{picture} <br /> \[ [/tex]
 
Last edited by a moderator:
robphy said:
[tex] \] <br /> \unitlength 1mm <br /> \begin{picture}(55,90)(0,0) <br /> \linethickness{0.3mm} <br /> \put(20,10){\line(0,1){80}} <br /> \linethickness{0.3mm} <br /> \multiput(20,90)(0.12,-0.12){250}{\line(1,0){0.12}} <br /> \linethickness{0.3mm} <br /> \multiput(20,30)(0.12,0.12){250}{\line(1,0){0.12}} <br /> \linethickness{0.3mm} <br /> \multiput(20,10)(0.12,0.2){250}{\line(0,1){0.2}} <br /> \put(15,30){\makebox(0,0)[cc]{t}} <br /> \put(15,60){\makebox(0,0)[cc]{\gamma t}} <br /> \put(15,90){\makebox(0,0)[cc]{k^2t}} <br /> \put(55,60){\makebox(0,0)[cc]{kt}} <br /> \end{picture} <br /> \[ [/tex]

Testing transparency.. 13

- Warren
 
Last edited:
robphy said:
[tex] \] <br /> \unitlength 1mm <br /> \begin{picture}(55,90)(0,0) <br /> \linethickness{0.3mm} <br /> \put(20,10){\line(0,1){80}} <br /> \linethickness{0.3mm} <br /> \multiput(20,90)(0.12,-0.12){250}{\line(1,0){0.12}} <br /> \linethickness{0.3mm} <br /> \multiput(20,30)(0.12,0.12){250}{\line(1,0){0.12}} <br /> \linethickness{0.3mm} <br /> \multiput(20,10)(0.12,0.2){250}{\line(0,1){0.2}} <br /> \put(15,30){\makebox(0,0)[cc]{t}} <br /> \put(15,60){\makebox(0,0)[cc]{\gamma t}} <br /> \put(15,90){\makebox(0,0)[cc]{k^2t}} <br /> \put(55,60){\makebox(0,0)[cc]{kt}} <br /> \end{picture} <br /> \[ [/tex]

[tex] \] <br /> \unitlength 1mm <br /> \begin{picture}(55,90)(0,0) <br /> \linethickness{0.3mm} <br /> \put(20,10){\line(0,1){80}} <br /> \linethickness{0.3mm} <br /> \multiput(20,90)(0.12,-0.12){250}{\line(1,0){0.12}} <br /> \linethickness{0.3mm} <br /> \multiput(20,30)(0.12,0.12){250}{\line(1,0){0.12}} <br /> \linethickness{0.3mm} <br /> \multiput(20,10)(0.12,0.2){250}{\line(0,1){0.2}} <br /> \put(15,30){\makebox(0,0)[cc]{t}} <br /> \put(15,60){\makebox(0,0)[cc]{\gamma t}} <br /> \put(15,90){\makebox(0,0)[cc]{k^2t}} <br /> \put(55,60){\makebox(0,0)[cc]{kt}} <br /> \end{picture} <br /> \[ [/tex]

Testing transparency.. 53

- Warren
 
Last edited:
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:
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
 
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
 
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
 
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?
 
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
 
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.
 
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
 
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:
[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]
 
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:
[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:
lemme try:

[tex] E_n = \frac{n^2 \pi^2}{(L + 2 \delta)^2}[/tex]
 
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:
 
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.
 
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: